Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
| 126 |
-
res_image1 = pipe_depth(
|
| 127 |
-
res_image2 = pipe_depth(
|
| 128 |
-
res_image3 = pipe_depth(
|
| 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 |
|