-
Notifications
You must be signed in to change notification settings - Fork 6k
Adding 'strength' parameter to StableDiffusionInpaintingPipeline #3424
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
Merged
patrickvonplaten
merged 21 commits into
huggingface:main
from
rupertmenneer:add_strength_param_to_inpainting_pipeline
May 17, 2023
Merged
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e4d82f2
Added explanation of 'strength' parameter
a0a04b8
Added get_timesteps function which relies on new strength parameter
43fce93
Added `strength` parameter which defaults to 1.
4176047
Swapped ordering so `noise_timestep` can be calculated before masking…
db47974
Added strength to check_inputs, throws error if out of range
81660d0
Changed `prepare_latents` to initialise latents w.r.t strength
73b2d20
WIP: Added a unit test for the new strength parameter in the StableDi…
d900fb8
Created a is_strength_max to initialise from pure random noise
4fe9a26
Updated unit tests w.r.t new strength parameter + fixed new strength …
8aa9489
renamed parameter to avoid confusion with variable of same name
cd3101b
Updated regression values for new strength test - now passes
aca884f
removed 'copied from' comment as this method is now different and div…
f245d6e
Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffu…
rupertmenneer 60c1a35
Ensure backwards compatibility for prepare_mask_and_masked_image
b0f874b
Ensure backwards compatibility for prepare_latents
46583cc
Fixed copy check typo
c14ecc6
Fixes w.r.t backward compibility changes
dc65be6
make style
williamberman 13f7c94
Merge branch 'main' into add_strength_param_to_inpainting_pipeline
williamberman 26f0c2e
keep function argument ordering same for backwards compatibility in c…
williamberman 934974a
make fix-copies
williamberman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.