Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Cannot run imagenet_pretrained_vgg example #160

Description

@RXZ2020

I was trying to run https://github.com/google/objax/blob/master/examples/image_classification/imagenet_pretrained_vgg.py

But received an error:


FileNotFoundError Traceback (most recent call last)
in ()
38
39 # Load model with pretrained weights and make a prediction.
---> 40 model = vgg.VGG19(pretrained=True)
41 logit = model(img)
42 prob = objax.functional.softmax(logit)[0]

/usr/local/lib/python3.6/dist-packages/objax/zoo/vgg.py in init(self, pretrained)
55 if not os.path.exists(_VGG19_NPY):
56 raise FileNotFoundError(
---> 57 'You must download vgg19.npy from %s and save it to %s' % (_VGG19_URL, _VGG19_NPY))
58 if not os.path.exists(_SYNSET_PATH):
59 request.urlretrieve(_SYNSET_URL, _SYNSET_PATH)

FileNotFoundError: You must download vgg19.npy from https://github.com/machrisaa/tensorflow-vgg and save it to ./objax/zoo/pretrained/vgg19.npy

Is this normal? How should I proceed from here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions