Download video_gen_14d/scripts/setup_runtime.sh from jamie33/waitlist: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/datasets/jamie33/waitlist/resolve/main/video_gen_14d/scripts/setup_runtime.sh
- Command line
-
hf download hf://datasets/jamie33/waitlist/video_gen_14d/scripts/setup_runtime.sh
-
curl -L -o setup_runtime.sh https://huggingface.co/datasets/jamie33/waitlist/resolve/main/video_gen_14d/scripts/setup_runtime.sh
1.3 kB
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| VENV="${ROOT}/.venv" | |
| if [[ ! -d "${VENV}" ]]; then | |
| python -m venv --system-site-packages "${VENV}" | |
| fi | |
| "${VENV}/bin/python" -m pip install --upgrade pip setuptools wheel | |
| "${VENV}/bin/python" -m pip install -r "${ROOT}/requirements-runtime.txt" | |
| # Install local repositories without their broad dependency sets. In particular, | |
| # Wan declares GUI OpenCV, while this headless node requires opencv-python-headless. | |
| "${VENV}/bin/python" -m pip install --no-deps -e "${ROOT}/third_party/Wan2.1" | |
| "${VENV}/bin/python" -m pip install --no-deps -e "${ROOT}/third_party/DiffSynth-Studio" | |
| PYTHONPATH="${ROOT}/third_party/VACE" "${VENV}/bin/python" - <<'PY' | |
| import cv2 | |
| import diffusers | |
| import diffsynth | |
| import numpy | |
| import onnxruntime | |
| import torch | |
| import transformers | |
| import wan | |
| from vace.models.wan.wan_vace import WanVace | |
| print("VACE_RUNTIME_READY") | |
| print( | |
| { | |
| "torch": torch.__version__, | |
| "cuda": torch.version.cuda, | |
| "gpu_count": torch.cuda.device_count(), | |
| "numpy": numpy.__version__, | |
| "opencv": cv2.__version__, | |
| "onnxruntime": onnxruntime.__version__, | |
| "transformers": transformers.__version__, | |
| "diffusers": diffusers.__version__, | |
| } | |
| ) | |
| PY | |