Instructions to use thiagohersan/maskformer-satellite-trees with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thiagohersan/maskformer-satellite-trees with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="thiagohersan/maskformer-satellite-trees")# Load model directly from transformers import AutoImageProcessor, MaskFormerForInstanceSegmentation processor = AutoImageProcessor.from_pretrained("thiagohersan/maskformer-satellite-trees") model = MaskFormerForInstanceSegmentation.from_pretrained("thiagohersan/maskformer-satellite-trees") - Notebooks
- Google Colab
- Kaggle
Experimental model for segmenting vegetation on satellite images.
And that is it. It just labels pixels as "vegetation" OR "other".
Created by finetuning the facebook/maskformer-swin-base-ade model, and training with a small number (~25) of manually labeled satellite images of urban-ish areas.
BIAS WARNING:
This model was created for a personal art and urbanism project and while the training set included images from geographically diverse cities of personal importance to me, it is in no way exhaustive. There are no cities in Asia, Africa, Central America or Oceania.
The urban areas included were of, or around, these cities:
- SΓ£o Paulo, BR
- Rio de Janeiro, BR
- New York, US
- Pittsburgh, US
- Oakland, US
- Berlin, DE
- Milan, IT
- Riyadh, SA
EVALUATION WARNING:
Anecdotally speaking, it seems more precise than the original facebook/maskformer-swin-base-ade model model when used to get masks for vegetation.
It works with images of other cities, but success criteria is qualitative.
- Downloads last month
- 29