Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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()}
|