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

ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'thirdparty.deform_conv' #49

Open
mamuncseru opened this issue Sep 2, 2024 · 1 comment

Comments

@mamuncseru
Copy link

ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'thirdparty.deform_conv' (most likely due to a circular import) (/home/research/DCPOSE/DCPose/thirdparty/deform_conv/init.py)

from .. import deform_conv_cuda in deform_conv.py causing the problem. Does anyone know the reason?

@soonchanpark
Copy link

soonchanpark commented Dec 9, 2024

I have met the same error and I solve it by installing

cd thirdparty/deform_conv/
python setup.py build_ext --inplace -v

Then, I met other errors in installing because I do not follow pytorch and cuda version what the page recommanded. I solve the error one by one by modifying code in the folders.

You can find related instruction in https://github.com/Pose-Group/DCPose/blob/main/docs/Installation.md, "Install DCN".

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

2 participants