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

How can i set the pretrained model? #10

Closed
sungkwonan opened this issue Jan 22, 2018 · 1 comment
Closed

How can i set the pretrained model? #10

sungkwonan opened this issue Jan 22, 2018 · 1 comment

Comments

@sungkwonan
Copy link

I want to test my image with pretrained model. After download your trained model and unzip, I try "python ./scripts/use_on_file.py --model model_epoch_190 --img sample_images/my_image.png".
But i get some error like below.
File "./scripts/use_on_file.py", line 57, in
chainer.serializers.load_npz(args.model, model)
File "/usr/local/lib/python2.7/dist-packages/chainer/serializers/npz.py", line 150, in load_npz
with numpy.load(file) as f:
File "/home/sungkwonan/.local/lib/python2.7/site-packages/numpy/lib/npyio.py", line 372, in load
fid = open(file, "rb")
IOError: [Errno 21] Is a directory: 'model_epoch_190'

how can i set the trained model?

@takiyu
Copy link
Owner

takiyu commented Jan 22, 2018

Do not unzip please.

@takiyu takiyu closed this as completed Jan 27, 2018
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