Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update model.py
Browse files
model.py
CHANGED
@@ -197,12 +197,9 @@ class Model:
|
|
197 |
control_strength: float,
|
198 |
preprocessor_name: str
|
199 |
) -> list[PIL.Image.Image]:
|
200 |
-
|
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)
|