Earth observation tools for Meta AI Segment Anything
This tools is developed to easy process spatial data (GeoTIFF and TMS) with Meta AI Segment Anything models using sliding window algorithm for a big files
- download TMS data (including OpenAerialMap and Mapbox Maxar) as GeoTIFF files
- process GeoTIFF files with Meta AI Segment Anything models
- save predicted results as GeoTIFF raster data and GPKG vector data
and little a bit more
- colab notebook https://colab.research.google.com/drive/1RC1V68tD1O-YissBq9nOvS2PHEjAsFkA?usp=share_link
- jupyter notebook in repo https://github.com/aliaksandr960/segment-anything-eo/blob/main/basic_usage.ipynb
- To process large images implemented a sliding window algorithm
- To separate instances, every instance surrounded by 1px width spare space, so it is not the same how original Segment Anything works
Segment Anything was released less, than a week ago and there are first experiments with it. I not know how paramters affect perfomance - feel free to change everything.
Facebookresearch Segment Anything https://github.com/facebookresearch/segment-anything Apache-2.0 license
Gumblex tms2geotiff https://github.com/gumblex/tms2geotiff BSD-2-Clause license
Other code MIT license
Segment Anything and tms2geotiff copied to this repo 9 Apr 2022, you could update them to more recent versions if needed