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

the iou always equals to 0.5 when I use my dataset to train the model #16

Closed
yangyang9706 opened this issue Apr 17, 2019 · 6 comments
Closed

Comments

@yangyang9706
Copy link

Thank you for your work. I have the problem that the iou always equals to 0.5 when I use my dataset to train the model. I am looking forward to your answers.

@HasnainRaz
Copy link
Owner

Did you make any changes to the code?

@yangyang9706
Copy link
Author

I didn't change the code

@HasnainRaz
Copy link
Owner

What format are your ground truth labels?

@yangyang9706
Copy link
Author

the input image is 250*395, the mask is binarized images whose pixel values are 0 and 1.

@HasnainRaz
Copy link
Owner

You need to comment out the normalization function in the dataloader, since it divides the groundtruth labels by 255. Your labels are 0 and 1, 1/255 becomes 0, so the network never learns the foreground class, leading to a 0.5 iou.

@yangyang9706
Copy link
Author

thank you so much! I have solved my problem!

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