-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Unable to fetch/download models #1602
Comments
I experience similar problem, as the BAT file generates many 503 warnings. |
+1, 502 Bad Gateway error |
We are trying to get it back up, but due to COVID, we are waiting for CMU to grant access so we can officially enter the actual room where the server is to fix it. We will keep you updated. Sorry for the troubles. |
@gineshidalgo99 Thanks for the update |
@gineshidalgo99 If someone has a local copy of the files downloaded from the server, can they share it somewhere so that we can keep the work going on till you guys fix this? |
@gineshidalgo99 Any estimate on how long it might be before the server is restored/an alternate download is available? Appreciate the help |
I was able to finally copy the data out of the servers (although they have fallen again), so this is the temporary workaround until I replace all OpenPose links for Dropbox or G. Drive ones: Download these 2 links (either G Driver or Dropbox):
And unzip them and copy in the right place the required files. To know where each file goes, follow: Sorry for the troubles!!! |
@gineshidalgo99 Thank you for the quick action, however, those links are down, cannot be found. |
I can't believe it, the stupid Dropbox blocked them in a few hours: "Your Dropbox public links have been suspended for generating excessive traffic". I am uploading them to G Drive, should be ready in 1-2 h, i'll update this post then |
Links updated! Sorry again.. |
How can we make use of these links if we are using OpenPose on Google Colab? |
After two days of searching, I finally found the correct model download link. Thank you all |
May I ask what is the correct link for the model? Thx! |
I was able to finally copy the data out of the servers (although they have fallen again), so this is the temporary workaround until I replace all OpenPose links for Dropbox or G. Drive ones: Download these 2 links (either G Driver or Dropbox): Dropbox version: And unzip them and copy in the right place the required files. To know where each file goes, follow: Sorry for the troubles!!! |
Thank you sooo much! It helped a lot! |
Hi, the above-mentioned links do not work. This is my .sh file ------------------------- BODY, FACE AND HAND MODELS -------------------------Downloading body pose (COCO and MPI), face and hand modelsOPENPOSE_URL="http://posefs1.perception.cs.cmu.edu/OpenPose/models/" ------------------------- POSE MODELS -------------------------Body (COCO)COCO_FOLDER=${POSE_FOLDER}"coco/" Alternative: it will not check whether file was fully downloadedif [ ! -f $COCO_MODEL ]; thenwget ${OPENPOSE_URL}$COCO_MODEL -P $COCO_FOLDERfiBody (MPI)MPI_FOLDER=${POSE_FOLDER}"mpi/" "------------------------- FACE MODELS -------------------------"FaceFACE_MODEL=${FACE_FOLDER}"pose_iter_116000.caffemodel" "------------------------- HAND MODELS -------------------------"HandHAND_MODEL=$HAND_FOLDER"pose_iter_102000.caffemodel" |
You need to manually download them. Models: https://drive.google.com/file/d/1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh |
Hi @14790897 Thanks for replying! |
These google drive links are live |
@14790897 Thanks for clarifying it. Could you tell me where these downloaded files should be placed? As in which directory? |
So here are two ways to use, the first is to use the official compiled package(Windows Portable Demo) but it is empty inside the models, this time we use the first link's models folder to replace the official empty models folder, the second is to compile from scratch in this case we need to follow the tutorial below to replace the corresponding files.
|
Currently, you can just download the model from the link provided and place corresponding models into folders in the Windows Release of the OpenPose. However, running face and hand keypoints require high GPURAM usage, and using Linux/Colab is preferred if you do not have access to enough GPU on Windows. I am still trying to figure out how to install and run OpenPose on Colab. |
I've tried many colab scripts but none of them worked. Good luck.
|
Yeah.... I think it is the problem with CUDA/CuDNN/GCC/torch versions on Colab, it is such a struggle to efficiently downgrade these things together... |
Thanks @14790897 @BowenTan02 for your resources and help! I can run my .sh file with the downloaded models. import the necessary packagesimport time import cv2 fvs = FileVideoStream('data/cam1.mp4', queue_size=1024).start() kernelSize = 7 openposeProtoFile = "models/pose/coco/pose_deploy_linevec.prototxt" COCO Output FormatkeypointsMapping = ['Nose', 'Neck', 'R-Sho', 'R-Elb', 'R-Wr', 'L-Sho', 'L-Elb', 'L-Wr', 'R-Hip', 'R-Knee', 'R-Ank', POSE_PAIRS = [[1, 2], [1, 5], [2, 3], [3, 4], [5, 6], [6, 7], index of pafs correspoding to the POSE_PAIRSe.g for POSE_PAIR(1,2), the PAFs are located at indices (31,32) of output, Similarly, (1,5) -> (39,40) and so on.mapIdx = [[31, 32], [39, 40], [33, 34], [35, 36], [41, 42], [43, 44], colors = [[0, 100, 255], [0, 100, 255], [0, 255, 255], [0, 100, 255], [0, 255, 255], [0, 100, 255], def getKeypoints(prob_map, thres=0.1):
Find valid connections between the different joints of a all persons presentdef getValidPairs(generated_output):
This function creates a list of keypoints belonging to each personFor each detected valid pair, it assigns the joint(s) to a persondef getPersonwiseKeypoints(validpairs, invalidpairs):
fgbg = cv2.createBackgroundSubtractorMOG2(history=backgroundHistory, detectShadows=True) while fvs.more():
do a bit of cleanupcv2.destroyAllWindows() getModels.sh ------------------------- BODY, FACE AND HAND MODELS -------------------------Setting paths to the downloaded modelsOPENPOSE_Models="models/" ------------------------- POSE MODELS -------------------------Body (COCO)COCO_MODEL="${OPENPOSE_Models}pose/coco/pose_iter_440000.caffemodel" Body (MPI)MPI_MODEL="${OPENPOSE_Models}pose/mpi/pose_iter_160000.caffemodel" ------------------------- FACE MODELS -------------------------FaceFACE_MODEL="${OPENPOSE_Models}face/pose_iter_116000.caffemodel" ------------------------- HAND MODELS -------------------------HandHAND_MODEL="${OPENPOSE_Models}hand/pose_iter_102000.caffemodel" I have pasted the 3rdParty folder to my directory but I don't know how to use that and cmake in my code. |
@Aastha29P For some reason you didn't start your GPU. I've given up on this project because it's too hard to configure this thing |
As stated at issue CMU-Perceptual-Computing-Lab#1602 currently model link has been broken. This commit addresses the problem by suggesting alternative model link that maintainer provided. So, in here, we used the supplementary package 'gdown' to download google drive files.
As stated at issue CMU-Perceptual-Computing-Lab#1602 currently model link has been broken. This commit addresses the problem by suggesting alternative model link that maintainer provided. So, in here, we used the supplementary package 'gdown' to download google drive files.
My Local Environments(Ubuntu 20.04 / RTX 3090 / driver 535 / CUDA 11.8 / cuDNN 8.4.1) So, I went all the way to the Chinese site and lowered it down to the 2021 release, but in the end, it was a matter of installing the models separately, and I can see the skeleton in the demo video properly! As an added bonus, I've found that it works just fine in my current local environment without having to install it until 21 years later. Thank you! |
Can you tell me exactly how you did it ? |
The first problem that occurred to me was that the inside of the json file is empty even if I run OpenPose demo code, and the first procedure as below
but, I couldn't see any skeleton appearing. At first, I thought it was a CUDA compatibility problem because OpenPose was released a long time ago, so I changed the versions of Nvidia driver, CUDA, and cuDNN several times. This is the Chinese website I mentioned below. The site below also used the same RTX 3090 as me, and it worked as I used Nvidia Driver-470, CUDA 11.4, and cuDNN 8.2.4.15. In conclusion, it was my mistake due to the absence of the models file, not the CUDA version issue. I have confirmed that both my existing CUDA version and the CUDA version mentioned on the Chinese site work experimentally without any problems. The above version is just for reference if you need it, and if you need help, please be specific. |
https://blog.csdn.net/yxdayd/article/details/119780910 this is not opening |
I'm sorry I'm not familiar with github. It's an external link, so you can enter it yourself, or I modified the hyperlink this time and now it will work. |
Issue Summary
Unable to fetch/download models
Executed Command (if any)
models\getModels.bat
OpenPose Output (if any)
Type of Issue
Your System Configuration
OpenPose version: 1.6.0 & 1.5.1 - maybe more - not testet
If Windows system:
The text was updated successfully, but these errors were encountered: