Hi there,
Thanks you for sharing the code. It seems the preprocess in utils.py automatically normalizes the images using Imagenet mean and std values regardless of the state of training. If the training is started from scratch (no pretrained weights are required), still the mean and std of images are gonna used for normalization.
|
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]) |
A simple flag could be added to prevent this. I'd be happy to pull request for that. Please let me know if you are interested in adding that flag.
Hi there,
Thanks you for sharing the code. It seems the
preprocessinutils.pyautomatically normalizes the images using Imagenet mean and std values regardless of the state of training. If the training is started from scratch (no pretrained weights are required), still the mean and std of images are gonna used for normalization.DeepLabv3.pytorch/utils.py
Line 73 in 046818d
A simple flag could be added to prevent this. I'd be happy to pull request for that. Please let me know if you are interested in adding that flag.