-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[WIP] SD3.5 IP-Adapter Pipeline Integration #9987
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 31 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
0af910b
Initial pipeline for SD3.5-Large-IP-Adapter
guiyrt 5567438
Added support for single IPAdapter on SD3.5 pipeline
guiyrt 50d09d9
Merge branch 'main' into sd3.5_IPAdapter
guiyrt 0ef36dd
Fixed typo and reverted removal of skip_layers in SD3Transformer2DModel
guiyrt de8909a
Added new SD3IPAdapterMixin loader
guiyrt ab0d904
ip_adapter image embeds now considers num_images_per_prompt
guiyrt d868ddb
Merge branch 'main' into sd3.5_IPAdapter
guiyrt 5aed1d3
Removed usage of einops
guiyrt 4383175
Reverted joint_attention_kwargs default for consistency
guiyrt 461ab73
Corrected einops removal
guiyrt 8323240
Quality and style checks
guiyrt 89c4e63
Quality and style checks
guiyrt 27d574f
Handle None joint_attention_kwargs in JointTransformerBlock
guiyrt 0a48648
Fix test_components_function
hlky 10d0a06
Remove from img2img/inpaint for now
hlky c78c4fd
Fixed loading ip_adapter state dict
guiyrt 0f6c607
Simpler image encoding
guiyrt 53fd40d
Style check
guiyrt 8039599
Better checks for image prompt considering ip_adapter scale
guiyrt 7333bfc
Minor change correcting checking for ip_adapter embeds
guiyrt a87895e
Removing old check of ip_adapter scale
guiyrt 4ba374a
Refactor of image_proj (testing)
guiyrt 819dd3e
Revert "Removing old check of ip_adapter scale"
guiyrt 262a3bb
Merge branch 'main' into sd3.5_IPAdapter
guiyrt ea32e13
Corrected property check
guiyrt f60751f
Corrected forward() of IPAdapterTimeImageProjectionBlock
guiyrt b0aa5cb
IPAdapterTimeImageProjectionBlock now uses original attention impleme…
guiyrt b3dc69a
Clean-up and make style
guiyrt 84aa4a3
Minor changes in code structure
guiyrt 34793fb
make style && make quality
guiyrt 27fe083
Merge branch 'main' into sd3.5_IPAdapter
guiyrt 68169f8
Updated dosctrings and doc entries
guiyrt d824451
Merge branch 'main' into sd3.5_IPAdapter
hlky 24e6880
make
hlky 43d2e77
More docs and small refactors
guiyrt 05f49e6
Merge remote-tracking branch 'origin' into sd3.5_IPAdapter
guiyrt 44e3847
Fix in loading state dict
guiyrt 178e513
Enabled cpu offload
guiyrt 7899c6a
Merge branch 'main' into sd3.5_IPAdapter
guiyrt 8daca65
Renaming from transformers_sd3 to transformer_sd3
guiyrt 7c918db
Missing rename
guiyrt 99a6d59
Updated docs for SD3 pipeline
guiyrt 3916298
Merge branch 'main' into sd3.5_IPAdapter
guiyrt 02a6d90
Update docs/source/en/api/pipelines/stable_diffusion/stable_diffusion…
guiyrt 64ab7f9
Minor doc correction
guiyrt b254aa3
Updated img source to hf/documentation-images
guiyrt 5c28161
image_proj is now called from SD3Transformer2DModel
guiyrt 1313501
Merge branch 'main' into sd3.5_IPAdapter
guiyrt b882e1b
ip_adapter_image_embeds go through joint_attention_kwargs
guiyrt 988447f
Warning for sequential cpu offloading with image_encoder
guiyrt 66c4866
Merge branch 'main' into sd3.5_IPAdapter
guiyrt 98f4521
make style quality
guiyrt 5eef7f1
Merge branch 'main' into sd3.5_IPAdapter
yiyixuxu 18cd8e4
Update src/diffusers/models/attention.py
yiyixuxu 65b477f
Update src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_dif…
yiyixuxu 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
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.
Uh oh!
There was an error while loading. Please reload this page.