20 lines
562 B
Bash
Executable File
20 lines
562 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
RUN_DIR="${RUN_DIR:-$SCRIPT_DIR/results/submission_full}"
|
|
LOG_DIR="$RUN_DIR/logs"
|
|
mkdir -p "$LOG_DIR"
|
|
|
|
STAMP="$(date '+%Y%m%d-%H%M%S')"
|
|
LOG_FILE="$LOG_DIR/pipeline-$STAMP.log"
|
|
|
|
echo "[run_submission_full] run_dir=$RUN_DIR"
|
|
echo "[run_submission_full] log_file=$LOG_FILE"
|
|
|
|
python "$SCRIPT_DIR/run_submission_resume.py" \
|
|
--config "$SCRIPT_DIR/config_submission_full.json" \
|
|
--device "${DEVICE:-cuda}" \
|
|
--run-dir "$RUN_DIR" \
|
|
"$@" 2>&1 | tee -a "$LOG_FILE"
|