Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update model.py
Browse files
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 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
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)
|