nikigoli commited on
Commit
4226630
1 Parent(s): 63e6330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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))