File size: 1,871 Bytes
14bd4f6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/usr/bin/env bash
set -uo pipefail
source ~/miniconda3/etc/profile.d/conda.sh
export TMPDIR=$HOME/jiayin/tmp PIP_CACHE_DIR=$HOME/jiayin/pipcache
cd ~/jiayin/OVOW
echo '=== toolchains ==='
conda create -y -p $HOME/jiayin/cuda121 -c nvidia cuda-nvcc=12.1 cuda-cudart-dev=12.1 cuda-libraries-dev=12.1 > /dev/null 2>&1 || conda create -y -p $HOME/jiayin/cuda121 -c nvidia cuda-nvcc=12.1 cuda-cudart-dev=12.1
conda create -y -p $HOME/jiayin/cuda124 -c nvidia cuda-nvcc=12.4 cuda-cudart-dev=12.4 cuda-libraries-dev=12.4 > /dev/null 2>&1 || conda create -y -p $HOME/jiayin/cuda124 -c nvidia cuda-nvcc=12.4 cuda-cudart-dev=12.4
ls $HOME/jiayin/cuda121/bin/nvcc $HOME/jiayin/cuda124/bin/nvcc || exit 1
echo '=== opg ==='
conda activate ovow-opg
export CUDA_HOME=$HOME/jiayin/cuda121 PATH=$HOME/jiayin/cuda121/bin:$PATH
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121
pip install diso --no-build-isolation
pip install pybind11
conda deactivate
echo '=== motion ==='
conda activate ovow-motion
export CUDA_HOME=$HOME/jiayin/cuda124 PATH=$HOME/jiayin/cuda124/bin:$PATH
pip install torch==2.4.1+cu124 torchvision==0.19.1+cu124 --index-url https://download.pytorch.org/whl/cu124
pip install pybind11
pip install diso --no-build-isolation 2>/dev/null || true
pip install -e third_party/Motion324/scripts/hy3dgen/texgen/differentiable_renderer --no-build-isolation
pip install -e third_party/Motion324/scripts/hy3dgen/texgen/custom_rasterizer --no-build-isolation
grep -v '^mesh_processor==' environment/requirements-motion.txt > $HOME/jiayin/tmp/req-motion-nm.txt
pip install -r $HOME/jiayin/tmp/req-motion-nm.txt
conda deactivate
echo '=== official scripts rerun ==='
export CUDA_HOME=$HOME/jiayin/cuda121 PATH=$HOME/jiayin/cuda121/bin:$PATH
bash environment/create_envs.sh opg
bash environment/create_envs.sh motion
|