-
Notifications
You must be signed in to change notification settings - Fork 60
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
No module named "_C" #19
Comments
u might want to cd to build/lib.linux-x86_64-3.7 and then try again |
Please first build the project at the parent directory of DynamicHead with |
@airytai I did not miss that step. But while doing that I got following error. "error: command '/usr/local/cuda-11.0/bin/nvcc' failed with exit status 1" Is it due version mismatch of local CUDA and CUDA version of my pytorch? |
@sourabh-patil if u built torch in a conda env, it doesnt quite matter what ur CUDA version is on local.. conda installs the CUDA toolkit and cudnn librarires when u install pytorch along with the torch libraries |
@coding-geek1711 Thank you for your reply. I do not use conda env. Following are my environment details. PyTorch version: 1.8.0+cu101 Nvidia driver version: 460.91.03 This time I matched the version of cuda used to build pytorch with cuda runtime version (which is 10.1). This time I also installed ninja (which is mentioned while building detectron2) and tried with and without it. After this I Now I got the following error: WITH NINJA:
WITHOUT NINJA: Running setup.py develop for dyhead
I might be stuck at some silly mistake. I will be really grateful if you can help. Thanks! |
It seems that I solved the issue. The problem was with torch and torchvision version. I had to roll back to torch 1.4.0 and torchvision 0.5.0. The reason might be that deformable convs need torch 1.4. It seems weird though. You need to get Detectron2 first which has mentioned to keep torch version above 1.8 and then it gave me error while installing dyhead. But after getting detectron2 with torch version 1.8, I had to roll back to torch 1.4 to install dyhead. Hope that while running train code it won't throw any errors. |
ERROR: DynamicDhead-master is not a valid editable requirement. It should either be a path to a local |
@sevenandseven Hello, thank you for replying. I have found the bug. It is related to mismatch of nvcc version, torch cuda version and gcc version. I found out that version mismatch is a critical problem while using detectron2. Thanks to their detailed guide about possible solution to the most faced problems, I could find where exactly are version mismatches. If anyone is facing issues to run Dynamic head then go through Common Issues given on https://detectron2.readthedocs.io/en/latest/tutorials/install.html My issue was """ C++ compilation errors from NVCC / NVRTC, or "Unsupported gpu architecture" """ .So solution number 3 from that worked for me. Hope that helps other people. Thanks! |
I have the same problem. And I tried to change it to: But the following errors still exist. |
You should run the command outside the DynamicHead folder. or run |
Thanks for sharing your great work! But I got a "No module issue" when i run your Code. It occurs in deform.py ,
line 8:
"import dyhead._C as _C".
The text was updated successfully, but these errors were encountered: