-
Notifications
You must be signed in to change notification settings - Fork 6.7k
stable diffusion depth batching fix #2757
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
stable diffusion depth batching fix #2757
Conversation
| depth_map = depth_map.repeat(batch_size, 1, 1, 1) | ||
| repeat_by = batch_size // depth_map.shape[0] | ||
| depth_map = depth_map.repeat(repeat_by, 1, 1, 1) |
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.
This will cause a mismatch in the batch dimension when using a batch size > 1 and a num_images_per_prompt > 1
It's always repeating by total batch size even if the depth_map already is batched
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.
Good catch! Maybe having it as a comment would be helpful for us in recollecting why this was needed.
|
The documentation is not available anymore as the PR was closed or merged. |
| params = TEXT_GUIDED_IMAGE_VARIATION_PARAMS - {"height", "width"} | ||
| required_optional_params = PipelineTesterMixin.required_optional_params - {"latents"} | ||
| batch_params = TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS - {"image"} | ||
| batch_params = TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS |
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.
Nice.
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.
Thanks.
patrickvonplaten
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.
Super thanks for the fix!
No description provided.