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

No module named 'models' #1

Open
zsp1993 opened this issue Jul 2, 2019 · 2 comments
Open

No module named 'models' #1

zsp1993 opened this issue Jul 2, 2019 · 2 comments

Comments

@zsp1993
Copy link

zsp1993 commented Jul 2, 2019

HI,
when I run PENCIL.py, there was an import error said no module named 'models',
look forward to see your complete code.

@zsp1993
Copy link
Author

zsp1993 commented Jul 2, 2019

another issue is in self.train_data = self.train_data.reshape((45000, 3, 32, 32)),
which result in ValueError: cannot reshape array of size 153600000 into shape (45000,3,32,32)

@mily33
Copy link

mily33 commented Jul 16, 2019

(1)You can modify models in torchvision.model_zoo to build your own models.

(2)153600000=50000332*32. You should retain 10% of the CIFAR-10 training data (i.e. 5000 images) as the validation set. I split the data_batch_5 into train and val dataset, and it works for me.

@zsp1993 Hope it helps!

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

2 participants