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

how to solve it? #56

Open
SSSlump opened this issue Jan 5, 2024 · 1 comment
Open

how to solve it? #56

SSSlump opened this issue Jan 5, 2024 · 1 comment

Comments

@SSSlump
Copy link

SSSlump commented Jan 5, 2024

Traceback (most recent call last):
File "tools/train_net.py", line 43, in
from adet.data.dataset_mapper import DatasetMapperWithBasis
File "/root/autodl-tmp/DeepSolo-main/adet/init.py", line 1, in
from adet import modeling
File "/root/autodl-tmp/DeepSolo-main/adet/modeling/init.py", line 2, in
from .text_spotter import TransformerPureDetector
File "/root/autodl-tmp/DeepSolo-main/adet/modeling/text_spotter.py", line 9, in
from adet.layers.pos_encoding import PositionalEncoding2D
File "/root/autodl-tmp/DeepSolo-main/adet/layers/init.py", line 1, in
from .ms_deform_attn import MSDeformAttn
File "/root/autodl-tmp/DeepSolo-main/adet/layers/ms_deform_attn.py", line 17, in
from adet import _C
ImportError: cannot import name '_C' from partially initialized module 'adet' (most likely due to a circular import) (/root/autodl-tmp/DeepSolo-main/adet/init.py)

@sraimund
Copy link

sraimund commented May 7, 2024

Maybe you forgot running

python setup.py build develop

to build the _C module.

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