You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the Yolo Tracking issues and discussions and found no similar questions.
Yolo Tracking Component
Evaluation
Bug
Traceback (most recent call last):
File "D:\JQ\boxmot-master\tracking\val.py", line 558, in
run_all(opt)
File "D:\JQ\boxmot-master\tracking\val.py", line 438, in run_all
run_generate_dets_embs(opt)
File "D:\JQ\boxmot-master\tracking\val.py", line 366, in run_generate_dets_embs
for y in opt.yolo_model:
TypeError: 'WindowsPath' object is not iterable
Environment
python-3.9
Minimal Reproducible Example
mot_folder_paths = [item for item in Path(opt.source).iterdir()]
for y in opt.yolo_model:
for i, mot_folder_path in enumerate(mot_folder_paths):
dets_path = Path(opt.project) / 'dets_n_embs' / y.stem / 'dets' / (mot_folder_path.name + '.txt')
embs_path = Path(opt.project) / 'dets_n_embs' / y.stem / 'embs' / (opt.reid_model[0].stem) / (mot_folder_path.name + '.txt')
if dets_path.exists() and embs_path.exists():
if prompt_overwrite('Detections and Embeddings', dets_path, opt.ci):
LOGGER.info(f'Overwriting detections and embeddings for {mot_folder_path}...')
else:
LOGGER.info(f'Skipping generation for {mot_folder_path} as they already exist.')
continue
LOGGER.info(f'Generating detections and embeddings for data under {mot_folder_path} [{i + 1}/{len(mot_folder_paths)} seqs]')
generate_dets_embs(opt, y, source=mot_folder_path / 'img1')
The text was updated successfully, but these errors were encountered:
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Search before asking
Yolo Tracking Component
Evaluation
Bug
Traceback (most recent call last):
File "D:\JQ\boxmot-master\tracking\val.py", line 558, in
run_all(opt)
File "D:\JQ\boxmot-master\tracking\val.py", line 438, in run_all
run_generate_dets_embs(opt)
File "D:\JQ\boxmot-master\tracking\val.py", line 366, in run_generate_dets_embs
for y in opt.yolo_model:
TypeError: 'WindowsPath' object is not iterable
Environment
python-3.9
Minimal Reproducible Example
mot_folder_paths = [item for item in Path(opt.source).iterdir()]
for y in opt.yolo_model:
for i, mot_folder_path in enumerate(mot_folder_paths):
dets_path = Path(opt.project) / 'dets_n_embs' / y.stem / 'dets' / (mot_folder_path.name + '.txt')
embs_path = Path(opt.project) / 'dets_n_embs' / y.stem / 'embs' / (opt.reid_model[0].stem) / (mot_folder_path.name + '.txt')
if dets_path.exists() and embs_path.exists():
if prompt_overwrite('Detections and Embeddings', dets_path, opt.ci):
LOGGER.info(f'Overwriting detections and embeddings for {mot_folder_path}...')
else:
LOGGER.info(f'Skipping generation for {mot_folder_path} as they already exist.')
continue
LOGGER.info(f'Generating detections and embeddings for data under {mot_folder_path} [{i + 1}/{len(mot_folder_paths)} seqs]')
generate_dets_embs(opt, y, source=mot_folder_path / 'img1')
The text was updated successfully, but these errors were encountered: