dvir-bria commited on
Commit
3d994fb
1 Parent(s): 88a0805

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -124,7 +124,7 @@ class Model:
124
  num_inference_steps=num_steps,
125
  generator=generator,
126
  image=control_image,
127
- ).images[0]
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] + results
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