zhang-tao-whu / e2ec

E2EC: An End-to-End Contour-based Method for High-Quality High-Speed Instance Segmentation
Other
214 stars 45 forks source link

No module named '_ext' #1

Closed obouluh closed 2 years ago

obouluh commented 2 years ago

when i run test.py show the error: python=3.7 image

and i think the same one like https://github.com/CharlesShang/DCNv2/issues/24. can u help me to solve this problem? Thanks!

zhang-tao-whu commented 2 years ago

When you use the conda list to view the environment, does it show that the dcn has been successfully installed dcn

hebangwen commented 2 years ago

Hi, @obouluh. I use DCNv2 from lbin/DCNv2 which contains several torch versions. I use torch1.7 and successfully build DCNv2. If that repo doesn't fit your requirement, you can also try jinfagang/DCNv2_latest.

zhang-tao-whu commented 2 years ago

Hi, I found that using mmcv.ops.ModulatedDeformConv2dPack instead of DCNv2 can also load pre-training weights without any problems. And mmcv-full is very easy to be installed. You can try it. @obouluh