This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Example: TiledInferenceCallback for large-scale geospatial inference. | |
| This script demonstrates how to use TorchGeo's TiledInferenceCallback to run | |
| inference on large rasters that don't fit in memory. It handles: | |
| - Tiled processing with configurable patch size and overlap | |
| - Weighted blending at patch boundaries (cosine/linear) | |
| - Automatic geospatial metadata preservation | |
| - Chunked GeoTIFF output for large results | |
| Usage: |