-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Modular[add more tests] #13013
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
base: main
Are you sure you want to change the base?
Modular[add more tests] #13013
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
will need to adjust conflicts and fix more stuff after this #13078 and #13063 feel free to push directly into this PR too if you see anything you want to change |
sayakpaul
left a comment
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.
Great test!
| def test_loading_from_default_repo(self): | ||
| if self.default_repo_id is None: | ||
| return |
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.
| def test_loading_from_default_repo(self): | |
| if self.default_repo_id is None: | |
| return | |
| def test_loading_from_default_repo(self): | |
| if self.default_repo_id is None: | |
| pytest.mark.skip("The underlying test class doesn't implement `default_repo_id`, skipping test.") |
| # a hack to workaround the fact the default pipeline properties are often incorrect for testing cases, | ||
| # #e.g. vae_scale_factor is ususally not 8 because vae is configured to be smaller for testing |
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.
Is this something because of how defaults are set? I think we should fix this.
| decode_inputs = filter_inputs(decode_available, decoder_node.blocks.input_names) | ||
| modular_output = decoder_node(**decode_inputs).images | ||
|
|
||
| assert modular_output.shape == standard_output.shape, ( |
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.
Should we also add a check for the outputs? The outputs should also match right?
add two more test:
promptshould be a required input for most pipelines