#!/usr/bin/env bash # SUM Parts - re-score existing predictions without re-running inference # # The prediction plys are already on disk; only the scoring changed. No GPU, # takes seconds. set -uo pipefail SCRIPTS="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DATA="$HOME/sum-parts/data/face_labeling/texsp_pcl" LOGROOT="$HOME/sum-parts/semantic_segmentation/PointNeXt_bundle/examples/segmentation/log/sumv2_triangle" OUT="$HOME/sum-parts/runs/coarse_eval" source "$HOME/miniconda3/etc/profile.d/conda.sh" conda activate sumparts mkdir -p "$OUT" VIS=$(find "$LOGROOT" -type d -name visualization -printf '%T@ %p\n' \ | sort -rn | head -1 | cut -d' ' -f2-) [ -n "$VIS" ] || { echo "no visualization directory found"; exit 1; } echo "predictions: $VIS" echo "ground truth: $DATA/val" echo python "$SCRIPTS/coarse_eval.py" --pred-dir "$VIS" --gt-dir "$DATA/val" \ | tee "$OUT/coarse.txt"