Skip to content

Instantly share code, notes, and snippets.

View robmarkcole's full-sized avatar
💭
Busy pythonizing

Robin Cole robmarkcole

💭
Busy pythonizing
View GitHub Profile
@calebrob6
calebrob6 / torchgeo_object_detection_example.ipynb
Created October 13, 2023 04:10
Short example of object detection training in TorchGeo.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hkristen
hkristen / tiled_inference_example.py
Created January 4, 2026 09:01
TiledInferenceCallback example for TorchGeo PR #3214
"""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: