wondervictor commited on
Commit
8c75ec9
·
verified ·
1 Parent(s): 6e50755

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -119,8 +119,8 @@ class Model:
119
  image = resize_image_to_16_multiple(image, 'canny')
120
  W, H = image.size
121
  print(W, H)
122
- # self.t5_model.model.to(self.device)
123
- # self.gpt_model_canny.to(self.device)
124
 
125
  condition_img = self.get_control_canny(np.array(image), low_threshold,
126
  high_threshold)
 
119
  image = resize_image_to_16_multiple(image, 'canny')
120
  W, H = image.size
121
  print(W, H)
122
+ self.t5_model.model.to(self.device)
123
+ self.gpt_model_canny.to(self.device)
124
 
125
  condition_img = self.get_control_canny(np.array(image), low_threshold,
126
  high_threshold)