curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrcChoose your environment path and create it:
bash ./scripts/setup_env.sh ~/.virtualenvs/stvg/devsource scripts/activate_env.sh ~/.virtualenvs/stvg/dev# install eval
cd eval
uv sync --active
# install graph_generator
cd graph_generator
uv sync --activeSet the video reader backend by exporting the environment variable:
# Use torchvision (default)
export FORCE_QWENVL_VIDEO_READER=torchvision
# Or use decord (recommend)
export FORCE_QWENVL_VIDEO_READER=decord
# Or use torchcodec
export FORCE_QWENVL_VIDEO_READER=torchcodec# Add a new package
uv add --active [package-name]
# Remove a package
uv remove --active [package-name]deactivate# Deactivate current environment
deactivate
# Activate another environment
source scripts/activate_env.sh /path/to/another/env# run eval
cd eval
bash run_eval.sh
# run graph_generator
cd graph_generator
bash run_generator.sh