File size: 602 Bytes
352b049
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Create necessary directories
mkdir -p downloads predictions vis hanyu_obj cookies

# Download ImageMagick if not exists
if [ ! -f "magick" ]; then
    wget https://imagemagick.org/archive/binaries/magick
    chmod +x magick
fi

# Install Python packages
pip install -r requirements.txt

# Install local packages
cd SkeletonDiffusion && pip install -e . && cd ..
cd src_joints2smpl_demo && pip install -e . && cd ..

# Set up headless rendering
bash ./SkeletonDiffusion_demo/setup_headless.bash

# Set environment variables
export PYOPENGL_PLATFORM=egl
export IMAGEMAGICK_BINARY=./magick