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

Improvement readability and comprehensibility of cast process of generate_image() in Stable Diffusion #2195

Closed
y-vectorfield opened this issue Nov 28, 2023 · 2 comments
Assignees
Labels

Comments

@y-vectorfield
Copy link
Contributor

According to line 238, the casting method is implemented abruptly and unnaturally.
I added this method previously in pull request #2102.
Hence, I should move this method to line 237 and add comments about the reason for the casting.

latent = ops.cast(latent, latent_prev.dtype)

y-vectorfield added a commit to y-vectorfield/keras-cv that referenced this issue Nov 28, 2023
y-vectorfield added a commit to y-vectorfield/keras-cv that referenced this issue Nov 28, 2023
y-vectorfield added a commit to y-vectorfield/keras-cv that referenced this issue Nov 28, 2023
@sachinprasadhs sachinprasadhs self-assigned this Dec 4, 2023
@divyashreepathihalli
Copy link
Collaborator

changes merged

@y-vectorfield
Copy link
Contributor Author

@divyashreepathihalli, thank you very much!

yuvraj-wale pushed a commit to yuvraj-wale/keras-cv that referenced this issue Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants