lunarflu HF Staff commited on
Commit
56ea50c
·
1 Parent(s): 149a54b

Update deepfloydif.py

Browse files
Files changed (1) hide show
  1. deepfloydif.py +2 -2
deepfloydif.py CHANGED
@@ -24,7 +24,7 @@ def deepfloydif_stage_1_inference(prompt):
24
  guidance_scale = 7
25
  custom_timesteps_1 = 'smart50'
26
  number_of_inference_steps = 50
27
- stage_1_results, stage_1_param_path, stage_1_result_path = deepfloyd_client.predict(prompt, negative_prompt, seed, number_of_images, guidance_scale, custom_timesteps_1, number_of_inference_steps, api_name='/generate64')
28
  return [stage_1_results, stage_1_param_path, stage_1_result_path]
29
 
30
  def deepfloydif_stage_2_inference(index, stage_1_result_path):
@@ -34,7 +34,7 @@ def deepfloydif_stage_2_inference(index, stage_1_result_path):
34
  guidance_scale_2 = 4
35
  custom_timesteps_2 = 'smart50'
36
  number_of_inference_steps_2 = 50
37
- result_path = deepfloyd_client.predict(stage_1_result_path, selected_index_for_stage_2, seed_2, guidance_scale_2, custom_timesteps_2, number_of_inference_steps_2, api_name='/upscale256')
38
  return result_path
39
 
40
 
 
24
  guidance_scale = 7
25
  custom_timesteps_1 = 'smart50'
26
  number_of_inference_steps = 50
27
+ stage_1_results, stage_1_param_path, stage_1_result_path = deepfloydif_client.predict(prompt, negative_prompt, seed, number_of_images, guidance_scale, custom_timesteps_1, number_of_inference_steps, api_name='/generate64')
28
  return [stage_1_results, stage_1_param_path, stage_1_result_path]
29
 
30
  def deepfloydif_stage_2_inference(index, stage_1_result_path):
 
34
  guidance_scale_2 = 4
35
  custom_timesteps_2 = 'smart50'
36
  number_of_inference_steps_2 = 50
37
+ result_path = deepfloydif_client.predict(stage_1_result_path, selected_index_for_stage_2, seed_2, guidance_scale_2, custom_timesteps_2, number_of_inference_steps_2, api_name='/upscale256')
38
  return result_path
39
 
40