Skip to content

Conversation

@msohaildanish
Copy link

  • Implements the TerraFM backbone with both Base and Large variants.
  • Adds a Min–Max normalization method (MinMaxNormalize) for Sentinel data used by TerraFM.
  • Includes basic tests for the TerraFM backbone.

@romeokienzler
Copy link
Collaborator

Thanks @msohaildanish - reviewing....

@romeokienzler
Copy link
Collaborator

@msohaildanish

================================================================ short test summary info ================================================================
FAILED tests/test_backbones.py::test_terrafm_backbones_forward[terrafm_base] - TypeError: object of type 'NoneType' has no len()
FAILED tests/test_backbones.py::test_terrafm_backbones_forward[terrafm_large] - TypeError: object of type 'NoneType' has no len()
FAILED tests/test_backbones.py::test_terrafm_l1c_patch_embed - TypeError: object of type 'NoneType' has no len()
FAILED tests/test_transforms.py::test_minmax_normalize_torch_channel_first - RuntimeError: The size of tensor a (224) must match the size of tensor b (2) at non-singleton dimension 1

Results (4059.36s (1:07:39)):
285 passed
4 failed
- tests/test_backbones.py:241 test_terrafm_backbones_forward[terrafm_base]
- tests/test_backbones.py:241 test_terrafm_backbones_forward[terrafm_large]
- tests/test_backbones.py:263 test_terrafm_l1c_patch_embed
- tests/test_transforms.py:21 test_minmax_normalize_torch_channel_first
10 skipped

@Joao-L-S-Almeida Joao-L-S-Almeida added the enhancement New feature or request label Oct 27, 2025
@romeokienzler romeokienzler added 1.2 and removed 1.1.1 labels Oct 30, 2025
@romeokienzler
Copy link
Collaborator

@msohaildanish did you have a chance to look into the errors?

moving to v1.2 since:

  • this PR is stale
  • v1.1.1 is a maintenance release anyway

@Joao-L-S-Almeida Joao-L-S-Almeida changed the title Add TerraFM backbone [WiP] Add TerraFM backbone Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.2 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants