human-pose-estimation.pytorch icon indicating copy to clipboard operation
human-pose-estimation.pytorch copied to clipboard

Windows 10 installing pycocotools fails with make.

Open inkplay opened this issue 6 years ago • 17 comments

I followed the instructions and I have "make" on windows 10 from GNU I believe. Anyways the error I got is

# install pycocotools to the Python site-packages
process_begin: CreateProcess(NULL, # install pycocotools to the Python site-packages, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [install] Error 2

Not sure what file I am missing.

inkplay avatar Nov 28 '18 19:11 inkplay

We have not tried it on Windows.

leoxiaobin avatar Nov 29 '18 04:11 leoxiaobin

you can install it through pip -> pip install pycocotools

richipower avatar Feb 28 '19 09:02 richipower

See here https://github.com/philferriere/cocoapi. I used anaconda3 to install pycocotools on windows 10. You do not need to make, python setup.py install works for me.

strawberryfg avatar Mar 23 '19 22:03 strawberryfg

@strawberryfg Hi, can you run this project correctly on windows system? I can not compile nms file by setup.py. Could you give me some advice?

Hliang1994 avatar Mar 26 '19 03:03 Hliang1994

try installing this version https://github.com/eldar/pose-tensorflow/tree/master/lib/coco

richipower avatar Mar 26 '19 08:03 richipower

@Hliang1994 Sorry I haven't tested this project. I do not need nms file. As far as I know there might be some incompatibility between anaconda python3 version and lib packages. Sometimes downgrade version to 3.5 or lower will probably help? Well I think what you can do is to use Ubuntu. It's way easier to run projects.

strawberryfg avatar Mar 27 '19 03:03 strawberryfg

@strawberryfg Thank you all the same! I have tried many times and used others' method to complie the gpu_nms. Finally, I succeed in running the demo on the windows7. Though this process is extremely discomfort.

Hliang1994 avatar Mar 31 '19 13:03 Hliang1994

@Hliang1994 Glad to hear that. I can feel your pain. BTW, you might consider transferring weights to other deep learning framework that you are familiar with. For one, this one https://github.com/xxradon/PytorchToCaffe is super easy to use.

strawberryfg avatar Mar 31 '19 18:03 strawberryfg

@Hliang1994 could you share some steps on how you accomplished that? i am still having trouble :(

richipower avatar Apr 01 '19 09:04 richipower

@Hliang1994 What does your error message show? I have converted the pretrained model from this page https://github.com/mks0601/Integral-Human-Pose-Regression-for-3D-Human-Pose-Estimation. And I think what we are talking about now has departed from this repo. It's better off to close this issue?

strawberryfg avatar Apr 01 '19 09:04 strawberryfg

@strawberryfg Hi, I can run the train.py and valid.py correctly on my windows7 with GTX1070. The pretrained model I used was download from the ReadMe. I am sorry that I haven' t use the page you provided.

Hliang1994 avatar Apr 01 '19 12:04 Hliang1994

@richipower I compile my gpu_nms mainly consulting this page https://github.com/eragonruan/text-detection-ctpn/issues/264. And finally I got the file "gpu_nms.cp36-win_amd64.pyd". But I first run "cython gpu_nms.pyx" before his step 1. You can have a try!

Hliang1994 avatar Apr 01 '19 12:04 Hliang1994

@inkplay for installing pycocotools use following command pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

BadMachine avatar Jan 10 '20 17:01 BadMachine

@Hliang1994 I am a beginner, please can ask in detail, you are how to run under win7

qk-z avatar Apr 03 '20 04:04 qk-z

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI does not work for me. It runs but errors

delebash avatar May 04 '20 00:05 delebash

I' m sorry, I haven't worked on this project for a long time, and I've forgotten about it now. However, I suggest that you can use Ubuntu virtual machine on windows, which is very convenient. 

------------------ 原始邮件 ------------------ 发件人: "qk-z"<[email protected]>; 发送时间: 2020年4月3日(星期五) 中午12:54 收件人: "microsoft/human-pose-estimation.pytorch"<[email protected]>; 抄送: "北师大-洪慕竹"<[email protected]>; "Mention"<[email protected]>; 主题: Re: [microsoft/human-pose-estimation.pytorch] Windows 10 installing pycocotools fails with make. (#61)

@Hliang1994 I am a beginner, please can ask in detail, you are how to run under win7

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Hliang1994 avatar May 16 '20 11:05 Hliang1994

Thank you!

delebash avatar May 16 '20 15:05 delebash