jrs-a commited on
Commit
536d008
·
verified ·
1 Parent(s): ea79b9b

Upload load_openpose.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. load_openpose.sh +27 -0
load_openpose.sh ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # OpenPose Colab Loader
3
+ set -e
4
+
5
+ # Install dependencies
6
+ pip install huggingface_hub
7
+ apt-get install -y pigz
8
+
9
+ # Download from Hugging Face
10
+ REPO_ID="jrs-a/openpose-colab"
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
+ # Set environment
23
+ export OPENPOSE_HOME="/content/openpose"
24
+ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$OPENPOSE_HOME/build/python:$OPENPOSE_HOME/build/caffe/src/openpose_lib-build/lib"
25
+
26
+ echo "OpenPose restored successfully! Test with:"
27
+ echo "python -c "from openpose import pyopenpose; print('OpenPose version:', pyopenpose.__version__)""