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

Potential bug in scaling in damange_inference.py #17

Open
Michaeljurado42 opened this issue Sep 12, 2021 · 0 comments
Open

Potential bug in scaling in damange_inference.py #17

Michaeljurado42 opened this issue Sep 12, 2021 · 0 comments

Comments

@Michaeljurado42
Copy link

I noticed in damage_inference.py that the testing images are all scaled by 1.4. Inside damage_classification.py however the images are all scaled by 1/255 which makes sense to me.

The performance of the pretrained model changes greatly depending on the choice of scaling I've noticed. When I change the scaling to 1/255 the model only predicts "no-damage" but when you keep the scaling as 1.4 the results are more similar to the paper.

@Michaeljurado42 Michaeljurado42 changed the title Potential bug in scaling code in damange_inference.py Potential bug in scaling in damange_inference.py Sep 12, 2021
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