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 'mmdet.version' #2

Closed
ghost opened this issue May 5, 2022 · 2 comments
Closed

ModuleNotFoundError: No module named 'mmdet.version' #2

ghost opened this issue May 5, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented May 5, 2022

Traceback (most recent call last):
File "/home/dgx/workspace/cui/ViTAE/tools/train.py", line 13, in
from mmdet.apis import set_random_seed, train_detector
File "/home/dgx/workspace/cui/ViTAE/mmdet/init.py", line 1, in
from .version import version, short_version
ModuleNotFoundError: No module named 'mmdet.version'

in the mmdet/init.py, I found the code to be written like this

from .version import version, short_version

all = ['version', 'short_version']

but the .version is not the python file, in the .version file, It is only one line of code
2.2.0

@DotWang
Copy link
Collaborator

DotWang commented May 5, 2022

Have you installed OBBDetection? You can refer to https://github.com/jbwang1997/OBBDetection/blob/master/docs/install.md for installation. Don't forget to execute python setup.py develop

@ghost
Copy link
Author

ghost commented May 5, 2022

Thank you for your answer, It is true that I did not recompile the environment in this project because I compiled it in a previous project

@ghost ghost closed this as completed May 5, 2022
This issue was closed.
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