Open yeohunyun opened 3 years ago
@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
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[ ] 0/114, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/test.py", line 179, in
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?
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.
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.
@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.
@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.
@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.
I'm sorry to bother you. I tried to use mmdet directly, and then I will prompt ModuleNo. Finderror: No Module Named' mmdet. Version'
, then I compiled other mmdetection, copied the version.py into mmdet, and then I can continue running. However, the error importerror: cannot import name' deform _ conv _ cuda'
appeared later. Do you know the reason?
@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 have rebuilt a virtual environment, and my orders are as follows: conda create -n d2 Python=3.6 conda activate d2 conda install pytorch=1.1.0=cuda100py36he554f03_0 pip install mmcv==0.4.3
And then the question would come up.https://github.com/JialeCao001/D2Det/issues/11#issuecomment-691399410
@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.
I'm sorry to bother you. I tried to use mmdet directly, and then I will prompt
ModuleNo. Finderror: No Module Named' mmdet. Version'
, then I compiled other mmdetection, copied the version.py into mmdet, and then I can continue running. However, the errorimporterror: cannot import name' deform _ conv _ cuda'
appeared later. Do you know the reason?
@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.
@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.
I'm sorry to bother you. I tried to use mmdet directly, and then I will prompt
ModuleNo. Finderror: No Module Named' mmdet. Version'
, then I compiled other mmdetection, copied the version.py into mmdet, and then I can continue running. However, the errorimporterror: cannot import name' deform _ conv _ cuda'
appeared later. Do you know the reason?@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
@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.
I'm sorry to bother you. I tried to use mmdet directly, and then I will prompt
ModuleNo. Finderror: No Module Named' mmdet. Version'
, then I compiled other mmdetection, copied the version.py into mmdet, and then I can continue running. However, the errorimporterror: cannot import name' deform _ conv _ cuda'
appeared later. Do you know the reason?@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.
conda create -n d2 Python=3.6 conda activate d2 conda install pytorch=1.1.0=cuda100py36he554f03_0 pip install mmcv==0.4.3 python ./demo/D2Det_demo.py ./configs/D2Det/D2Det_instance_r101_fpn_2x.py ./D2Det-instance-res101.pth ./demo/demo.jpg --out ./demo/aa.jpg
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.
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.