Download scripts/multi-event/test_multi_event_annotations_100.sh from MultiEventVideo/MEV_code: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/MultiEventVideo/MEV_code/resolve/main/scripts/multi-event/test_multi_event_annotations_100.sh
- Command line
-
hf download hf://MultiEventVideo/MEV_code/scripts/multi-event/test_multi_event_annotations_100.sh
-
curl -L -o test_multi_event_annotations_100.sh https://huggingface.co/MultiEventVideo/MEV_code/resolve/main/scripts/multi-event/test_multi_event_annotations_100.sh
665 Bytes
| set -euo pipefail | |
| ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" | |
| RUN_SCRIPT="$ROOT_DIR/scripts/multi-event/run_multi_event_annotations.sh" | |
| INPUT_PATH="${1:-$ROOT_DIR/data/mev_video}" | |
| OUTPUT_PATH="${2:-$ROOT_DIR/annotations/qwen/multi_event/test_mev_video_100.json}" | |
| UUID_LIMIT="${UUID_LIMIT:-100}" | |
| EXTRA_ARGS=() | |
| if [ "$#" -gt 2 ]; then | |
| EXTRA_ARGS=("${@:3}") | |
| fi | |
| if [[ ! "$UUID_LIMIT" =~ ^[0-9]+$ ]] || [ "$UUID_LIMIT" -lt 1 ]; then | |
| echo "UUID_LIMIT must be a positive integer, got: $UUID_LIMIT" >&2 | |
| exit 1 | |
| fi | |
| exec bash "$RUN_SCRIPT" \ | |
| "$INPUT_PATH" \ | |
| "$OUTPUT_PATH" \ | |
| --limit "$UUID_LIMIT" \ | |
| "${EXTRA_ARGS[@]}" | |