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

DCNv2 Compilation is successful but train.py fails #63

Closed
niranjanravilevelup opened this issue Oct 3, 2022 · 0 comments
Closed

DCNv2 Compilation is successful but train.py fails #63

niranjanravilevelup opened this issue Oct 3, 2022 · 0 comments

Comments

@niranjanravilevelup
Copy link

Hi,
Thank you for the repo. I am working with https://github.com/lbin/DCNv2 to build DCNv2.

I used this and did a git check out for version pytorch_1.6. When I did the ./make.sh, I was able to build successfully and no errors. This was done in pytorch version 1.7 and ./make.sh was modified with --user since I do not have root privilages.

Now, when I run the centerFuse train.py file, I face two problems.

In dcn_v2.py, import _ext as _backend fails and it displays "import DCN failed" and "NoneType" object is not callable. But _ext.so file exsists in the same directory but the code is unable to import it.

If i comment out import _ext as _backend, then import DCN becomes succesful and the error now is Torch not compiled with CUDA enabled.

I tried various work around and no fix.

If I compile ./make.sh with pytorch 1.7 (CUDA compiled) , does my train.py should alse be run in same pytroch 1.7 (CUDA compiled) ? Is this why I am facing the issue?

Or what other things I could be considering?

I a stuck in a loop here. Any help would be very much helpful.

Thank you.

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