psa icon indicating copy to clipboard operation
psa copied to clipboard

why are the outputs of infer_aff.py black image?

Open OpencvW opened this issue 4 years ago • 3 comments

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!

OpencvW avatar Dec 30 '20 01:12 OpencvW

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

hyhyni avatar Jan 21 '21 03:01 hyhyni

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

Sung-Hoiank avatar Apr 17 '21 03:04 Sung-Hoiank

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

Sung-Hoiank avatar Apr 17 '21 07:04 Sung-Hoiank