mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 14:23:57 +08:00
- align_two_folders.py: model-free contour+homography alignment of two image folders, with diagnostics (checkerboards, thresholds, matched contours, SIFT match panels). - align_fast_to_well.py: expose the pre-RANSAC SIFT correspondences so the new visualizations can consume them. - ldr_res_jpg.py: LDR (jpg) variant of ldr_res.py metric computation. - run_metrics_all.sh: run calculate_metrics_fast across all scenes. - collect_metrics_sheet.py: gather per-scene result JSONs into a CSV. - README.md: merge README-pandora.md and README-hdrnerfacto.md into one guide (PanDORA + HDR-Nerfacto paths). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
# Run calculate_metrics_fast.py for every scene folder in a data root.
|
|
set -u
|
|
|
|
DATA_ROOT="/mnt/data/nerfstudio_ds/real_data"
|
|
SCRIPT="lantern_scripts/calculate_metrics_fast.py"
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: $0 <metric_name> [data_root]"
|
|
exit 1
|
|
fi
|
|
|
|
METRIC_NAME="$1"
|
|
DATA_ROOT="${2:-$DATA_ROOT}"
|
|
|
|
failed=()
|
|
|
|
for scene in "$DATA_ROOT"/*/; do
|
|
[ -d "$scene" ] || continue
|
|
echo "=================================================================="
|
|
echo "Processing: $scene"
|
|
echo "=================================================================="
|
|
if python "$SCRIPT" --input_dir "$scene" --metric_name "$METRIC_NAME"; then
|
|
echo "OK: $scene"
|
|
else
|
|
echo "FAILED: $scene"
|
|
failed+=("$scene")
|
|
fi
|
|
done
|
|
|
|
echo "=================================================================="
|
|
if [ ${#failed[@]} -eq 0 ]; then
|
|
echo "All scenes processed successfully."
|
|
else
|
|
echo "The following scenes failed:"
|
|
for f in "${failed[@]}"; do
|
|
echo " - $f"
|
|
done
|
|
exit 1
|
|
fi
|