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

Add the scale metadata to the output_stores #89

Merged
merged 9 commits into from
Jun 13, 2024
Merged

Add the scale metadata to the output_stores #89

merged 9 commits into from
Jun 13, 2024

Conversation

edyoshikun
Copy link
Contributor

@edyoshikun edyoshikun commented Jun 13, 2024

PR adds the scale metadata to the output stores.
This is solution requires one to add an input_metadata_store that has the proper scale.

@edyoshikun edyoshikun requested a review from ziw-liu June 13, 2024 16:37
@edyoshikun edyoshikun marked this pull request as ready for review June 13, 2024 16:37
@ziw-liu
Copy link
Collaborator

ziw-liu commented Jun 13, 2024

@edyoshikun I forgot that there is a runtime-only reference of the datamodule from the trainer... So I removed the API change. Can you test and update OP?

Copy link
Contributor Author

@edyoshikun edyoshikun left a comment

Choose a reason for hiding this comment

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

This LGTM! it also worked. Thanks I think it is definetly a cleaner way to handle it.

@ziw-liu ziw-liu added the enhancement New feature or request label Jun 13, 2024
@ziw-liu ziw-liu merged commit b610c2c into main Jun 13, 2024
4 checks passed
@ziw-liu ziw-liu deleted the scale_meta branch June 13, 2024 22:55
edyoshikun added a commit that referenced this pull request Jun 18, 2024
* add the scale metadata from the input.

* add change to config file

* adding a try except

* passing None for default behaviour and letting iohub handle the scale default.

* making default metadta_store to none and adding letting iohub handle the exceptions

* fix docstring

* fix type hint

* read input store directly

* revert change to the example config

---------

Co-authored-by: Ziwen Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants