File size: 2,241 Bytes
c4c5273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/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 "============================================================"