Faster-RCNN-TensorFlow-Python3 icon indicating copy to clipboard operation
Faster-RCNN-TensorFlow-Python3 copied to clipboard

ValueError: 'pycocotools/_mask.pyx' doesn't match any files

Open gimmy4268 opened this issue 8 years ago • 8 comments

step python setup.py build_ext --inplace

ValueError: 'pycocotools/_mask.pyx' doesn't match any files

gimmy4268 avatar Jan 23 '18 08:01 gimmy4268

I had the same problem.

xqxqwps avatar Apr 11 '18 03:04 xqxqwps

Stay ‘building 'pycocotools._mask' extension’ for a long time.

xqxqwps avatar Apr 11 '18 03:04 xqxqwps

you should go to the directory, to build the mask file. cd to the setup.py folder.

rancheng avatar Apr 18 '18 20:04 rancheng

I mean, when you run python setup.py build_ext --inplace You should be inside the directory that setup.py was in.

rancheng avatar Apr 22 '18 15:04 rancheng

C:\Users\Sunny>F:

F:>cd F:\python3\Faster-RCNN-TensorFlow-Python3.5-master\data\coco\PythonAPI\

F:\python3\Faster-RCNN-TensorFlow-Python3.5-master\data\coco\PythonAPI>F:\python3\python setup.py build_ext --inplace running build_ext building 'pycocotools._mask' extension cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IF:\python3\lib\site-packages\numpy\core\include -I../common -IF:\python3\include -IF:\python3\include /Tcpycocotools/_mask.c /Fobuild\temp.win-amd64-3.6\Release\pycocotools/_mask.obj error: command 'cl.exe' failed: No such file or directory

According to what you said, the result of my operation is as above, there are still problems,please guide

sunnyl95 avatar Apr 23 '18 03:04 sunnyl95

C:\Users\Sunny>F:

F:>cd F:\python3\Faster-RCNN-TensorFlow-Python3.5-master\data\coco\PythonAPI\

F:\python3\Faster-RCNN-TensorFlow-Python3.5-master\data\coco\PythonAPI>F:\python3\python setup.py build_ext --inplace running build_ext building 'pycocotools._mask' extension cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IF:\python3\lib\site-packages\numpy\core\include -I../common -IF:\python3\include -IF:\python3\include /Tcpycocotools/_mask.c /Fobuild\temp.win-amd64-3.6\Release\pycocotools/_mask.obj error: command 'cl.exe' failed: No such file or directory

According to what you said, the result of my operation is as above, there are still problems,please guide

same question ,have you solved it?

Tju-AI avatar Sep 29 '18 02:09 Tju-AI

Please help me to solve these issues:- After running below command:-

python model_main.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_thali.config

I am getting Error message:-

from object_detection.metrics import coco_tools
  File "C:\ProgramData\Anaconda3\envs\venv_obj_gpu2\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\metrics\coco_tools.py", line 51, in <module>
    from pycocotools import coco
ModuleNotFoundError: No module named 'pycocotools'

To solve this I put pycocotools folder in object_detection directory then this error was gone but new error came _mask file not found

To solve this I thought of run a command : I copied PythonAPI in model/research/ from official cocoapi folder PWD: model/research

python PythonAPI/setup.py build_ext install

then I got different error:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64/link.exe    not found.

but file is there.

I am using python 3.6 on Windows 10 with Tensorflow gpu 1.12 as per the official doc is provided we need to put pycocotools folder into research directory of Model but not working.

Please suggest me any way to overcome this.

smartdevices2ai avatar Aug 24 '19 17:08 smartdevices2ai

Please help me to solve these issues:- After running below command:-

python model_main.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_thali.config

I am getting Error message:-

from object_detection.metrics import coco_tools
  File "C:\ProgramData\Anaconda3\envs\venv_obj_gpu2\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\metrics\coco_tools.py", line 51, in <module>
    from pycocotools import coco
ModuleNotFoundError: No module named 'pycocotools'

To solve this I put pycocotools folder in object_detection directory then this error was gone but new error came _mask file not found

To solve this I thought of run a command : I copied PythonAPI in model/research/ from official cocoapi folder PWD: model/research

python PythonAPI/setup.py build_ext install

You don't need any additional file. Make sure to follow all steps in the README, above all the 4th.

then I got different error:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64/link.exe    not found.

but file is there.

This error is caused by Visual studio, search on the net your error (after trying to follow my previous advice).

morpheusthewhite avatar Aug 24 '19 21:08 morpheusthewhite