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

KeyError: 'meta' #57

Open
foolself opened this issue Mar 26, 2017 · 1 comment
Open

KeyError: 'meta' #57

foolself opened this issue Mar 26, 2017 · 1 comment

Comments

@foolself
Copy link

I just have try to run the example:

python neural_artistic_style.py --subject images/tuebingen.jpg --style images/starry_night.jpg

and I get the error:

CUDArray: CUDA back-end not available, using NumPy.
Traceback (most recent call last):
  File "neural_artistic_style.py", line 138, in <module>
    run()
  File "neural_artistic_style.py", line 99, in run
    layers, pixel_mean = vgg_net(args.network, pool_method=args.pool_method)
  File "/home/john/code/pycode/neural_artistic_style/matconvnet.py", line 27, in vgg_net
    img_mean = matconvnet['meta'][0][0][2][0][0][2]
KeyError: 'meta'

Anybody same?
What mean is here of key "meta"?

@foolself
Copy link
Author

I got it, because I downloaded a wrong imagenet-vgg-verydeep-19.mat file, there is none a key named "meta" in this file, so had better download the file from the link README provide.

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

1 participant