Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
|
@@ -208,7 +208,7 @@ class Model:
|
|
| 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,
|
|
|
|
| 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.permute(2,0,1).unsqueeze(0).repeat(2, 1, 1, 1)
|
| 212 |
# control_image = self.get_control_depth(
|
| 213 |
# image=image,
|
| 214 |
# image_resolution=512,
|