Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openpose hand, face and body models not found due to wrong url in getModels.bat #876

Closed
salwaElkaddaoui opened this issue Oct 11, 2018 · 11 comments
Labels
duplicate This issue or pull request already exists stale/old

Comments

@salwaElkaddaoui
Copy link

I'm trying to execute the CPU binaries of OpenPose on Windows 10 using the file video.avi provided in the folder examples. I get an error message telling me that Caffe models are not found:
Caffe trained model file not found: C:\Users\Salle\Documents\openpose-1.4.0-win64-cpu-binaries\models\pose/body_25/pose_iter_584000.caffemodel.
Then the error message goes:
Possible causes :

  1. Not downloading the OpenPose trained models
  2. Not running OpenPose from the same directory where the model folder is located
  3. Using paths with spaces

I make sure to specify the path to the models directory and I don't have spaces in my paths. The problem is the first point : the trained models aren't downloaded. These should be downloaded by running the file getModels.bat. But when I do that I get this error:

--2018-10-11 09:52:44-- (try: 2) http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/body_25/pose_iter_584000.caffemodel
Connecting to posefs1.perception.cs.cmu.edu (posefs1.perception.cs.cmu.edu)|128.2.176.37|:80... failed: Unknown error.
Retrying.

The thing is, the url http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/body_25/pose_iter_584000.caffemodel is wrong, i.e such a page doesn't exist. Where can I download this model? Although I doubt it a lot, but can the problem by building the source code of the OpenPose library instead of using the executables?

@athaiden
Copy link

The url works for me. Perhaps you are behind a company/institute proxy which is blocking downloads?

@stale
Copy link

stale bot commented Jan 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@gineshidalgo99
Copy link
Member

You have most probably the problem described by athaiden. The easy solution is to manually download it from doc/installation.md

@kunakl07
Copy link

kunakl07 commented Feb 4, 2019

Could you please resolve this error
Also did tried downloading manually,but then there is no OpenPoseDemo.exe in build/bin and also various files are missing in it.
Error:
Caffe trained model file not found: models\pose/body_25/pose_iter_584000.caffemodel.
Possible causes:
1. Not downloading the OpenPose trained models.
2. Not running OpenPose from the same directory where the model folder is located.
3. Using paths with spaces.

Coming from:

  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\src\openpose\net\netCaffe.cpp:op::NetCaffe::ImplNetCaffe::ImplNetCaffe():54
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\src\openpose\pose\poseExtractorCaffe.cpp:op::addCaffeNetOnThread():131
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\src\openpose\pose\poseExtractorCaffe.cpp:op::PoseExtractorCaffe::netInitializationOnThread():196
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\src\openpose\pose\poseExtractorNet.cpp:op::PoseExtractorNet::initializationOnThread():94
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\src\openpose\pose\poseExtractor.cpp:op::PoseExtractor::initializationOnThread():34
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\include\openpose/pose/wPoseExtractor.hpp:op::WPoseExtractor<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > > >::initializationOnThread():50
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\include\openpose/thread/subThread.hpp:op::SubThread<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > > > > >::initializationOnThread():150
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\include\openpose/thread/thread.hpp:op::Thread<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > > > > >::initializationOnThread():174
  • D:\Users\Gines\Desktop\OpenPoses\openpose-master\include\openpose/thread/thread.hpp:op::Thread<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<struct op::Datum,class std::allocator > > > > >::threadFunction():204

@FireHeartMaster
Copy link

I realized that, at least in the version I downloaded, the paths containing body_25, coco and mpi for the body+foot URLs were set as "body_25\", "coco\" and "mpi\" instead of "body_25/", "coco/" and "mpi/".

Given these strings are used for URL addresses, it should be "/" instead of "\". Probably it was being taken as an escape character, so the address was not well set. @Salwaelk was right, the problem was with the addresses. I realized, for example, one of the instances was trying to download from http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/coco%5Cpose_iter_440000.caffemodel (and respective addresses) instead of http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/coco/Cpose_iter_440000.caffemodel (note the slight difference between them)

@Shachartz
Copy link

I don't understand where is the trained model I didn't find it at doc/installation.md
and it is not in my folder
openpose\models\pose\body_25
Can someone help?

@richie-chang
Copy link

I realized that, at least in the version I downloaded, the paths containing body_25, coco and mpi for the body+foot URLs were set as "body_25", "coco" and "mpi" instead of "body_25/", "coco/" and "mpi/".

how can i to change it sir ?

@FireHeartMaster
Copy link

I realized that, at least in the version I downloaded, the paths containing body_25, coco and mpi for the body+foot URLs were set as "body_25", "coco" and "mpi" instead of "body_25/", "coco/" and "mpi/".

how can i to change it sir ?

It's been a while since I looked at it, but as far as I can remember I just opened the .bat file with a text editor and then I changed it (you could change each one manually or to use a "locate/replace" tool of your text editor)

@richie-chang
Copy link

richie-chang commented Mar 12, 2020

I realized that, at least in the version I downloaded, the paths containing body_25, coco and mpi for the body+foot URLs were set as "body_25", "coco" and "mpi" instead of "body_25/", "coco/" and "mpi/".

how can i to change it sir ?

It's been a while since I looked at it, but as far as I can remember I just opened the .bat file with a text editor and then I changed it (you could change each one manually or to use a "locate/replace" tool of your text editor)

do you mean getModels.bat sir ? i think getModels.bat for getting the caffemodel file, if we downloaded manual, then no need for using getModels.bat right sir ? @FireHeartMaster

@janimango
Copy link

janimango commented May 17, 2020

I'm getting the same error message, but in my .bat file all the body_25, coco and mpi for the body+foot URLs are sat as "body_25/", "coco/" and "mpi/".
So I dont really get the problem...

Inside the getModels.bat file is this URL: http://posefs1.perception.cs.cmu.edu/OpenPose/models/
So maybe its not possible to dowload the Models
Is there any way to fix this?

@gineshidalgo99
Copy link
Member

Everything should be working again. Sorry for the troubles! Otherwise, #1602 add alternative links for download.

@gineshidalgo99 gineshidalgo99 added the duplicate This issue or pull request already exists label Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists stale/old
Projects
None yet
Development

No branches or pull requests

8 participants