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

Running inference: ModuleNotFoundError: No module named 'vedacore' #97

Open
ezionoir opened this issue May 29, 2023 · 1 comment
Open

Comments

@ezionoir
Copy link

When I run the model on colab:

!python tools/infer.py '/content/vedadet/configs/infer/tinaface/tinaface_r50_fpn_gn_dcn.py' '/content/vedadet/images/1.jpg'

I get the error:

Traceback (most recent call last):
File "/content/vedadet/tools/infer.py", line 7, in
from vedacore.image import imread, imwrite
ModuleNotFoundError: No module named 'vedacore'

Here is my notebook 'https://colab.research.google.com/drive/1Nr4oAgQagwZUybqfVG78HBws2HhMFksW?usp=sharing'

@SeonjiPark
Copy link

If you correctly clone this directory, this is mainly caused by absolute path error.
your execute file is in "tools" folder, while vedacore folder exists one step above.
so interpreter is finding vedacore module inside "tools" folder.

you can solve this problem by add

import os, sys
sys.path.append(os.getcwd())

to your execute file (Ex. tools/infer.py)

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