Download Ctrl-World-Graph/scripts/launch_query_val_eval.sh from EndeavourDD/gnn_wm2: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/datasets/EndeavourDD/gnn_wm2/resolve/main/Ctrl-World-Graph/scripts/launch_query_val_eval.sh
- Command line
-
hf download hf://datasets/EndeavourDD/gnn_wm2/Ctrl-World-Graph/scripts/launch_query_val_eval.sh
-
curl -L -o launch_query_val_eval.sh https://huggingface.co/datasets/EndeavourDD/gnn_wm2/resolve/main/Ctrl-World-Graph/scripts/launch_query_val_eval.sh
1.62 kB
| set -euo pipefail | |
| ROOT="/workspace/Ctrl-World-Graph" | |
| cd "${ROOT}" | |
| mkdir -p logs eval_query_val | |
| VAL_SAMPLES="${VAL_SAMPLES:-4333}" | |
| launch_one() { | |
| local gpu="$1" | |
| local tag="$2" | |
| local ckpt="$3" | |
| local out_dir="eval_query_val/${tag}" | |
| local log_path="logs/eval_val_${tag}_gpu${gpu}.log" | |
| local pid_path="logs/eval_val_${tag}_gpu${gpu}.pid" | |
| local aggregate_path="${out_dir}/checkpoint-100000/val_psnr_0000_$((VAL_SAMPLES - 1)).json" | |
| if [[ -f "${aggregate_path}" ]]; then | |
| echo "skip ${tag}: ${aggregate_path} already exists" | |
| return 0 | |
| fi | |
| CUDA_VISIBLE_DEVICES="${gpu}" setsid nohup python -u scripts/eval_graph_video.py \ | |
| --ckpt-path "${ckpt}" \ | |
| --sample-index 0 \ | |
| --num-samples "${VAL_SAMPLES}" \ | |
| --save-videos-limit 0 \ | |
| --out-dir "${out_dir}" \ | |
| > "${log_path}" 2>&1 & | |
| echo "$!" > "${pid_path}" | |
| echo "launched ${tag} on gpu ${gpu}: pid=$(cat "${pid_path}") log=${log_path}" | |
| } | |
| launch_one 0 gps_query \ | |
| model_ckpt/ctrl_world_graph_5hz_histcorr/checkpoint-100000.pt | |
| launch_one 1 gine_query \ | |
| model_ckpt/ctrl_world_graph_5hz_histcorr_gine_query/checkpoint-100000.pt | |
| launch_one 2 gatv2_query \ | |
| model_ckpt/ctrl_world_graph_5hz_histcorr_gatv2_query/checkpoint-100000.pt | |
| launch_one 3 transformer_query \ | |
| model_ckpt/ctrl_world_graph_5hz_histcorr_transformer_query/checkpoint-100000.pt | |
| launch_one 4 edge_transformer_query \ | |
| model_ckpt/ctrl_world_graph_5hz_histcorr_edge_transformer_query/checkpoint-100000.pt | |
| launch_one 5 hybrid_gine_transformer_query \ | |
| model_ckpt/ctrl_world_graph_5hz_histcorr_hybrid_gine_transformer_query/checkpoint-100000.pt | |