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

import error:cannot import name 'cfg' #39

Open
JCBourne97 opened this issue Oct 22, 2019 · 1 comment
Open

import error:cannot import name 'cfg' #39

JCBourne97 opened this issue Oct 22, 2019 · 1 comment

Comments

@JCBourne97
Copy link

Then I run the command:
python3 detector.py --image ./image/test.jpg --model ./epoch_204.pth.tar
Then I got this error:
Traceback (most recent call last):
File "detector.py", line 11, in
from model import Net
File "E:\code\S3FD\sfd.pytorch-master\model.py", line 5, in
from torchvision.models.vgg import VGG, cfg, make_layers, vgg16
ImportError: cannot import name 'cfg'
And I still don't figure out what goes wrong

@Aliumutcan
Copy link

Aliumutcan commented Nov 6, 2019

i changed cfg to cfgs for solution

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