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 'task_cls' is not defined #8

Open
smurf-1119 opened this issue May 25, 2022 · 1 comment
Open

NameError: name 'task_cls' is not defined #8

smurf-1119 opened this issue May 25, 2022 · 1 comment

Comments

@smurf-1119
Copy link

When I run the code "python tools.py --keyword update,raw --mf weights/det-resnet18/mf.txt --mt weights/det-resnet18/mt.txt --old weights/pytorch-resnet18/resnet18-5c106cde.pth --new weights", I encounter the issue as follows:
image
How can I solve it?

@smurf-1119
Copy link
Author

More details:
(STR) root@node03:~/data/qu/model-quantization# python tools.py --keyword update,raw --mf weights/det-resnet18/mf.txt --mt weights/det-resnet18/mt.txt --old weights/pytorch-resnet18/resnet18-5c106cde.pth --new weights
Failing to import plugin, ModuleNotFoundError("No module named 'plugin'",)
loading third party model failed cannot import name 'model_zoo'
Traceback (most recent call last):
File "tools.py", line 11, in
import main as entry
File "/root/data/qu/model-quantization/main.py", line 4, in
task_cls.py
NameError: name 'task_cls' is not defined

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