Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend/tests #28

Closed
wants to merge 2 commits into from
Closed

Extend/tests #28

wants to merge 2 commits into from

Conversation

Joao-L-S-Almeida
Copy link
Member

No description provided.

Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
Comment on lines +54 to +62
@pytest.mark.parametrize("model_name", ["prithvi_swin_L", "prithvi_swin_B"])
def test_swin_instantiation(model_name):
base_module = "terratorch.models.backbones.prithvi_swin"
module = importlib.import_module(base_module)
model_class = getattr(module, model_name)

model = model_class(pretrained=False, pretrained_bands=[0,1,2,3,4,5,6,7,8,9],
bands=[1,2,3,4,5,6])

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as in #29 , is this test redundant with the timm creation models above? I think they go through the same code paths

@Joao-L-S-Almeida
Copy link
Member Author

It was considered as unnecessary due to the modifications introduced by the PR #31

@CarlosGomes98 CarlosGomes98 deleted the extend/tests branch October 2, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants