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

eval_seg() doesn't work properly in c>2 cases #121

Open
CYXDBY opened this issue Jul 18, 2024 · 0 comments
Open

eval_seg() doesn't work properly in c>2 cases #121

CYXDBY opened this issue Jul 18, 2024 · 0 comments

Comments

@CYXDBY
Copy link

CYXDBY commented Jul 18, 2024

In the eval_seg method in utils.py, the case where c > 2 is not working. It will prompt that pred is a numpy array and does not have a float() method. If torch.tensor(pred) is used at this point, it will cause vpred_cpu = vpred.cpu() to lose the channel dimension directly. I don't know why this happens, but when I write the code following the c == 2 case, everything works fine except that the vis export will duplicate each image 5 times. I hope to get some help.
err
ok
Test10304 (97)+10304 (98)+epoch+1

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