-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[Tests] Speed up fast pipelines part II #7521
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
Conversation
| image_latents_params = TEXT_TO_IMAGE_IMAGE_PARAMS | ||
|
|
||
| def get_dummy_components(self): | ||
| torch.manual_seed(0) |
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.
Otherwise for consecutive runs, the underlying pipeline will yield different results.
| expected_slice = np.array( | ||
| [0.5381963, 0.4836803, 0.45821992, 0.5577731, 0.51210403, 0.4794795, 0.59282357, 0.5647199, 0.43100584] | ||
| ) | ||
| expected_slice = np.array([0.549, 0.5053, 0.4676, 0.5816, 0.5364, 0.483, 0.5937, 0.5719, 0.4318]) |
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.
The reason why this needs changing is because we're fixing the seeds when initializing the model level components of the pipeline.
* start printing the tensors. * print full throttle * set static slices for 7 tests. * remove printing. * flatten * disable test for controlnet * what happens when things are seeded properly? * set the right value * style./ * make pia test fail to check things * print. * fix pia. * checking for animatediff. * fix: animatediff. * video synthesis * final piece. * style. * print guess. * fix: assertion for control guess. --------- Co-authored-by: Dhruv Nair <[email protected]>
* start printing the tensors. * print full throttle * set static slices for 7 tests. * remove printing. * flatten * disable test for controlnet * what happens when things are seeded properly? * set the right value * style./ * make pia test fail to check things * print. * fix pia. * checking for animatediff. * fix: animatediff. * video synthesis * final piece. * style. * print guess. * fix: assertion for control guess. --------- Co-authored-by: Dhruv Nair <[email protected]>
What does this PR do?
Follow-up of #7477.
This PR targets the
test_dict_tuple_outputs_equivalent()method we run for all pipelines. I took the top 10 time-consuming tests from the lot and decided to use static slices ONLY for them. This is because of the rest of the tests, it's under a second. So, it doesn't matter that much.The next PR will be similar to this but for
test_inference_batch_single_identical().