Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
af3cbb6
1
Parent(s):
9dbd468
22
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def inference(
|
|
| 114 |
processor = Processor('canny')
|
| 115 |
|
| 116 |
control_image, width, height = scale_image(input_image, image_scale, 64)
|
| 117 |
-
control_image = control_image.resize(512, 512)
|
| 118 |
control_image = processor(control_image, to_pil=True)
|
| 119 |
|
| 120 |
control_image_torch = get_image_latent(control_image, sample_size=[height, width])[:, :, 0]
|
|
|
|
| 114 |
processor = Processor('canny')
|
| 115 |
|
| 116 |
control_image, width, height = scale_image(input_image, image_scale, 64)
|
| 117 |
+
control_image = control_image.resize((512, 512))
|
| 118 |
control_image = processor(control_image, to_pil=True)
|
| 119 |
|
| 120 |
control_image_torch = get_image_latent(control_image, sample_size=[height, width])[:, :, 0]
|