Download misc/fix_envs4.sh from AIGeeksGroup/PhysicalWM: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/datasets/AIGeeksGroup/PhysicalWM/resolve/main/misc/fix_envs4.sh
- Command line
-
hf download hf://datasets/AIGeeksGroup/PhysicalWM/misc/fix_envs4.sh
-
curl -L -o fix_envs4.sh https://huggingface.co/datasets/AIGeeksGroup/PhysicalWM/resolve/main/misc/fix_envs4.sh
1.87 kB
| 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 | |