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

ModuleNotFoundError: No module named 'torchcv' #49

Open
hxy1051653358 opened this issue Jan 17, 2019 · 1 comment
Open

ModuleNotFoundError: No module named 'torchcv' #49

hxy1051653358 opened this issue Jan 17, 2019 · 1 comment

Comments

@hxy1051653358
Copy link

When I run python train.py
Traceback (most recent call last):
File "train.py", line 19, in
from torchcv.models.fpnssd import FPNSSD512
ModuleNotFoundError: No module named 'torchcv'

@abhishekag03
Copy link

Yeah that will come because the directory containing torchcv is not a part of your system path. You can add it as follows:
import sys
sys.path.insert(0, "path_to_the_directory_containing_torchcv")
It will work now, you can check the directories added by "print(sys.path)"
You might need to add some more paths as you run the code.

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