Spaces:
Paused
Paused
File size: 640 Bytes
e6af450 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# Copyright 2025 Bytedance Ltd. and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
# Check if enough arguments are provided
if [ $# -lt 2 ]; then
echo "Error: PREFIX_DIR and MODEL_PATH are required as the first and second arguments respectively."
exit 1
fi
LOG_PATH=$1
if [ ! -d "$LOG_PATH" ]; then
mkdir -p "$LOG_PATH"
fi
shift 1
ARGS=("$@")
export MASTER_PORT=10042
FULL_MODEL_PATH="$PREFIX_DIR/$MODEL_PATH"
IFS=' ' read -r -a DATASETS <<< "$DATASETS_STR"
for DATASET in "${DATASETS[@]}"; do
bash eval/vlm/evaluate.sh \
"$DATASET" \
--out-dir "$LOG_PATH/$DATASET" \
"${ARGS[@]}"
done |