OpenGVLab / DCNv4

[CVPR 2024] Deformable Convolution v4
https://arxiv.org/pdf/2401.06197.pdf
MIT License
516 stars 27 forks source link

Import Error #74

Open Dratlan opened 2 months ago

Dratlan commented 2 months ago

Traceback (most recent call last): File "", line 1, in File "/workspace/nas-data/code/gan_research-dev/DCNv4/DCNv4_op/DCNv4/init.py", line 1, in from .functions import DCNv4Function, FlashDeformAttnFunction File "/workspace/nas-data/code/gan_research-dev/DCNv4/DCNv4_op/DCNv4/functions/init.py", line 10, in from .flash_deform_attn_func import FlashDeformAttnFunction File "/workspace/nas-data/code/gan_research-dev/DCNv4/DCNv4_op/DCNv4/functions/flash_deform_attn_func.py", line 19, in from DCNv4 import ext ImportError: cannot import name 'ext' from partially initialized module 'DCNv4' (most likely due to a circular import) (/workspace/nas-data/code/gan_research-dev/DCNv4/DCNv4_op/DCNv4/init.py) how to solve a circular import in this code?

ZhangQianZhe commented 3 weeks ago

I meet the same queHello, I encountered the same error as you, I checked the code file, and did not find the ext file, May I ask you to find a solutionstion,do you