cbct / pre /scripts /run_smoke.sh
JulianHJR's picture
Add files using upload-large-folder tool
08764e9 verified
Raw
History Blame Contribute Delete
2.24 kB
#!/usr/bin/env bash
# SMOKE pipeline: prove every step works end-to-end in ~10-15 minutes on a 5090.
# Results will look bad (epochs=2-3); the point is "no crash, all artifacts produced".
set -e
export HF_ENDPOINT=https://hf-mirror.com
CFG=configs/smoke.yaml
echo "============================================================"
echo "[smoke 1/6] download ONLY the 31-35 zip (~1 GB) and extract"
echo "============================================================"
python -m toothcanal.download --config $CFG --only_zips 31-35
echo "============================================================"
echo "[smoke 2/6] preprocess (clean + assemble + derive supervision)"
echo "============================================================"
python -m toothcanal.preprocess --config $CFG
echo "============================================================"
echo "[smoke 3/6] Stage 1 - coarse segmentation (2 epochs)"
echo "============================================================"
python -m toothcanal.train_stage1 --config $CFG
echo "============================================================"
echo "[smoke 4/6] Stage 2 - implicit dual-SDF (3 epochs)"
echo "============================================================"
python -m toothcanal.train_stage2 --config $CFG
echo "============================================================"
echo "[smoke 5/6] inference -> per-tooth STL meshes (TTO=10 steps)"
echo "============================================================"
python -m toothcanal.infer --config $CFG
echo "============================================================"
echo "[smoke 6/6] evaluate + visualize -> GLB + PNG preview"
echo "============================================================"
python -m toothcanal.evaluate --config $CFG
python -m toothcanal.visualize --config $CFG --all
echo
echo "============================================================"
echo "SMOKE PASSED. Outputs at: /root/autodl-tmp/toothcanal/outputs_smoke"
echo " meshes/ : per-tooth STL files"
echo " viz/*.glb,.png : combined tooth+canal 3D preview"
echo " eval_metrics.csv"
echo "If everything looks reasonable, run: bash scripts/run_all.sh"
echo "============================================================"