#!/usr/bin/env bash # SUM Parts - dump the raw contents of the newest Seosan prediction set -uo pipefail SCRIPTS="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" LOGROOT="$HOME/sum-parts/semantic_segmentation/PointNeXt_bundle/examples/segmentation/log" source "$HOME/miniconda3/etc/profile.d/conda.sh" conda activate sumparts PRED=$(find "$LOGROOT" -name 'seosan*_pred.ply' -printf '%T@ %p\n' 2>/dev/null \ | sort -rn | head -1 | cut -d' ' -f2-) if [ -z "$PRED" ]; then echo "no seosan prediction found under $LOGROOT" exit 1 fi echo "path: $PRED" echo python "$SCRIPTS/dump_pred.py" "$PRED"