Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.79k stars 580 forks source link

cannot import name '_C' from partially initialized module 'core.nn' (most likely due to a circular import) #175

Closed ggohem closed 3 years ago

ggohem commented 3 years ago

Hi,guys, I encountered the following error when running the code:

ImportError: cannot import name '_C' from partially initialized module 'core.nn' (most likely due to a circular import) (/backup/mingjin/pycharm/Exercise/semantic_segmentation/core/nn/init.py)

My training parameters are as follows: --model bisenet --backbone resnet18 --dataset pascal_voc --lr 0.0001 --epochs 50

What should I do?Please help me,Thx!

Tramac commented 3 years ago

Hi, please run python setup.py build develop first.