shellypeng commited on
Commit
12f4e07
·
verified ·
1 Parent(s): 54d6c82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -122,10 +122,10 @@ def real_to_anime(text, input_img):
122
  input_img = Image.fromarray(input_img)
123
  input_img = load_image(input_img)
124
  input_img = depth_estimator(input_img)['depth']
125
- res_image0 = pipe_depth(prompt, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
126
- res_image1 = pipe_depth(prompt, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
127
- res_image2 = pipe_depth(prompt, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
128
- res_image3 = pipe_depth(prompt, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
129
 
130
  return res_image0, res_image1, res_image2, res_image3
131
 
 
122
  input_img = Image.fromarray(input_img)
123
  input_img = load_image(input_img)
124
  input_img = depth_estimator(input_img)['depth']
125
+ res_image0 = pipe_depth(text, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
126
+ res_image1 = pipe_depth(text, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
127
+ res_image2 = pipe_depth(text, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
128
+ res_image3 = pipe_depth(text, input_img, negative_prompt=hidden_negative, num_inference_steps=40).images[0]
129
 
130
  return res_image0, res_image1, res_image2, res_image3
131