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

Remove stale bands argument from clay model classes #144

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/model_clay.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def __init__( # noqa: PLR0913
heads,
dim_head,
mlp_ratio,
bands,
band_groups,
dropout,
emb_dropout,
Expand All @@ -75,7 +74,6 @@ def __init__( # noqa: PLR0913
self.image_size = image_size
self.patch_size = patch_size
self.dim = dim
self.bands = bands
self.band_groups = band_groups
self.num_spatial_patches = (image_size // patch_size) ** 2
self.num_group_patches = len(band_groups)
Expand Down Expand Up @@ -352,7 +350,6 @@ def __init__( # noqa: PLR0913
heads,
dim_head,
mlp_ratio,
bands,
band_groups,
dropout,
):
Expand Down Expand Up @@ -579,7 +576,6 @@ def __init__( # noqa: PLR0913
decoder_mlp_ratio,
decoder_dropout,
# EO
bands=13,
band_groups={
"rgb": (2, 1, 0),
"rededge": (3, 4, 5, 7),
Expand All @@ -594,7 +590,6 @@ def __init__( # noqa: PLR0913
self.mask_ratio = mask_ratio
self.image_size = image_size
self.patch_size = patch_size
self.bands = bands
self.band_groups = band_groups

self.encoder = Encoder(
Expand All @@ -606,7 +601,6 @@ def __init__( # noqa: PLR0913
heads=heads,
dim_head=dim_head,
mlp_ratio=mlp_ratio,
bands=bands,
band_groups=band_groups,
dropout=dropout,
emb_dropout=emb_dropout,
Expand All @@ -622,7 +616,6 @@ def __init__( # noqa: PLR0913
heads=decoder_heads,
dim_head=decoder_dim_head,
mlp_ratio=decoder_mlp_ratio,
bands=bands,
band_groups=band_groups,
dropout=decoder_dropout,
)
Expand Down