wondervictor commited on
Commit
d4c62cd
·
1 Parent(s): 50aaae1
Files changed (1) hide show
  1. model.py +4 -0
model.py CHANGED
@@ -191,6 +191,10 @@ class Model:
191
  image = resize_image_to_16_multiple(image, 'depth')
192
  W, H = image.size
193
  print(W, H)
 
 
 
 
194
  image_tensor = torch.from_numpy(np.array(image)).to(self.device)
195
  condition_img = torch.from_numpy(
196
  self.get_control_depth(image_tensor)).unsqueeze(0)
 
191
  image = resize_image_to_16_multiple(image, 'depth')
192
  W, H = image.size
193
  print(W, H)
194
+ self.t5_model.model.to(self.device)
195
+ self.gpt_model_depth.to(self.device)
196
+ self.get_control_depth.model.to(self.device)
197
+ self.vq_model.to(self.device)
198
  image_tensor = torch.from_numpy(np.array(image)).to(self.device)
199
  condition_img = torch.from_numpy(
200
  self.get_control_depth(image_tensor)).unsqueeze(0)