Overfitting on ResNet18
Author: MichaelLee-ceoCreated Mar 24, 2023Updated Apr 16, 2023
I copied the resnet.py for constructing ResNet18 and start training. The hyperparameters I used to train the network are the same as defined in the main.py, but I eventually end up with overfitting on the testing set. I got almost 98% accuracy on training set while only 89% on testing set. Did I mis-configured something or how can I handle it to avoid overfitting? Thanks
Source: kuangliu/pytorch-cifar