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

Error when all objects of an image are marked as "difficult" #78

Open
Matias2379 opened this issue Jun 15, 2021 · 2 comments
Open

Error when all objects of an image are marked as "difficult" #78

Matias2379 opened this issue Jun 15, 2021 · 2 comments

Comments

@Matias2379
Copy link

Hi!
Im training this SSD with another dataset and i found that when all objects in an image are marked as difficult and the flag
keep_difficult is set to False , it throws an error in Datasets.py after eliminating those objetcts from the tensors and try to apply transforms to empty tensors []. Lines 45 and following

@NiranjanRavi1993
Copy link

NiranjanRavi1993 commented Jun 16, 2021

Hi @Matias2379 ,
Yes, I am also facing the same issue with another dataset. My dataset does not contain the word difficult. So I modified the code, the train.py and detect.py worked. But eval.py script needs a difficulties field and mAP is coming to zero.

@NiranjanRavi1993
Copy link

@Matias2379 UPDATE: Was able to fix the issue.

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

2 participants