wondervictor commited on
Commit
05fcae6
·
verified ·
1 Parent(s): 7f39688

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -4
model.py CHANGED
@@ -197,12 +197,9 @@ class Model:
197
  control_strength: float,
198
  preprocessor_name: str
199
  ) -> list[PIL.Image.Image]:
200
- # self.gpt_model_edge.to('cpu')
201
- self.t5_model.model.to(self.device)
202
- # self.gpt_model_depth.to(self.device)
203
  self.load_gpt_weight('depth')
204
  self.gpt_model.to('cuda').to(torch.bfloat16)
205
- # self.get_control_depth.model.to(self.device)
206
  self.vq_model.to(self.device)
207
  if isinstance(image, np.ndarray):
208
  image = Image.fromarray(image)
 
197
  control_strength: float,
198
  preprocessor_name: str
199
  ) -> list[PIL.Image.Image]:
200
+ self.t5_model.model.to(self.device).to(torch.bfloat16)
 
 
201
  self.load_gpt_weight('depth')
202
  self.gpt_model.to('cuda').to(torch.bfloat16)
 
203
  self.vq_model.to(self.device)
204
  if isinstance(image, np.ndarray):
205
  image = Image.fromarray(image)