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