Views
No views yet
config.json, model.safetensors, preprocessor, and remote code) for feature extraction on satellite and aerial imagery.modeling_satlaspretrain.py, processor, pipeline) and load with trust_remote_code=True.| Folder | Source | Backbone | Mode | Bands |
|---|---|---|---|---|
satlaspretrain-sentinel2-swinb-si-rgb | Sentinel-2 | Swin-B | SI | RGB |
satlaspretrain-sentinel2-swinb-mi-rgb | Sentinel-2 | Swin-B | MI | RGB |
satlaspretrain-sentinel2-swinb-si-ms | Sentinel-2 | Swin-B | SI | MS (9ch) |
satlaspretrain-sentinel2-swinb-mi-ms | Sentinel-2 | Swin-B | MI | MS (9ch) |
satlaspretrain-sentinel2-swint-si-rgb | Sentinel-2 | Swin-T | SI | RGB |
satlaspretrain-sentinel2-swint-mi-rgb | Sentinel-2 | Swin-T | MI | RGB |
satlaspretrain-sentinel2-swint-si-ms | Sentinel-2 | Swin-T | SI | MS (9ch) |
satlaspretrain-sentinel2-swint-mi-ms | Sentinel-2 | Swin-T | MI | MS (9ch) |
satlaspretrain-sentinel2-resnet50-si-rgb | Sentinel-2 | ResNet50 | SI | RGB |
satlaspretrain-sentinel2-resnet50-mi-rgb | Sentinel-2 | ResNet50 | MI | RGB |
satlaspretrain-sentinel2-resnet50-mi-ms | Sentinel-2 | ResNet50 | MI | MS (9ch) |
satlaspretrain-sentinel2-resnet152-si-rgb | Sentinel-2 | ResNet152 | SI | RGB |
satlaspretrain-sentinel2-resnet152-si-ms | Sentinel-2 | ResNet152 | SI | MS (9ch) |
satlaspretrain-sentinel2-resnet152-mi-rgb | Sentinel-2 | ResNet152 | MI | RGB |
satlaspretrain-sentinel2-resnet152-mi-ms | Sentinel-2 | ResNet152 | MI | MS (9ch) |
satlaspretrain-landsat-swinb-si | Landsat 8/9 | Swin-B | SI | All (11ch) |
satlaspretrain-landsat-swinb-mi | Landsat 8/9 | Swin-B | MI | All (11ch) |
satlaspretrain-aerial-swinb-si | Aerial | Swin-B | SI | RGB |
satlaspretrain-aerial-swinb-mi | Aerial | Swin-B | MI | RGB |
do_resize: false. Pass tensors or arrays at native resolution; sensor-specific normalization is still applied.1from transformers import pipeline
2import torch
3
4model_dir = "satlaspretrain-sentinel2-swinb-si-rgb"
5pipe = pipeline(
6 task="satlaspretrain-feature-extraction",
7 model=model_dir,
8 trust_remote_code=True,
9)
10
11# Sentinel-2 RGB at native size, values in [0, 1]
12x = torch.rand(1, 3, 512, 512)
13features = pipe(x, pool=True, return_tensors=True)
14print(features.shape)
15
16# Dense feature map
17tokens = pipe(x, pool=False, return_tensors=True)preprocessor_config.json:features = pipe(x, pool=True, return_tensors=True, image_processor_kwargs={"do_resize": True})image-feature-extraction also works:1pipe = pipeline(
2 task="image-feature-extraction",
3 model=model_dir,
4 trust_remote_code=True,
5)(x - 4000) / 16320, clipped to [0, 1]