-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[Sana-4K] #10537
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
[Sana-4K] #10537
Conversation
image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0] | ||
try: | ||
image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0] | ||
except torch.cuda.OutOfMemoryError as e: |
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.
ok here, if you feel strongly about this, we prefer to throw out a warning with recommendations and user can explicitly enable the optimization
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. |
Thanks! @yiyixuxu |
What does this PR do?
Fix the 4K inference bug in
SanaPAGPipeline
Cc: @yiyixuxu , @a-r-r-o-w