stzhao's picture
download
raw
996 Bytes
#!/bin/bash
# Extract FLUX.2 AE latent features for the UCF101 train split.
# REPO_ROOT is derived from this script's own location, so it works no matter
# which working directory it is invoked from (e.g. via slurm srun).
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
# forward.py imports `stage1` / `utils` from RAE/src.
export PYTHONPATH="${REPO_ROOT}/RAE/src:${PYTHONPATH:-}"
# Prefer the project venv (torch, decord, ...); fall back to any python3.
PYTHON_BIN="${REPO_ROOT}/.venv/bin/python"
if [[ ! -x "${PYTHON_BIN}" ]]; then
PYTHON_BIN="$(command -v python3)"
fi
exec "${PYTHON_BIN}" "${REPO_ROOT}/data_processing/tools/forward.py" \
--rae-backbone flux2_ae \
--device cuda:0 \
--encoder-path /home/sz128/scratch_sz128/models/FLUX.2-klein-4B/vae/ae_bfl_format.safetensors \
--dataset-name ucf101 \
--video-data-dir-path /home/sz128/scratch_sz128/datasets/UCF101/data \
--data-split train

Xet Storage Details

Size:
996 Bytes
·
Xet hash:
50f31f1117a49ca99fef5ee26e62bcd5b4f9505ea926fb9a774024bef6c5f339

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.