Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def run(
|
|
178 |
width, height = image['composite'].size
|
179 |
ratio = np.sqrt(1024. * 1024. / (width * height))
|
180 |
new_width, new_height = int(width * ratio), int(height * ratio)
|
181 |
-
image =
|
182 |
|
183 |
if not use_hed:
|
184 |
controlnet_img = image
|
|
|
178 |
width, height = image['composite'].size
|
179 |
ratio = np.sqrt(1024. * 1024. / (width * height))
|
180 |
new_width, new_height = int(width * ratio), int(height * ratio)
|
181 |
+
image = image['composite'].resize((new_width, new_height))
|
182 |
|
183 |
if not use_hed:
|
184 |
controlnet_img = image
|