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

Samples of eval always be —— pixAcc: 100.000, mIoU: 50.000 #52

Open
YangYangGirl opened this issue May 13, 2020 · 6 comments
Open

Comments

@YangYangGirl
Copy link

image

@YangYangGirl
Copy link
Author

YangYangGirl commented May 13, 2020

When I tried to fix the bugs, I had tried:

  1. Visualize
    Found the demo_vis.png filled with all red pixels.
    2.Train only two imgs, and eval them.
    Found the bugs alive.
  2. Print items of datasets.
    image
    then I got:
    image
    image
  3. Check the calculation of Acc
    When input imgs of [100, 100], got pixAcc = 8186/8186 = 1.

It seemed to be perfect when I checked, so I still be confused about the terrible results :(

@YangYangGirl
Copy link
Author

@YangYangGirl
Copy link
Author

image

return torch.LongTensor(np.array(mask).astype('int32') - 1)

Why do you minus 1? Maybe it's the key to solve the problem.

@YangYangGirl
Copy link
Author

image
By getting rid of the minus one operation, the model works !

@LikeLy-Journey
Copy link
Owner

sorry for wasting you so much time. Minus 1 may because the label of ade dataset not start from 0.

@YangYangGirl
Copy link
Author

image
image

Thank you for your reply. For further verification, I downloaded the data set of ade and checked that its mask started from 0. Your explanation may not be correct.

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