Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update model.py
Browse files
model.py
CHANGED
@@ -207,6 +207,8 @@ class Model:
|
|
207 |
# condition_img = condition_img.to(self.device)
|
208 |
# condition_img = 2 * (condition_img / 255 - 0.5)
|
209 |
condition_img = 2 * (image_tensor / 255 - 0.5)
|
|
|
|
|
210 |
# control_image = self.get_control_depth(
|
211 |
# image=image,
|
212 |
# image_resolution=512,
|
|
|
207 |
# condition_img = condition_img.to(self.device)
|
208 |
# condition_img = 2 * (condition_img / 255 - 0.5)
|
209 |
condition_img = 2 * (image_tensor / 255 - 0.5)
|
210 |
+
print(condition_img.shape)
|
211 |
+
condition_img = condition_img.repeat(2, 1, 1, 1)
|
212 |
# control_image = self.get_control_depth(
|
213 |
# image=image,
|
214 |
# image_resolution=512,
|