Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
69d29c8
1
Parent(s):
efce06c
22
Browse files
app.py
CHANGED
|
@@ -146,7 +146,7 @@ def inference(
|
|
| 146 |
|
| 147 |
print("DEBUG: control_image_torch")
|
| 148 |
processor = Processor('openpose_full')
|
| 149 |
-
control_image, w, h = image_utils.rescale_image(input_image,
|
| 150 |
control_image = control_image.resize((1024, 1024))
|
| 151 |
control_image = processor(control_image, to_pil=True)
|
| 152 |
control_image = control_image.resize((width, height))
|
|
|
|
| 146 |
|
| 147 |
print("DEBUG: control_image_torch")
|
| 148 |
processor = Processor('openpose_full')
|
| 149 |
+
control_image, w, h = image_utils.rescale_image(input_image, upscale_target, upscale_nearest, max_size=1280)
|
| 150 |
control_image = control_image.resize((1024, 1024))
|
| 151 |
control_image = processor(control_image, to_pil=True)
|
| 152 |
control_image = control_image.resize((width, height))
|