Examples¶
The examples are notebook walkthroughs for the main samstars use cases.
Use them when you want to run the workflow step by step in a local checkout.
They are tutorials, not evaluation protocols. For model assessment, keep separate training and held-out areas.
Train and Segment One Area¶
Use Train and Segment One Area when you want the shortest end-to-end training and segmentation walkthrough.
The notebook uses one labeled training package to train a model bundle, then segments a small input area with that bundle.
It covers:
- setting training and segmentation paths
- choosing tutorial parameters
- training a model bundle
- inspecting persistent training outputs
- segmenting an input area
- reading the final crown output
Train and Segment a Tiled Area¶
Use Train and Segment a Tiled Area when the segmentation area should be prepared and processed as tiles.
The notebook trains one model bundle from a labeled training package, builds prepared inference tiles from larger rasters, and segments those tiles.
It covers:
- training one model bundle
- building prepared tiles from larger segmentation rasters
- running segmentation from the prepared tiles
- reading the final crown output
Retrain Refinement for One Area¶
Use Retrain Refinement for One Area when proposal rasters already exist and you want to rebuild only the polygon-refinement stage with a different crown-label layer.
The notebook reuses saved proposal rasters from a persistent training run, builds new refinement records, trains a new refinement model, and writes a new crown output.
It covers:
- preparing a labeled tile for refinement training
- reusing existing proposal records
- building refinement training records
- training a replacement refinement model
- rerunning refinement without rerunning proposal generation
Suggested Sequence¶
- Start with Quick Start for the shortest inference path.
- Use Training to create a model bundle.
- Use Segmentation when you already have a trained bundle or separate model files.
- Use Downstream Analysis when you want to use crown polygons for species classification or other crown-level analyses.
- Use Large Raster Runs for tiled inference scenes.
- Use the notebooks when you want an end-to-end walkthrough in a local checkout.
For repository-local command-line wrappers and utility scripts, see CLI Scripts.