-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
110 add multi-temporal unet and ViT encoder (#114)
* Add multi temporal unet encoder and corresponding config * Add multi temporal ViT
- Loading branch information
1 parent
fcd7560
commit ecfefa1
Showing
4 changed files
with
288 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
_target_: pangaea.encoders.unet_encoder.UNetMT | ||
encoder_weights: null | ||
download_url: null | ||
input_size: ${dataset.img_size} | ||
multi_temporal: ${dataset.multi_temporal} | ||
topology: [64, 128, 256, 512,] | ||
|
||
input_bands: ${dataset.bands} | ||
|
||
output_dim: | ||
- 64 | ||
- 128 | ||
- 256 | ||
- 512 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
_target_: pangaea.encoders.vit_encoder.VIT_EncoderMT | ||
encoder_weights: ./pretrained_models/jx_vit_base_p16_224-80ecf9dd.pt | ||
download_url: https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-vitjx/jx_vit_base_p16_224-80ecf9dd.pth | ||
|
||
multi_temporal: ${dataset.multi_temporal} | ||
embed_dim: 768 | ||
input_size: 224 | ||
patch_size: 16 | ||
depth: 12 | ||
num_heads: 12 | ||
mlp_ratio: 4 | ||
|
||
input_bands: | ||
optical: | ||
- B4 | ||
- B3 | ||
- B2 | ||
|
||
|
||
output_layers: | ||
- 3 | ||
- 5 | ||
- 7 | ||
- 11 | ||
|
||
output_dim: 768 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters