wondervictor commited on
Commit
ec7cc12
·
verified ·
1 Parent(s): 607c604

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -0
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,