manu commited on
Commit
a2d6d06
1 Parent(s): 10278bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -54,6 +54,9 @@ def index(files, ds):
54
  shuffle=False,
55
  collate_fn=lambda x: process_images(processor, x),
56
  )
 
 
 
57
  for batch_doc in tqdm(dataloader):
58
  with torch.no_grad():
59
  batch_doc = {k: v.to(device) for k, v in batch_doc.items()}
 
54
  shuffle=False,
55
  collate_fn=lambda x: process_images(processor, x),
56
  )
57
+
58
+ print(f"model device: {model.device}")
59
+ print(f"device: {device}")
60
  for batch_doc in tqdm(dataloader):
61
  with torch.no_grad():
62
  batch_doc = {k: v.to(device) for k, v in batch_doc.items()}