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

Valid month and mask debugging #115

Merged
merged 23 commits into from
Oct 12, 2024
Merged

Conversation

cbutsko
Copy link

@cbutsko cbutsko commented Oct 11, 2024

fixing valid_month handling

@kvantricht kvantricht self-requested a review October 11, 2024 13:37
presto/presto.py Outdated
)
x, upd_mask, orig_indices = self.add_token(
val_month_token.unsqueeze(1), x, upd_mask, orig_indices
)
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

@cbutsko why is this else still needed? Dummy val_month_token created there is not being used anyway?

model.to(device)
model.encoder.valid_month_as_token = True
eo, dw, mask, latlons, months, _, valid_months, _, _ = ds[0]

# TODO: investigate why inference test fails with valid_month
Copy link
Contributor

Choose a reason for hiding this comment

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

@cbutsko tests no longer fail, TODO can be removed?

Copy link
Author

Choose a reason for hiding this comment

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

yes, this is fixed

@kvantricht kvantricht self-requested a review October 12, 2024 08:24
model.encoder.valid_month_as_token = False
eo, dw, mask, latlons, months, _, _, _, _ = ds[0]

# TODO: investigate why inference test fails with valid_month
Copy link
Contributor

Choose a reason for hiding this comment

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

@cbutsko TODO can be removed?

tests/test_dataset.py Show resolved Hide resolved
@cbutsko cbutsko merged commit a75adbf into croptype Oct 12, 2024
1 check passed
@cbutsko cbutsko deleted the valid_month-and-mask-debugging branch October 12, 2024 08:49
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