EfficientNet-PyTorch icon indicating copy to clipboard operation
EfficientNet-PyTorch copied to clipboard

How to train

Open li-an-sheng opened this issue 3 years ago • 2 comments

Hello, I want to ask how I can train my own data set now. I don't see the training code

li-an-sheng avatar Aug 30 '22 04:08 li-an-sheng

See examples/imagenet/main.py

ayicherry avatar Sep 15 '22 09:09 ayicherry

Do we need to always normalize using the Imagenet mean/std values (normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])) when we are using an Imagenet pretrained Efficientnet model from here for training on our different dataset? I have read that the pretrained models available in Pytorch needs this normalization as a preprocessing step (https://discuss.pytorch.org/t/how-to-preprocess-input-for-pre-trained-networks/683).

Riddhasree avatar Aug 28 '23 07:08 Riddhasree