jrs-a commited on
Commit
8d3f1b2
·
verified ·
1 Parent(s): 4b44e9e

Update load_openpose.sh

Browse files
Files changed (1) hide show
  1. load_openpose.sh +5 -5
load_openpose.sh CHANGED
@@ -1,5 +1,5 @@
1
  #!/bin/bash
2
- # OpenPose Colab Loader
3
  set -e
4
 
5
  # Install dependencies
@@ -10,14 +10,14 @@ apt-get install -y pigz
10
  REPO_ID="jrs-a/openpose-colab" # Replace with your repo
11
  FILENAME="openpose_colab_build.tar.gz"
12
 
13
- python -c "from huggingface_hub import hf_hub_download; hf_hub_download(repo_id='$REPO_ID', filename='$FILENAME')"
 
14
 
15
  # Extract
16
- tar --use-compress-program=pigz -xvf $FILENAME
17
 
18
  # Install runtime dependencies
19
  apt-get install -y libgoogle-glog-dev libboost-all-dev libatlas-base-dev libopencv-dev
20
  pip install numpy opencv-python
21
 
22
- echo "OpenPose restored successfully! Test with:"
23
- echo "python -c \"import sys; sys.path.insert(0, '/content/openpose/build/python'); from openpose import pyopenpose; print('OpenPose version:', pyopenpose.__version__)\""
 
1
  #!/bin/bash
2
+ # Fixed OpenPose Colab Loader
3
  set -e
4
 
5
  # Install dependencies
 
10
  REPO_ID="jrs-a/openpose-colab" # Replace with your repo
11
  FILENAME="openpose_colab_build.tar.gz"
12
 
13
+ # Download and get the actual path
14
+ DOWNLOAD_PATH=$(python -c "from huggingface_hub import hf_hub_download; print(hf_hub_download(repo_id='$REPO_ID', filename='$FILENAME'))")
15
 
16
  # Extract
17
+ tar --use-compress-program=pigz -xvf "$DOWNLOAD_PATH"
18
 
19
  # Install runtime dependencies
20
  apt-get install -y libgoogle-glog-dev libboost-all-dev libatlas-base-dev libopencv-dev
21
  pip install numpy opencv-python
22
 
23
+ echo "OpenPose restored successfully!"