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

Fixed predict_sliding not computing correctly #55

Open
wants to merge 1 commit into
base: pytorch-1.1
Choose a base branch
from

Conversation

ironcadiz
Copy link

This PR fixes the predict_sliding function of evaluate.py not giving correct values.

Currently instead of adding the full batch of obtained probabilities, it only adds the ones from the first image. This does not throw and error since numpy casts the dimensions on addition, resulting on the predictions for the first image being stored in place of the rest. This results in a very low MIoU whenever the script is run with batch_size > world_size

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

Successfully merging this pull request may close these issues.

1 participant