-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add Stable Diffusion 3 guide for KerasHub #1955
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
divyashreepathihalli
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 for adding this super cool guide @james77777778!! I have left a few comments.
| float16. | ||
|
|
||
| It is also worth noting that the preset "stable_diffusion_3_medium" excludes the | ||
| T5XXL text encoder, as it requires significantly more GPU memory. The performace |
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.
maybe also add content on if users wanted to try it with T5XXL text encoder, how can they do that.
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.
I've added this line:
The weights, including T5XXL, will be available on KerasHub soon.
| display_image = concate_images([np.array(image), generated_image]) | ||
| plt.axis("off") | ||
| plt.imshow(display_image) | ||
|
|
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.
explain the output that is seen here with 1 or 2 lines
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.
Added:
As you can see, a new image is generated based on the reference image and the
prompt.
| ) | ||
| plt.axis("off") | ||
| plt.imshow(display_image) | ||
|
|
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.
Add few lines here explaining the output.
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.
Added:
Fantastic! The dog is replaced by a cute black cat, but unlike image-to-image,
the background is preserved.
Note that inpainting task also includes `strength` parameter to control the
image generation, with the default value of `0.6` in Stable Diffusion 3.
|
@divyashreepathihalli EDITED: |
divyashreepathihalli
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 Hongyu! LGTM
@divyashreepathihalli
This guide covers all the APIs for SD3 in KerasHub. Please let me know if any changes are required.