We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
train.py第299行 ins_anno_ids = val_dataset.getAnnIds(imgIds=img_id, iscrowd=False)
2021-03-03 19:18:34,074-INFO: Total iter: 0 2021-03-03 19:18:34,074-INFO: Test Done. 2021-03-03 19:18:34,074-INFO: total time: 0.000306s Traceback (most recent call last): File "train.py", line 487, in box_ap = eval(_decode, val_images, cfg.val_pre_path, cfg.val_path, cfg.eval_cfg['eval_batch_size'], _clsid2catid, cfg.eval_cfg['draw_image'], cfg.eval_cfg['draw_thresh']) File "/home/cqnu/文档/pmj/yolo4/Pytorch-PPYOLO/tools/cocotools.py", line 257, in eval logger.info('Speed: %.6fs per image, %.1f FPS.'%((cost / n), (n / cost))) ZeroDivisionError: float division by zero
跑到验证的iter的时候我的n不知道为什么是0 n 是cocotools.py 中eval()方法的image参数的length,因为从上述train的299行那里的变量就没值了,所以到这里n直接是0,就导致了下面的错误,请问可能是什么问题呢。我的数据集只有一个种类 。 望指教,谢谢。
The text was updated successfully, but these errors were encountered:
原来是做软链的时候box的数据没能写进去,大家在喂数据的时候注意一下吧,新手很容易忽视这方面的错误,嘿嘿。
Sorry, something went wrong.
No branches or pull requests
train.py第299行
ins_anno_ids = val_dataset.getAnnIds(imgIds=img_id, iscrowd=False)
2021-03-03 19:18:34,074-INFO: Total iter: 0
2021-03-03 19:18:34,074-INFO: Test Done.
2021-03-03 19:18:34,074-INFO: total time: 0.000306s
Traceback (most recent call last):
File "train.py", line 487, in
box_ap = eval(_decode, val_images, cfg.val_pre_path, cfg.val_path, cfg.eval_cfg['eval_batch_size'], _clsid2catid, cfg.eval_cfg['draw_image'], cfg.eval_cfg['draw_thresh'])
File "/home/cqnu/文档/pmj/yolo4/Pytorch-PPYOLO/tools/cocotools.py", line 257, in eval
logger.info('Speed: %.6fs per image, %.1f FPS.'%((cost / n), (n / cost)))
ZeroDivisionError: float division by zero
跑到验证的iter的时候我的n不知道为什么是0
n 是cocotools.py 中eval()方法的image参数的length,因为从上述train的299行那里的变量就没值了,所以到这里n直接是0,就导致了下面的错误,请问可能是什么问题呢。我的数据集只有一个种类 。
望指教,谢谢。
The text was updated successfully, but these errors were encountered: