-
Notifications
You must be signed in to change notification settings - Fork 86
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' #11
Comments
@yeohunyun Hi. It seems the enviroment problem. I use pytorch1.1.0, cuda9.0/10.0, and mmcv0.4.3. You can use this setting to try it again. |
Thank you for replying i fixed the error in training but, i got the error in test like how to fix it..? thanks. |
@yeohunyun Hi. It is difficult for me to give a detailed accurate reason about this problem. It seems that the backbone with deformable convolution has an error. But I am not sure why it is wrong during testing and okay during training. Could you provide more details about the training and testing, e.g., the commands of training and testing. Do you train the detector using your own datasets? |
How did you solve this problem? I also have this problem |
@ma3252788 I think that the reason is that the project is not compiled sucessfully. I use pytorch1.1.0, cuda9.0/10.0, and mmcv0.4.3. You can try it again with my settings. |
Thank you for your reply. I have been trying to install the environment all day today, but failed. Could you please provide me with more detailed environment Settings? For example, the version of MMdetction, if you are using Anaconda, can you share the YML file of Conda? |
@ma3252788 I think that you maybe have some inaccurate understanding. In fact, you do not need to download an extra mmdetection, because our D2Det contains mmdetection. Just download our D2Det and treat it as a mmdetection project. Using pytorch1.1.0, cuda9.0/10.0, and mmcv0.4.3 to compile it under a new conda enviroment. |
@JialeCao001 I see what you mean. I'll have a try. |
I'm sorry to bother you. I tried to use mmdet directly, and then I will prompt |
@JialeCao001 I have rebuilt a virtual environment, and my orders are as follows: And then the question would come up.#11 (comment) |
@ma3252788 I am afraid that this code does not support new mmdetection. If you want to use new mmdetection, maybe you can copy the files of D2Det to that project. |
@JialeCao001 No, I didn't want to use the new mmdetection. When I run this code, It will prompt ModuleNotFoundError: No module named 'mmdet.version' , So, I recompiled a version.py |
Is this the right step for me? Is there anything missing? |
Do you compile this project sucessfully? Using the command: pip install -v -e . or python setup.py develop. |
Thank you very much. Now it works!!! Thank you!! I'm sorry I didn't find this command in the installation guide. |
One of the reasons could be you are using a cpu machine. Please check if cuda is available. Some versions of mmdet only compiles on GPU. |
hello ,
thank you for the repo.
when i train the model, i just got the error like
"Traceback (most recent call last):
File "train.py", line 15, in
from mmdet import version
File "/home/adasone/yeohun/D2Det/tools/../mmdet/init.py", line 1, in
from .version import version, short_version
ModuleNotFoundError: No module named 'mmdet.version'
"
how can i fix it ?
Thanks.
The text was updated successfully, but these errors were encountered: