-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add stable diffusion hire.fix pipeline #5802
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
Thanks for your contribution! |
Codecov Report
@@ Coverage Diff @@
## develop #5802 +/- ##
===========================================
+ Coverage 61.60% 61.94% +0.33%
===========================================
Files 488 491 +3
Lines 68472 69130 +658
===========================================
+ Hits 42185 42820 +635
- Misses 26287 26310 +23 |
|
||
# 12. denoising on hires.fix steps | ||
num_warmup_steps = len(timesteps) - hr_steps * self.scheduler.order | ||
print("Step2: Perform denosing on hires.fix stage.") |
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.
print 坑你都不要吧
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.
deleted
|
||
# 5. Prepare latent variables | ||
if generator is not None: | ||
paddle.Generator().states_["initial_generator"] = copy.deepcopy(paddle.Generator().states_[generator]) |
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.
设置一个叫 二阶段的generator,如果二阶段的generator为空,那么我们就用一阶段的generator(不为空的情况下)
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.
Better not to add the second generator, some reasons as follows:
- This usage may confused user with two random seed, and it seems unreasonable to control a image generation with two seeds.
- It maybe result in bad image generation.
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.
APPROVE
PR types
New features
PR changes
Models
Description
generate images with hires.fix function.
Note
The image generated by ppdiffusers has a little difference from webui's due to the difference of generated sigmas. Here show a picture from webui below.