-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
presto/presto.py
Outdated
) | ||
x, upd_mask, orig_indices = self.add_token( | ||
val_month_token.unsqueeze(1), x, upd_mask, orig_indices | ||
) | ||
else: |
There was a problem hiding this comment.
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?
tests/test_dataset.py
Outdated
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is fixed
tests/test_dataset.py
Outdated
model.encoder.valid_month_as_token = False | ||
eo, dw, mask, latlons, months, _, _, _, _ = ds[0] | ||
|
||
# TODO: investigate why inference test fails with valid_month |
There was a problem hiding this comment.
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?
fixing valid_month handling