Spaces:
Runtime error
Runtime error
use cond without image conversion
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def infer(prompt, negative_prompt, image):
|
|
| 52 |
inp = Image.fromarray(image)
|
| 53 |
|
| 54 |
cond_input = conditioning_image_transforms(inp)
|
| 55 |
-
cond_input = T.ToPILImage()(cond_input)
|
| 56 |
|
| 57 |
cond_img_in = pipe.prepare_image_inputs([cond_input] * num_samples)
|
| 58 |
cond_img_in = shard(cond_img_in)
|
|
|
|
| 52 |
inp = Image.fromarray(image)
|
| 53 |
|
| 54 |
cond_input = conditioning_image_transforms(inp)
|
| 55 |
+
#cond_input = T.ToPILImage()(cond_input)
|
| 56 |
|
| 57 |
cond_img_in = pipe.prepare_image_inputs([cond_input] * num_samples)
|
| 58 |
cond_img_in = shard(cond_img_in)
|