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

why are the outputs of infer_aff.py black image? #29

Open
OpencvW opened this issue Dec 30, 2020 · 3 comments
Open

why are the outputs of infer_aff.py black image? #29

OpencvW opened this issue Dec 30, 2020 · 3 comments

Comments

@OpencvW
Copy link

OpencvW commented Dec 30, 2020

Hi,I got all black image when I run infer_aff.py file. Does anyone have the same problem as me?please help me,thank you!

@hyhyni
Copy link

hyhyni commented Jan 21, 2021

i meet the same problem, have you solved this problem?

@Sung-Hoiank
Copy link

I met the same problem, too . have you two solved this problem?

@Sung-Hoiank
Copy link

I have figured out why. It is supposed to be nearly black because the output CAM-mask is labeled with its class number. In the VOC 2012 data set, there are 20 classes, and were labeled by the first letter respectively. For example, person is 15 and train is 19. You can turn up the brightness of you screen to make it easier to notice the mask. If you don't get the right mask, check the weights you use. It should be vgg_cls.pth or res38_cls.pth

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