forked from huggingface/diffusers
-
Notifications
You must be signed in to change notification settings - Fork 1
[QoL] Small fixes #1
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
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cbe006f
change the expected values since we have better coverage.
sayakpaul b443639
debugging
sayakpaul 1759582
restart generator for lora_load too.
sayakpaul 1ea4e5e
logging when kohya style checkpoint is detected.
sayakpaul 6e4859d
debugging
sayakpaul fc8d31c
debugging
sayakpaul fa59930
handle unloading.
sayakpaul 9ae0186
remove unneeded print.
sayakpaul c26a02d
Update src/diffusers/loaders.py
sayakpaul 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -554,7 +554,7 @@ def test_a1111(self): | |
|
||
images = images[0, -3:, -3:, -1].flatten() | ||
|
||
expected = np.array([0.3743, 0.3893, 0.3835, 0.3891, 0.3949, 0.3649, 0.3858, 0.3802, 0.3245]) | ||
expected = np.array([0.3636, 0.3708, 0.3694, 0.3679, 0.3829, 0.3677, 0.3692, 0.3688, 0.3292]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we have a better coverage of the keys that are loaded in diffusers, thanks to you :) |
||
|
||
self.assertTrue(np.allclose(images, expected, atol=1e-4)) | ||
|
||
|
@@ -594,6 +594,7 @@ def test_unload_lora(self): | |
lora_filename = "Colored_Icons_by_vizsumit.safetensors" | ||
|
||
pipe.load_lora_weights(lora_model_id, weight_name=lora_filename) | ||
generator = torch.manual_seed(0) | ||
lora_images = pipe( | ||
prompt, output_type="np", generator=generator, num_inference_steps=num_inference_steps | ||
).images | ||
|
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.