bentrevett / pytorch-image-classification

Tutorials on how to implement a few key architectures for image classification using PyTorch and TorchVision.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VGG with CUB200 without pre-trained

iamzifei opened this issue · comments

Hi this is a really great repo with detailed explanation. I'm trying to using the CUB200 dataset from the 5-ResNet example with 4-VGG net, however what I find is with model.load_state_dict(pretrained_model.state_dict()), I'm able to get the expected accuracy in the first few epoches. However, without loading pretrained parames, the accuracy in the first few epoches is 0.x%, which looks really wrong.

I've put a modified notebook here https://colab.research.google.com/drive/1Tu5hPH51y6Up9pIIJiUO-9aHXz4A-MJK?usp=sharing

Not sure what I missing and the reason behind the issue