Skip to content

Commit

Permalink
fix tqdm usage (facebookresearch#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoinCheung authored and fmassa committed Dec 5, 2018
1 parent 2009ed5 commit 46dbf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maskrcnn_benchmark/engine/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def compute_on_dataset(model, data_loader, device):
model.eval()
results_dict = {}
cpu_device = torch.device("cpu")
for i, batch in tqdm(enumerate(data_loader)):
for i, batch in enumerate(tqdm(data_loader)):
images, targets, image_ids = batch
images = images.to(device)
with torch.no_grad():
Expand Down

0 comments on commit 46dbf29

Please sign in to comment.