Skip to content

mohammadreza-sheykhmousa/segment-anything-eo

 
 

Repository files navigation

Automatic segmentation example

Segment Anything EO tools

Earth observation tools for Meta AI Segment Anything

This tools are developed to ease the processing of spatial data (GeoTIFF and TMS) with Meta AI Segment Anything models using sliding window algorithm for big files

You can:

  • download TMS data (including OpenAerialMap and Mapbox Maxar) as GeoTIFF files
  • process GeoTIFF files with Meta AI Segment Anything models
  • save predicted segments as GeoTIFF raster data and GPKG vector data

and a little bit more

Usage:

Technical details:

  • Using a sliding window algorithm to process large images
  • In order to separate instances, every instance gets surrounded by 1px width spare space, so it is not the same as how original Segment Anything works

Segment Anything was released less than a week ago, and these are the first experiments with it. I don't know how paramters affect perfomance — feel free to change everything.

Licensing

Facebook Research Segment Anything — Apache-2.0 license

Gumblex tms2geotiff — BSD-2-Clause license

Other code — MIT license

Segment Anything and tms2geotiff were copied to this repo 9 Apr 2022, you can update them to more recent versions if needed

About

Earth observation tools for Meta AI Segment Anything

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 72.9%
  • Python 22.7%
  • Shell 3.5%
  • Perl 0.9%