vaib-saxena / Slow-Fast-pytorch-implementation

Action recognition using Slow Fast Network by FAIR
Apache License 2.0
15 stars 6 forks source link

cannot import name '_C' #2

Open artest08 opened 4 years ago

artest08 commented 4 years ago

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?

zhulishun commented 4 years ago

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.

artest08 commented 4 years ago

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.

zhulishun commented 4 years ago

thanks a lot.I will try.

archiducarmel commented 4 years ago

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.