Slow-Fast-pytorch-implementation icon indicating copy to clipboard operation
Slow-Fast-pytorch-implementation copied to clipboard

cannot import name '_C'

Open artest08 opened this issue 4 years ago • 4 comments

In /support/layer/roi_align.py, I am getting the error in the line of "from support import _C", such that _C cannot be imported?

artest08 avatar Apr 23 '20 22:04 artest08

In /support/layer/roi_align.py, I am getting the error in the line of "from support import _C", such that _C cannot be imported? Can you resolve it? I encounter the same question.

zhulishun avatar May 24 '20 10:05 zhulishun

I did not, but I think I know the solution. I think that library exists in detectron2 of Facebook AI. But detectron2 has also some requirements, such as some specific pytorch version. My nvidia driver is a little bit old, therefore, I could not install the detectron2. But you can try.

artest08 avatar May 24 '20 12:05 artest08

thanks a lot.I will try.

zhulishun avatar May 24 '20 12:05 zhulishun

Hi all, I solved this issue. You have to build the ''support'' module which is in the repo to get rid of this error. Just use this command : python3 ./support/setup.py build develop. It will create a _C shared object in the ''support'' folder. Hope it will help ! Regards.

archiducarmel avatar Nov 05 '20 10:11 archiducarmel