Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
eaa6790
1
Parent(s):
788fe52
22
Browse files
app.py
CHANGED
|
@@ -115,8 +115,8 @@ def inference(
|
|
| 115 |
processor = Processor('canny')
|
| 116 |
|
| 117 |
|
| 118 |
-
|
| 119 |
-
control_image, width, height = rescale_image(input_image, image_scale,
|
| 120 |
control_image = control_image.resize((512, 512))
|
| 121 |
|
| 122 |
print("DEBUG: processor running")
|
|
|
|
| 115 |
processor = Processor('canny')
|
| 116 |
|
| 117 |
|
| 118 |
+
# Width must be divisible by 16
|
| 119 |
+
control_image, width, height = rescale_image(input_image, image_scale, 16)
|
| 120 |
control_image = control_image.resize((512, 512))
|
| 121 |
|
| 122 |
print("DEBUG: processor running")
|