mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
Add HDR metric/alignment helper scripts and combine READMEs
- 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>
This commit is contained in:
1 parent
1748a9256c
commit
287f56176b
6 files changed
+809
-331
No files matched your search
@@ -0,0 +1,40 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user