faster-rcnn.pytorch icon indicating copy to clipboard operation
faster-rcnn.pytorch copied to clipboard

ImportError: cannot import name ‘_mask’from ‘pycocotools’(home/user/faster-rcnn.pytorch/lib/pycocotools/__init__.py)

Open LinjieFu-U opened this issue 4 years ago • 3 comments

ImportError: cannot import name ‘_mask’from ‘pycocotools’(home/user/faster-rcnn.pytorch/lib/pycocotools/init.py)

LinjieFu-U avatar Jul 18 '20 09:07 LinjieFu-U

I met this problem when I use lib/pycocotools on win10. I solved this by install pycocotools through the following code in power shell: pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI and abandoned lib/pycocotools in this project folder.

mexmi avatar Jul 29 '20 11:07 mexmi

Just build the setup.py in lib folder of the repository. Run this command: cd faster-RCNN.pytorch/lib && python setup.py build develop

It has worked in my case.

neilsen1994 avatar Sep 15 '20 10:09 neilsen1994

https://blog.csdn.net/cube_suger/article/details/112648721

zhenhuaFu avatar Jan 15 '21 02:01 zhenhuaFu