ViTAE-Transformer / DeepSolo

The official repo for [CVPR'23] "DeepSolo: Let Transformer Decoder with Explicit Points Solo for Text Spotting" & [ArXiv'23] "DeepSolo++: Let Transformer Decoder with Explicit Points Solo for Multilingual Text Spotting"
Other
250 stars 34 forks source link

how to solve it? #56

Open SSSlump opened 10 months ago

SSSlump commented 10 months ago

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 commented 6 months ago

Maybe you forgot running

python setup.py build develop

to build the _C module.