Add resumable submission pipeline
This commit is contained in:
19
example/run_submission_full.sh
Normal file
19
example/run_submission_full.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user