tqdm.auto to support notebook
This commit is contained in:
parent
5deac894a5
commit
ecbe041041
1 changed files with 2 additions and 2 deletions
4
track.py
4
track.py
|
@ -5,7 +5,7 @@ import cv2
|
|||
import logging
|
||||
import argparse
|
||||
|
||||
import tqdm
|
||||
from tqdm.auto import tqdm
|
||||
import motmetrics as mm
|
||||
|
||||
import torch
|
||||
|
@ -85,7 +85,7 @@ def eval_seq(opt, dataloader, data_type, result_filename, save_dir=None, save_im
|
|||
timer = Timer()
|
||||
results = []
|
||||
frame_id = -1
|
||||
for path, img, img0 in tqdm.tqdm(dataloader):
|
||||
for path, img, img0 in tqdm(dataloader):
|
||||
frame_id += 1
|
||||
# if frame_id % 20 == 0:
|
||||
# logger.info('Processing frame {} ({:.2f} fps)'.format(frame_id, 1./max(1e-5, timer.average_time)))
|
||||
|
|
Loading…
Reference in a new issue