Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -236,7 +236,7 @@ def count(image, text, prompts, state, device):
|
|
236 |
input_image_exemplars = input_image_exemplars.unsqueeze(0).to(device)
|
237 |
exemplars = [exemplars["exemplars"].to(device)]
|
238 |
|
239 |
-
print("model device: " + str(model.device))
|
240 |
print("input image device: " + str(input_image.device))
|
241 |
print("input image exemplars device: " + str(input_image_exemplars.device))
|
242 |
print("exemplars device: " + str(exemplars[0].device))
|
|
|
236 |
input_image_exemplars = input_image_exemplars.unsqueeze(0).to(device)
|
237 |
exemplars = [exemplars["exemplars"].to(device)]
|
238 |
|
239 |
+
print("model device: " + str(next(model.parameters()).device))
|
240 |
print("input image device: " + str(input_image.device))
|
241 |
print("input image exemplars device: " + str(input_image_exemplars.device))
|
242 |
print("exemplars device: " + str(exemplars[0].device))
|