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

Slightly lower validation accuracy in Pytorch 1.0.0 #26

Open
yzou2 opened this issue Jan 10, 2019 · 6 comments
Open

Slightly lower validation accuracy in Pytorch 1.0.0 #26

yzou2 opened this issue Jan 10, 2019 · 6 comments

Comments

@yzou2
Copy link

yzou2 commented Jan 10, 2019

Hi @speedinghzl ,

I used your pytorch deeplab v2 implementation, same setting, with pytorch version of 1.0.0. The validation mIoU of VOC_scenes_20000.pth is 71.1. Is this degradation due to randomness? Could you give me any comments?
Here is the parameter I used:

BATCH_SIZE = 10
DATA_DIRECTORY = './dataset/voc12'
DATA_LIST_PATH = './dataset/list/train_aug.txt'
IGNORE_LABEL = 255
INPUT_SIZE = '321,321'
LEARNING_RATE = 2.5e-4
MOMENTUM = 0.9
NUM_CLASSES = 21
NUM_STEPS = 20000
POWER = 0.9
RANDOM_SEED = 1234
RESTORE_FROM = './dataset/MS_DeepLab_resnet_pretrained_COCO_init.pth'
SAVE_NUM_IMAGES = 2
SAVE_PRED_EVERY = 1000
SNAPSHOT_DIR = './snapshots/'
WEIGHT_DECAY = 0.0005

Thank you for your help!

@speedinghzl
Copy link
Owner

Maybe you should set align_corners=True for Upsample for Pytroch > 0.4.

@yzou2
Copy link
Author

yzou2 commented Jan 10, 2019

Maybe you should set align_corners=True for Upsample for Pytroch > 0.4.

Thanks for your prompt reply. Actually the evaluate.py I used, which is your up-to-dated implementation, already set align_corners=True. So I don't think this is the reason for the performance degradation. Do you have any other ideas? Really appreciate your help.

@speedinghzl
Copy link
Owner

Do you evaluate the VOC_scenes_20000.pth I provided?

@yzou2
Copy link
Author

yzou2 commented Jan 10, 2019

Do you evaluate the VOC_scenes_20000.pth I provided?

I just evaluated the provided VOC_scenes_20000.pth. It can only get 70.4 which is slightly worse than the model fine-tuned in my computer. Any idea why this happen?

@WilliamLwj
Copy link

WilliamLwj commented Jul 5, 2019

I retrained the whole model and get 73.58 IoU at 20k iter, slightly lower but understandable.

@speedinghzl
Copy link
Owner

@WilliamLwj Thanks for your feedback and your produced results. I'm not sure whether the performance gap is caused by the different Pytorch versions (0.2 vs 1.0).

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