Spaces:
Running
on
Zero
Running
on
Zero
Update raw.py
Browse files
raw.py
CHANGED
|
@@ -24,8 +24,8 @@ def generate_image(prompt, control_image):
|
|
| 24 |
# Load control image
|
| 25 |
control_image = load_image(control_image)
|
| 26 |
w, h = control_image.size
|
| 27 |
-
# Upscale
|
| 28 |
-
control_image = control_image.resize((w *
|
| 29 |
image = pipe(
|
| 30 |
prompt=prompt,
|
| 31 |
control_image=control_image,
|
|
|
|
| 24 |
# Load control image
|
| 25 |
control_image = load_image(control_image)
|
| 26 |
w, h = control_image.size
|
| 27 |
+
# Upscale x1
|
| 28 |
+
control_image = control_image.resize((w * 1, h * 1))
|
| 29 |
image = pipe(
|
| 30 |
prompt=prompt,
|
| 31 |
control_image=control_image,
|