Download runs/scripts/run_shard.sh from BlueSourceJY/ERCBench-ShotStream-400: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/datasets/BlueSourceJY/ERCBench-ShotStream-400/resolve/main/runs/scripts/run_shard.sh
- Command line
-
hf download hf://datasets/BlueSourceJY/ERCBench-ShotStream-400/runs/scripts/run_shard.sh
-
curl -L -o run_shard.sh https://huggingface.co/datasets/BlueSourceJY/ERCBench-ShotStream-400/resolve/main/runs/scripts/run_shard.sh
476 Bytes
| # usage: run_shard.sh <gpu> <csv> <outdir> <logfile> | |
| W=~/shotstream_run; source $W/venv/bin/activate; cd $W/ShotStream | |
| mkdir -p "$3" | |
| CUDA_VISIBLE_DEVICES=$1 PYTHONUNBUFFERED=1 python inference_episode.py --config_path ckpts/shotstream.yaml --resume_ckpt ckpts/shotstream_merged.pt --multi_caption True --data_path "$2" --output_folder "$3" --seed 0 2>&1 | python3 -I $W/scripts/ts.py >> "$4" | |
| echo "EXIT_CODE=${PIPESTATUS[0]}" | python3 -I $W/scripts/ts.py >> "$4" | |