wondervictor commited on
Commit
94283f9
·
verified ·
1 Parent(s): ca2b88e

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +4 -4
model.py CHANGED
@@ -196,10 +196,10 @@ class Model:
196
  image = resize_image_to_16_multiple(image, 'depth')
197
  W, H = image.size
198
  print(W, H)
199
- # self.t5_model.model.to(self.device)
200
- # self.gpt_model_depth.to(self.device)
201
- # self.get_control_depth.model.to(self.device)
202
- # self.vq_model.to(self.device)
203
  image_tensor = torch.from_numpy(np.array(image)).to(self.device)
204
  # condition_img = torch.from_numpy(
205
  # self.get_control_depth(image_tensor)).unsqueeze(0)
 
196
  image = resize_image_to_16_multiple(image, 'depth')
197
  W, H = image.size
198
  print(W, H)
199
+ self.t5_model.model.to(self.device)
200
+ self.gpt_model_depth.to(self.device)
201
+ self.get_control_depth.model.to(self.device)
202
+ self.vq_model.to(self.device)
203
  image_tensor = torch.from_numpy(np.array(image)).to(self.device)
204
  # condition_img = torch.from_numpy(
205
  # self.get_control_depth(image_tensor)).unsqueeze(0)