-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[Modular] Fast Tests #11937
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
[Modular] Fast Tests #11937
Changes from 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b165cf3
rearrage the params to groups: default params /image params /batch pa…
yiyixuxu 0fa5812
make style
yiyixuxu 0a5c90e
add names property to pipeline blocks
yiyixuxu d92855d
style
yiyixuxu 4df2739
Merge branch 'main' into modular-test
yiyixuxu d8fa2de
remove more unused func
yiyixuxu 4b7a9e9
prepare_latents_inpaint always return noise and image_latents
yiyixuxu 5f560d0
up
yiyixuxu 0998bd7
up
yiyixuxu a2a9e4e
Merge branch 'modular-test' of github.com:huggingface/diffusers into …
yiyixuxu 625cc8e
update
DN6 80702d2
update
DN6 54e17f3
update
DN6 39be374
update
DN6 3aabef5
update
DN6 a176cfd
update
DN6 1f0570d
update
DN6 6f912ab
Merge branch 'main' into modular-test
DN6 798e0ca
update
DN6 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 |
|---|---|---|
|
|
@@ -20,12 +20,6 @@ | |
| ] | ||
| ) | ||
|
|
||
| TEXT_TO_IMAGE_BATCH_PARAMS = frozenset(["prompt", "negative_prompt"]) | ||
|
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. I just rearranged a bit, i.e. put all the batch inputs together, image inputs together |
||
|
|
||
| TEXT_TO_IMAGE_IMAGE_PARAMS = frozenset([]) | ||
|
|
||
| IMAGE_TO_IMAGE_IMAGE_PARAMS = frozenset(["image"]) | ||
|
|
||
| IMAGE_VARIATION_PARAMS = frozenset( | ||
| [ | ||
| "image", | ||
|
|
@@ -35,8 +29,6 @@ | |
| ] | ||
| ) | ||
|
|
||
| IMAGE_VARIATION_BATCH_PARAMS = frozenset(["image"]) | ||
|
|
||
| TEXT_GUIDED_IMAGE_VARIATION_PARAMS = frozenset( | ||
| [ | ||
| "prompt", | ||
|
|
@@ -50,8 +42,6 @@ | |
| ] | ||
| ) | ||
|
|
||
| TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS = frozenset(["prompt", "image", "negative_prompt"]) | ||
|
|
||
| TEXT_GUIDED_IMAGE_INPAINTING_PARAMS = frozenset( | ||
| [ | ||
| # Text guided image variation with an image mask | ||
|
|
@@ -67,8 +57,6 @@ | |
| ] | ||
| ) | ||
|
|
||
| TEXT_GUIDED_IMAGE_INPAINTING_BATCH_PARAMS = frozenset(["prompt", "image", "mask_image", "negative_prompt"]) | ||
|
|
||
| IMAGE_INPAINTING_PARAMS = frozenset( | ||
| [ | ||
| # image variation with an image mask | ||
|
|
@@ -80,8 +68,6 @@ | |
| ] | ||
| ) | ||
|
|
||
| IMAGE_INPAINTING_BATCH_PARAMS = frozenset(["image", "mask_image"]) | ||
|
|
||
| IMAGE_GUIDED_IMAGE_INPAINTING_PARAMS = frozenset( | ||
| [ | ||
| "example_image", | ||
|
|
@@ -93,20 +79,12 @@ | |
| ] | ||
| ) | ||
|
|
||
| IMAGE_GUIDED_IMAGE_INPAINTING_BATCH_PARAMS = frozenset(["example_image", "image", "mask_image"]) | ||
| UNCONDITIONAL_IMAGE_GENERATION_PARAMS = frozenset(["batch_size"]) | ||
|
|
||
| CLASS_CONDITIONED_IMAGE_GENERATION_PARAMS = frozenset(["class_labels"]) | ||
|
|
||
| CLASS_CONDITIONED_IMAGE_GENERATION_BATCH_PARAMS = frozenset(["class_labels"]) | ||
|
|
||
| UNCONDITIONAL_IMAGE_GENERATION_PARAMS = frozenset(["batch_size"]) | ||
|
|
||
| UNCONDITIONAL_IMAGE_GENERATION_BATCH_PARAMS = frozenset([]) | ||
|
|
||
| UNCONDITIONAL_AUDIO_GENERATION_PARAMS = frozenset(["batch_size"]) | ||
|
|
||
| UNCONDITIONAL_AUDIO_GENERATION_BATCH_PARAMS = frozenset([]) | ||
|
|
||
| TEXT_TO_AUDIO_PARAMS = frozenset( | ||
| [ | ||
| "prompt", | ||
|
|
@@ -119,11 +97,38 @@ | |
| ] | ||
| ) | ||
|
|
||
| TEXT_TO_AUDIO_BATCH_PARAMS = frozenset(["prompt", "negative_prompt"]) | ||
| TOKENS_TO_AUDIO_GENERATION_PARAMS = frozenset(["input_tokens"]) | ||
|
|
||
| TOKENS_TO_AUDIO_GENERATION_BATCH_PARAMS = frozenset(["input_tokens"]) | ||
| UNCONDITIONAL_AUDIO_GENERATION_PARAMS = frozenset(["batch_size"]) | ||
|
|
||
| TEXT_TO_IMAGE_CALLBACK_CFG_PARAMS = frozenset(["prompt_embeds"]) | ||
| # image params | ||
| TEXT_TO_IMAGE_IMAGE_PARAMS = frozenset([]) | ||
|
|
||
| IMAGE_TO_IMAGE_IMAGE_PARAMS = frozenset(["image"]) | ||
|
|
||
|
|
||
| # batch params | ||
| TEXT_TO_IMAGE_BATCH_PARAMS = frozenset(["prompt", "negative_prompt"]) | ||
|
|
||
| IMAGE_VARIATION_BATCH_PARAMS = frozenset(["image"]) | ||
|
|
||
| TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS = frozenset(["prompt", "image", "negative_prompt"]) | ||
|
|
||
| TEXT_GUIDED_IMAGE_INPAINTING_BATCH_PARAMS = frozenset(["prompt", "image", "mask_image", "negative_prompt"]) | ||
|
|
||
| IMAGE_INPAINTING_BATCH_PARAMS = frozenset(["image", "mask_image"]) | ||
|
|
||
| IMAGE_GUIDED_IMAGE_INPAINTING_BATCH_PARAMS = frozenset(["example_image", "image", "mask_image"]) | ||
|
|
||
| UNCONDITIONAL_IMAGE_GENERATION_BATCH_PARAMS = frozenset([]) | ||
|
|
||
| UNCONDITIONAL_AUDIO_GENERATION_BATCH_PARAMS = frozenset([]) | ||
|
|
||
| TEXT_TO_AUDIO_BATCH_PARAMS = frozenset(["prompt", "negative_prompt"]) | ||
|
|
||
| TOKENS_TO_AUDIO_GENERATION_BATCH_PARAMS = frozenset(["input_tokens"]) | ||
|
|
||
| VIDEO_TO_VIDEO_BATCH_PARAMS = frozenset(["prompt", "negative_prompt", "video"]) | ||
|
|
||
| # callback params | ||
| TEXT_TO_IMAGE_CALLBACK_CFG_PARAMS = frozenset(["prompt_embeds"]) | ||
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Any reason behind this change?