Spaces:
Running
on
Zero
Running
on
Zero
Update model.py
Browse files
model.py
CHANGED
@@ -124,7 +124,7 @@ class Model:
|
|
124 |
num_inference_steps=num_steps,
|
125 |
generator=generator,
|
126 |
image=control_image,
|
127 |
-
).images
|
128 |
|
129 |
|
130 |
def resize_image(self, image):
|
@@ -173,7 +173,7 @@ class Model:
|
|
173 |
results = self.run_pipe(
|
174 |
prompt=prompt, negative_prompt=negative_prompt, control_image=canny_image, num_steps=num_steps, controlnet_conditioning_scale=float(controlnet_conditioning_scale), seed=seed, num_images=1,
|
175 |
)
|
176 |
-
return [canny_image
|
177 |
|
178 |
|
179 |
|
|
|
124 |
num_inference_steps=num_steps,
|
125 |
generator=generator,
|
126 |
image=control_image,
|
127 |
+
).images
|
128 |
|
129 |
|
130 |
def resize_image(self, image):
|
|
|
173 |
results = self.run_pipe(
|
174 |
prompt=prompt, negative_prompt=negative_prompt, control_image=canny_image, num_steps=num_steps, controlnet_conditioning_scale=float(controlnet_conditioning_scale), seed=seed, num_images=1,
|
175 |
)
|
176 |
+
return [canny_image, results[0]]
|
177 |
|
178 |
|
179 |
|