Foundation Models API¶
Auto-generated from source — see Foundation Models for narrative descriptions.
Prithvi¶
keras_climate.foundation.prithvi.PrithviEncoder ¶
PrithviEncoder(img_size=224, patch_size=16, num_frames=3, tubelet_size=1, in_chans=6, embed_dim=768, depth=12, num_heads=12, mlp_ratio=4.0, name='prithvi_encoder', **kwargs)
Bases: Model
Source code in keras_climate/foundation/prithvi.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
keras_climate.foundation.prithvi.PrithviClassifier ¶
PrithviClassifier(variant='prithvi_100m', img_size=224, patch_size=16, num_frames=3, in_chans=6, num_classes=10, name='prithvi_classifier')
Source code in keras_climate/foundation/prithvi.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
keras_climate.foundation.prithvi.PrithviSegmenter ¶
PrithviSegmenter(variant='prithvi_100m', img_size=224, patch_size=16, num_frames=3, in_chans=6, num_classes=2, name='prithvi_segmenter')
Source code in keras_climate/foundation/prithvi.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | |
keras_climate.foundation.prithvi.PRITHVI_CONFIGS
module-attribute
¶
PRITHVI_CONFIGS = {'prithvi_100m': dict(embed_dim=768, depth=12, num_heads=12, decoder_embed_dim=512, decoder_depth=8, decoder_num_heads=16), 'prithvi_300m': dict(embed_dim=1024, depth=24, num_heads=16, decoder_embed_dim=512, decoder_depth=8, decoder_num_heads=16), 'prithvi_eo_v2_300m': dict(embed_dim=1024, depth=24, num_heads=16, decoder_embed_dim=512, decoder_depth=8, decoder_num_heads=16, patch_size=16), 'prithvi_eo_v2_600m': dict(embed_dim=1280, depth=32, num_heads=16, decoder_embed_dim=512, decoder_depth=8, decoder_num_heads=16, patch_size=14)}
Clay¶
keras_climate.foundation.clay.ClayEncoder ¶
ClayEncoder(img_size=224, patch_size=8, embed_dim=768, depth=12, num_heads=12, dim_head=64, mlp_ratio=4.0, wave_dim=128, num_latent_tokens=128, name='clay_encoder', **kwargs)
Bases: Model
Source code in keras_climate/foundation/clay.py
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | |
keras_climate.foundation.clay.ClayClassifier ¶
ClayClassifier(img_size=224, patch_size=8, embed_dim=768, depth=12, num_heads=12, num_bands=10, num_classes=10, name='clay_classifier')
Source code in keras_climate/foundation/clay.py
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | |
CROMA¶
keras_climate.foundation.croma.CROMA ¶
CROMA(img_size=120, patch_size=8, size='base', sar_chans=2, optical_chans=12, name='croma')
Source code in keras_climate/foundation/croma.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | |
keras_climate.foundation.croma.ModalityEncoder ¶
ModalityEncoder(dim=768, depth=12, in_chans=2, patch_size=8, num_heads=16, mlp_mult=4, name='modality_encoder', **kwargs)
Bases: Model
Source code in keras_climate/foundation/croma.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
keras_climate.foundation.croma.CrossAttentionFusion ¶
CrossAttentionFusion(dim, num_heads=16, depth=6, mlp_mult=4, name='cross_encoder', **kwargs)
Bases: Model
Source code in keras_climate/foundation/croma.py
207 208 209 210 211 212 213 214 215 | |
AnySat (this repo's design)¶
keras_climate.foundation.anysat.AnySatEncoder ¶
AnySatEncoder(modality_specs, embed_dim=768, depth=12, num_heads=12, mlp_ratio=4.0, name='anysat_encoder', **kwargs)
Bases: Model
Source code in keras_climate/foundation/anysat.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
keras_climate.foundation.anysat.AnySatClassifier ¶
AnySatClassifier(modality_specs, embed_dim=768, depth=12, num_heads=12, input_shapes=None, num_classes=10, name='anysat_classifier')
Source code in keras_climate/foundation/anysat.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
keras_climate.foundation.anysat.ModalityPatchEmbed ¶
ModalityPatchEmbed(embed_dim, patch_size_px, gsd_m, **kwargs)
Bases: Layer
Source code in keras_climate/foundation/anysat.py
8 9 10 11 12 | |
AnySat (official release port)¶
keras_climate.foundation.anysat_release.AnySatRelease ¶
AnySatRelease(modalities, input_shapes, scale, size='base', embed_dim=None, depth=None, num_heads=None, mlp_ratio=4.0, output='patch', name='anysat_release', **kwargs)
Bases: Model
Source code in keras_climate/foundation/anysat_release.py
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 | |
keras_climate.foundation.anysat_release.ANYSAT_CONFIGS
module-attribute
¶
ANYSAT_CONFIGS = {'tiny': dict(embed_dim=256, depth=2, num_heads=4), 'small': dict(embed_dim=512, depth=4, num_heads=8), 'base': dict(embed_dim=768, depth=6, num_heads=12)}
keras_climate.foundation.anysat_release.ANYSAT_MODALITIES
module-attribute
¶
ANYSAT_MODALITIES = ['aerial', 'aerial-flair', 'spot', 'naip', 's2', 's1-asc', 's1', 'alos', 'l7', 'l8', 'modis']