| # v32 training β T42 concept map: dry_skin [4,2,0] β [4,0] (remove continuity) | |
| # | |
| # Goal: Fix spurious noise_level crosstalk in dry_skin degradation (v31: Spearman -0.758). | |
| # noise_level [3] is NOT in the dry_skin target but drops strongly in v31. | |
| # Hypothesis: continuity [2] shares backbone features with noise texture β when | |
| # concept[2] is pulled down by dry_skin, concept[3] follows via shared feature paths. | |
| # Removing continuity forces disambiguation via contrast[4] + orientation[0] only. | |
| # | |
| # Key changes vs v31 (T42 concept map): | |
| # 1. dry_skin: [4, 2, 0] β [4, 0] (remove continuity) | |
| # Continuity [2] shares patch-scale features with noise texture β causes | |
| # spurious noise_level[3] activation (v31: Spearman -0.758 on non-target). | |
| # Fix: use contrast[4] + orientation[0] only (regional features, not shared). | |
| # 2. noise: [3] β [1, 3] (add clarity as co-target) | |
| # TinyViT patch embed (16Γ16) averages out pixel Gaussian noise β concept[3] | |
| # gets almost no gradient (v31: noiseβnoise_level Spearman only -0.081). | |
| # Adding clarity[1] anchors noise degradation to ridge-valley blur at patch | |
| # scale β strong ViT signal β reinforces concept[3] training direction. | |
| # Note: T41 proposed both changes but v29 failed due to --concept-spread-weight, | |
| # NOT the concept map. v32 uses T42 map with no --concept-spread-weight. | |
| # | |
| # Inherited from v31 (unchanged): | |
| # --teacher dinov2_raw, --no-mat-stats, --spread-weight 4.0 | |
| # --concept-deg-gamma 2.0, --k-cross 0, --deg-every-n-steps 2 | |
| # | |
| # Expected: | |
| # Track 2: KS β€ 0.15, Pearson β₯ 0.80 (concept map change should not affect) | |
| # Track 4: dry_skin β noise_level crosstalk β from -0.758 | |
| # noise β noise_level Spearman β from -0.081 (stronger signal) | |
| # dry_skin β contrast_uni, orient_coh remain strong | |
| set -euo pipefail | |
| REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" | |
| export PATH="/home/aiserver/miniconda3/bin:$PATH" | |
| VERSION="v32" | |
| SAVE_DIR="${REPO_ROOT}/sifq/checkpoints/${VERSION}" | |
| LOG_FILE="${REPO_ROOT}/sifq/logs/train_${VERSION}.log" | |
| EVAL_SCRIPT="${REPO_ROOT}/sifq/scripts/run_eval_${VERSION}.sh" | |
| mkdir -p "${REPO_ROOT}/sifq/logs" | |
| # python "${REPO_ROOT}/sifq/scripts/train_sifq.py" \ | |
| # --root-302a "${REPO_ROOT}/dataset/nist302a/images/challengers" \ | |
| # --root-302b "${REPO_ROOT}/dataset/302b/images/baseline" \ | |
| # --root-302d "${REPO_ROOT}/dataset/nist_302d/images/auxiliary" \ | |
| # --root-fvc2002 "${REPO_ROOT}/dataset/FVC_Dataset/FVC2002" \ | |
| # --root-fvc2004 "${REPO_ROOT}/dataset/FVC_Dataset/FVC2004" \ | |
| # --root-polyu "${REPO_ROOT}/dataset/PolyU" \ | |
| # --exclude-sensor "R_1000_slap,R_500_slap,S_500_slap" \ | |
| # --teacher dinov2_raw \ | |
| # --dinov2-model dinov2_vits14 \ | |
| # --no-mat-stats \ | |
| # --proto-max-batches 0 \ | |
| # --epochs 60 \ | |
| # --batch-size 96 \ | |
| # --image-size 224 \ | |
| # --lr 1e-4 \ | |
| # --spread-mode uniform \ | |
| # --spread-weight 4.0 \ | |
| # --concept-deg-gamma 2.0 \ | |
| # --sd302-concept-weight 0.0 \ | |
| # --deg-every-n-steps 2 \ | |
| # --k-cross 0 \ | |
| # --max-train-samples -1 \ | |
| # --num-workers 8 \ | |
| # --gpus 0 \ | |
| # --save-dir "${SAVE_DIR}" \ | |
| # --wandb \ | |
| # --wandb-offline \ | |
| # --wandb-project "sifq" \ | |
| # --wandb-run-name "${VERSION}" \ | |
| # 2>&1 | tee "${LOG_FILE}" | |
| echo "[auto-eval] Training done. Starting eval ${VERSION}..." | |
| bash "${EVAL_SCRIPT}" >> "${LOG_FILE}" 2>&1 | |