Skip to content
New issue

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

这个框架支持数据集中存在负样本吗 #39

Open
wangyf0928 opened this issue Jul 7, 2023 · 0 comments
Open

这个框架支持数据集中存在负样本吗 #39

wangyf0928 opened this issue Jul 7, 2023 · 0 comments

Comments

@wangyf0928
Copy link

我的数据集中有的图片没有目标框,xml中也没有object,运行到voc.py中的color_print会报错:
Traceback (most recent call last):
File "train.py", line 19, in
from dataloader.dataloaders import train_dataloader, val_dataloader
File "D:\easy_detection\easy_detection\dataloader\dataloaders.py", line 25, in
train_dataset, val_dataset = get_all_datasets()
File "D:\easy_detection\easy_detection\dataloader\list_dataset.py", line 82, in get_all_datasets
first_gpu=is_first_gpu())
File "D:\easy_detection\easy_detection\dataloader\voc.py", line 160, in init
utils.color_print(f'{name}: {counter[name]} ({counter[name]/tot_bbox*100:.2f}%)', 5)
ZeroDivisionError: division by zero

注释掉这里的代码之后可以运行,但是输出结果全是nan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant