sfd.pytorch icon indicating copy to clipboard operation
sfd.pytorch copied to clipboard

import error:cannot import name 'cfg'

Open JCBourne97 opened this issue 6 years ago • 1 comments

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

JCBourne97 avatar Oct 22 '19 13:10 JCBourne97

i changed cfg to cfgs for solution

Aliumutcan avatar Nov 06 '19 11:11 Aliumutcan