| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| export PYTHONUNBUFFERED=1 |
| cd /home/ywan0794/MoGe |
|
|
| source /home/ywan0794/miniconda3/etc/profile.d/conda.sh |
|
|
| TIMESTAMP=$(date +"%Y%m%d_%H%M%S") |
| CONFIG=/home/ywan0794/MoGe/configs/eval/sanity_benchmarks.json |
| OUT_DIR=sanity_output |
| mkdir -p $OUT_DIR |
|
|
| SUMMARY=$OUT_DIR/_sanity_all_${TIMESTAMP}.summary.txt |
| : > $SUMMARY |
|
|
| echo "============================================" |
| echo "sanity-all started at $(date)" |
| echo "Config: $CONFIG" |
| echo "TIMESTAMP: $TIMESTAMP" |
| echo "Summary file: $SUMMARY" |
| echo "============================================" |
| nvidia-smi |
|
|
| run_model() { |
| local label=$1 env=$2 |
| shift 2 |
| echo |
| echo "============================================" |
| echo "[$label] starting at $(date) (conda env: $env)" |
| echo "============================================" |
| conda deactivate 2>/dev/null || true |
| conda activate $env |
| echo "Active env: $CONDA_DEFAULT_ENV" |
| export PYTHONPATH=$PYTHONPATH:$(pwd) |
| python -c "import torch; print('CUDA:', torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else '')" |
|
|
| local OUTFILE=$OUT_DIR/sanity_${label}_${TIMESTAMP}.json |
|
|
| |
| if "$@" \ |
| --baseline baselines/${label}.py \ |
| --config $CONFIG \ |
| --output $OUTFILE; then |
| if [ -f $OUTFILE ]; then |
| echo "[OK] $label -> $OUTFILE" | tee -a $SUMMARY |
| else |
| echo "[NO-OUTPUT] $label (exited 0 but no JSON)" | tee -a $SUMMARY |
| fi |
| else |
| rc=$? |
| echo "[FAIL rc=$rc] $label" | tee -a $SUMMARY |
| fi |
| } |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/ml-depth-pro |
| CKPT=$REPO/checkpoints/depth_pro.pt |
| run_model depth_pro depth-pro \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --checkpoint $CKPT --precision fp32 |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/Marigold |
| CHECKPOINT=prs-eth/marigold-depth-v1-1 |
| run_model marigold marigold \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --checkpoint $CHECKPOINT \ |
| --denoise_steps 4 --ensemble_size 1 |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/Lotus |
| PRETRAINED=jingheya/lotus-depth-g-v2-1-disparity |
| run_model lotus lotus \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --pretrained $PRETRAINED --mode generation \ |
| --task_name depth --disparity --timestep 999 --fp16 --seed 42 |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/DepthMaster |
| CKPT=$REPO/ckpt/eval |
| run_model depthmaster depthmaster \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --checkpoint $CKPT --processing_res 768 |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/Pixel-Perfect-Depth |
| |
| run_model ppd ppd \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --semantics_model MoGe2 \ |
| --semantics_pth checkpoints/moge2.pt \ |
| --model_pth checkpoints/ppd_moge.pth --sampling_steps 4 |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/Depth-Anything-3 |
| HF_ID=depth-anything/DA3MONO-LARGE |
| run_model da3_mono da3 \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --hf_id $HF_ID |
|
|
| |
| |
| |
| REPO=/home/ywan0794/EvalMDE/FE2E |
| MODEL_PATH=$REPO/pretrain |
| LORA_PATH=$REPO/lora/LDRN.safetensors |
| run_model fe2e fe2e \ |
| python moge/scripts/eval_baseline.py \ |
| --repo $REPO --model_path $MODEL_PATH --lora_path $LORA_PATH \ |
| --prompt_type empty --single_denoise --cfg_guidance 6.0 --size_level 768 |
|
|
| |
| echo |
| echo "============================================" |
| echo "sanity-all finished at $(date)" |
| echo "============================================" |
| echo "=== Summary ===" |
| cat $SUMMARY |
|
|