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

ImportError: No module named cnn_model #3

Open
redaaa99 opened this issue Jan 12, 2020 · 0 comments
Open

ImportError: No module named cnn_model #3

redaaa99 opened this issue Jan 12, 2020 · 0 comments

Comments

@redaaa99
Copy link

Ubuntu 18.04.3 LTS
Python 3.6.9

Command:
python3 predict.py --model "./models/pretrained_model.pth" --text "I love pizza !" --max_length 150

Output:
Traceback (most recent call last):
File "predict.py", line 47, in
prediction = predict(args)
File "predict.py", line 14, in predict
state = torch.load(args.model)
File "/home/reda/.local/lib/python3.6/site-packages/torch/serialization.py", line 426, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/home/reda/.local/lib/python3.6/site-packages/torch/serialization.py", line 613, in _load
result = unpickler.load()
ModuleNotFoundError: No module named 'src.cnn_model'

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