XiandaGuo / OpenStereo

OpenStereo: A Comprehensive Benchmark for Stereo Matching and Strong Baseline
465 stars 51 forks source link

ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'stereo.libs.AANet.deform_conv' #111

Closed lvruizhen closed 4 months ago

lvruizhen commented 5 months ago

when i run the train.py,this problem show: ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'stereo.libs.AANet.deform_conv' (most likely due to a circular import) (/home/lvrz/pythonproject/OpenStereo-2/./stereo/libs/AANet/deform_conv/init.py) How to slove it,please!

zhcm commented 4 months ago

Please comment out aanet in stereo/modeling/init.py, or execute stereo/libs/AANet/deform_conv/build.sh to compile the deform_conv operator.