CMU-Perceptual-Computing-Lab / caffe_rtpose

Realtime C++ code for multi-person pose estimation
Other
356 stars 207 forks source link

is it possible to run caffe_rtpose on window system? #17

Closed wschoi89 closed 7 years ago

wschoi89 commented 7 years ago

I compiled caffe window version on window environment but I don't know it is possible to compile caffe_rtpose. Could you give me some advises about this problem?

orientalh commented 7 years ago

Hi

  1. I want to use "only CPU" not to use GPU. What should i do?? Do i change the build_win.cmd and build caffe again?? Actually i do not understand how to change flag

  2. I have a error when i compile and run. image

I guess it is because of GPU version.

Then what should i do to solve this error??

gineshidalgo99 commented 7 years ago

I am sorry but the CPU version is not finished (and not planned to be finished due to be extremely slow), it would give you a exception with a message: code not implemented or something similar.

AntonN11 commented 7 years ago

Good news! I got it to work on Windows 👍 image

image

I tried the example using a couple of images and it worked. For some obscure reason(s), it will only work if I call it in cmd line.

helen-medina commented 7 years ago

It is really good news. But, it should work from command line or from visual studio. Maybe visual studio I can't find the path to the models or the images. It is the only idea I can think.

On 23 May 2017 20:17, "AntonN11" notifications@github.com wrote:

Good news! I got it to work on Windows 👍 [image: image] https://cloud.githubusercontent.com/assets/28739893/26369281/2e3a25be-3fc2-11e7-97d2-8f8f8cf9bfd3.png

I tried the example using a couple of images and it worked. For some obscure reason(s), it will only work if I call it in cmd line.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/caffe_rtpose/issues/17#issuecomment-303487301, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrfhAiQVH5ZM9uw_9SEEsK8S-SIFKtzks5r8yKdgaJpZM4MANCH .

helen-medina commented 7 years ago

Hi Oriental, About that error it seems to me that the application can't find the model. Did you download the models? If not, I suggest to check the models. If you go models folder you will find an script. In that script you will find the links to download the cxo model and Mpi model.

Regards.

On 23 May 2017 22:42, "Helen Medina" helen.medina.chanca@gmail.com wrote:

It is really good news. But, it should work from command line or from visual studio. Maybe visual studio I can't find the path to the models or the images. It is the only idea I can think.

On 23 May 2017 20:17, "AntonN11" notifications@github.com wrote:

Good news! I got it to work on Windows 👍 [image: image] https://cloud.githubusercontent.com/assets/28739893/26369281/2e3a25be-3fc2-11e7-97d2-8f8f8cf9bfd3.png

I tried the example using a couple of images and it worked. For some obscure reason(s), it will only work if I call it in cmd line.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/caffe_rtpose/issues/17#issuecomment-303487301, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrfhAiQVH5ZM9uw_9SEEsK8S-SIFKtzks5r8yKdgaJpZM4MANCH .

AntonN11 commented 7 years ago

So far so good. I tried a gtx980 and my max fps is 7.3. For some reason, I can only get up to 6.1fps on a M6000 Quadro... I have to figure out why it doesn't work with the video ".avi" file or the webcam.

orientalh commented 7 years ago

Hi, I continue to run Openpose. When i run the openpose.cpp, I had this error (errorMessageToPropagate "\nError:\nVideoCapture (video) could not be opened for path: 'examples/media/video.avi'.\n\nComing from:\n- ..\..\..\src\openpose\producer\videoCaptureReader.cpp:op::VideoCaptureReader::VideoCaptureReader(... std::basic_string<char,std::char_traits,std::allocator >)

I guess this error is occurred because of path. I write code like this image

Is this way is wrong?? or should i write more path on other line??

How should i run on video mode??

AntonN11 commented 7 years ago

If anyone finds a way to get up to 30fps, let us know how you did it. With "MPI_4_layers", I get 9.8fps on a GTX980.

gineshidalgo99 commented 7 years ago

We will release a faster model in 1-3 weeks, it should get ~30-50% speed up. That + reducing --net_resolution should give the main boosts.

AntonN11 commented 7 years ago

Good to know. Thank you.

AntonN11 commented 7 years ago

Alright. Using a smaller net_resolution (320x176), I got 20.5fps (GTX980 + MPI_4_layers)! the detection is not bad, but there is a difference.

gineshidalgo99 commented 7 years ago

Please, from now on, keep asking all these questions though the Pull Request created by Helen. So we can have only 1 centralized message thread for Windows until we release it. https://github.com/CMU-Perceptual-Computing-Lab/openpose/pull/28 I will delete any further message on this thread non-related with a previous post. Thanks and sorry for any inconvenience!

UPDATE: The Windows branch has been added to OpenPose: https://github.com/CMU-Perceptual-Computing-Lab/openpose