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

The loss can't be reduced when I use VOC dataset #32

Closed
JoyHuYY1412 opened this issue Sep 16, 2018 · 3 comments
Closed

The loss can't be reduced when I use VOC dataset #32

JoyHuYY1412 opened this issue Sep 16, 2018 · 3 comments

Comments

@JoyHuYY1412
Copy link

I tried to use this code for the segmentation of VOC dataset. It has about 2900 images, I use the deeplabV2 model.
The loss hardly decreases after 2k steps (I use 3 as batch size ), and it's around 0.7-1.
I don't know why.

@kazuto1011
Copy link
Owner

Did you switch all the batch norm to eval mode? I received the report the model could be trained on Pascal VOC 2012, although the result was 1 point lower (here). Basically, I think you only have to replace the COCO-Stuff data loader with a third-party one for VOC. Anyway, please try with a default setting (10 samples as a batch, 20k steps)

@JoyHuYY1412
Copy link
Author

Thank you for your reply. It works really well. I have another question, the init model, deeplabv2_resnet101_VOC2012.pth, is it trained on resnet for image classification or something?

@kazuto1011
Copy link
Owner

An init model is actually deeplabv2_resnet101_COCO_init.pth, which is "ResNet-101 + ASPP" model trained on MSCOCO segmentation set. The "ResNet" part was pre-trained on ImageNet.
The deeplabv2_resnet101_VOC2012.pth that you mentioned is a model which was initialized with MSCOCO parameters above and trained on Pascal VOC 2012.

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