Skip to content

Commit

Permalink
Fix broken model fetch link
Browse files Browse the repository at this point in the history
As stated at issue #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.
  • Loading branch information
KWNahyun committed Mar 16, 2024
1 parent ab97f5b commit 57019e6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions models/getModels.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# ------------------------- Downlaod MODELS -------------------------
# (ISSUE #1602) Maintainer has provided alternative model link with google drive.
# https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1602#issuecomment-641653411
MODEL_URL="https://drive.google.com/uc?id=1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh"
FILENAME='models.zip'

# Supplementary package 'gdown' to download google drive
if ! [ -x "$(command -v gdown)" ]; then
echo "Please install gdown package with pip"
exit
fi

cd ..
gdown ${MODEL_URL} -O ${FILENAME}
unzip ${FILENAME}
cd -

RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Model download success"
exit
else
echo "Model download failure"
echo "Fallback to original approach"
fi

# ------------------------- BODY, FOOT, FACE, AND HAND MODELS -------------------------
# Downloading body pose (COCO and MPI), face and hand models
OPENPOSE_URL="http://posefs1.perception.cs.cmu.edu/OpenPose/models/"
Expand Down

0 comments on commit 57019e6

Please sign in to comment.