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

NameError: name 'Darknet' is not defined #126

Open
MohamedElsaeidy opened this issue Apr 28, 2021 · 1 comment
Open

NameError: name 'Darknet' is not defined #126

MohamedElsaeidy opened this issue Apr 28, 2021 · 1 comment

Comments

@MohamedElsaeidy
Copy link

python3 normal_prune.py --data data/coco2017.data --weights yolov3_SPP_best.pt --cfg yolov3-spp3.cfg --percent 0.2 
Namespace(batch_size=8, cfg='yolov3-spp3.cfg', data='data/coco2017.data', img_size=416, percent=0.2, weights='yolov3_SPP_best.pt')
Traceback (most recent call last):
  File "normal_prune.py", line 104, in <module>
    model = Darknet(opt.cfg).to(device)
NameError: name 'Darknet' is not defined

trying to prune on yolov3 model but gives this error 
@sharoseali
Copy link

python3 normal_prune.py --data data/coco2017.data --weights yolov3_SPP_best.pt --cfg yolov3-spp3.cfg --percent 0.2 
Namespace(batch_size=8, cfg='yolov3-spp3.cfg', data='data/coco2017.data', img_size=416, percent=0.2, weights='yolov3_SPP_best.pt')
Traceback (most recent call last):
  File "normal_prune.py", line 104, in <module>
    model = Darknet(opt.cfg).to(device)
NameError: name 'Darknet' is not defined

trying to prune on yolov3 model but gives this error 

same happening here.... Any 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