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

GT_Encoder f1_score always 0 #53

Open
kashyappiyush1998 opened this issue Oct 18, 2022 · 4 comments
Open

GT_Encoder f1_score always 0 #53

kashyappiyush1998 opened this issue Oct 18, 2022 · 4 comments

Comments

@kashyappiyush1998
Copy link

I tried overfitting on fewer images [24] to see if issue is real, f1 error array and hence np.amax(f1) both are coming out to be 0. Any solutions?

@kashyappiyush1998
Copy link
Author

kashyappiyush1998 commented Oct 20, 2022

I believe there is a correction to be made:

pre,rec,f1,mae = f1_mae_torch(pred_val*255, gt, valid_dataset, i_test, mybins, hypar)

should be

pre,rec,f1,mae = f1_mae_torch(pred_val* 255, gt* 255, valid_dataset, i_test, mybins, hypar)

@ogladkov
Copy link

ogladkov commented Nov 2, 2022

I have the same issue. F1 is 0 always.

@kashyappiyush1998
Copy link
Author

Multiplying gt by 255 solved it for me

@PiggyJerry
Copy link
Collaborator

I tried overfitting on fewer images [24] to see if issue is real, f1 error array and hence np.amax(f1) both are coming out to be 0. Any solutions?

The code has been updated, please try to use that to see whether the error still happens?

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

3 participants