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

Fix broken model fetch link #2286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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