sayakpaul
482a9dd36a
Release: v0.22.3
v0.22.3
2023-11-08 17:54:39 +05:30
Sayak Paul
4d8a9081f0
[PixArt-Alpha] fix mask feature condition. ( #5695 )
...
* fix mask feature condition.
* debug
* remove identical test
* set correct
* Empty-Commit
2023-11-08 17:53:08 +05:30
Patrick von Platen
96829f00ff
[LCM] Fix img2img ( #5698 )
...
* [LCM] Fix img2img
* make fix-copies
* make fix-copies
* make fix-copies
* up
2023-11-08 17:52:52 +05:30
Patrick von Platen
249c06c12f
Release: v0.22.2
v0.22.2
2023-11-07 18:38:28 +01:00
Sayak Paul
0ac7d39830
[PixArt-Alpha] Support non-square images ( #5672 )
...
* debug
* support non-square images
* add: test
* fix: test
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-11-07 18:37:59 +01:00
Sayak Paul
d190959deb
Make sure DDPM and diffusers can be used without Transformers ( #5668 )
...
* fix: import bug
* fix
* fix
* fix import utils for lcm
* fix: pixart alpha init
* Fix
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-11-07 18:37:51 +01:00
Sayak Paul
d5ff8f81b5
[PixArt-Alpha] fix mask_feature so that precomputed embeddings work with a batch size > 1 ( #5677 )
...
* fix embeds
* remove todo
* add: test
* better name
2023-11-07 18:37:43 +01:00
Dhruv Nair
b4ca05fc26
Fix Basic Transformer Block ( #5683 )
...
* fix
* Update src/diffusers/models/attention.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-11-07 18:37:29 +01:00
Patrick von Platen
a1d33fc9a5
Release: v0.22.1
v0.22.1
2023-11-06 15:41:55 +01:00
Patrick von Platen
1a4db89def
[Custom Pipelines] Make sure that community pipelines can use repo revision ( #5659 )
...
fix custom pipelines
2023-11-06 15:40:25 +01:00
sayakpaul
df60b35e47
Release: v0.22.0
v0.22.0
2023-11-06 18:09:17 +05:30
Sayak Paul
aec3de8bdb
correct pipeline class name ( #5652 )
2023-11-06 14:08:27 +05:30
Sayak Paul
d61889fc17
[Feat] PixArt-Alpha ( #5642 )
...
* init pixart alpha pipeline
* fix: import
* script
* script
* script
* add: vae to the pipeline
* add: vae_scale_factor
* add: checkpoint_path
* clean conversion script a bit.
* size embeddings.
* fix: size embedding
* update scrip
* support for interpolation of position embedding.
* support for conditioning.
* ..
* ..
* ..
* final layer
* final layer
* align if encode_prompt
* support for caption embedding
* refactor
* refactor
* refactor
* start cross attention
* start cross attention
* cross_attention_dim
* cross
* cross
* support for resolution and aspect_ratio
* support for caption projection
* refactor patch embeddings
* batch_size
* up
* commit
* commit
* commit.
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze
* squeeze.
* squeeze.
* fix final block./
* fix final block./
* fix final block./
* clean
* fix: interpolation scale.
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging'
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* make --checkpoint_path non-required.
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* remove num_tokens
* timesteps -> timestep
* timesteps -> timestep
* timesteps -> timestep
* timesteps -> timestep
* timesteps -> timestep
* timesteps -> timestep
* debug
* debug
* update conversion script.
* update conversion script.
* update conversion script.
* debug
* debug
* debug
* clean
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* deug
* debug
* debug
* debug
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* clean
* fix
* fix
* boom
* boom
* some changes
* boom
* save
* up
* remove i
* fix more tests
* DPMSolverMultistepScheduler
* fix
* offloading
* fix conversion script
* fix conversion script
* remove print
* remove support for negative prompt embeds.
* typo.
* remove extra kwargs
* bring conversion script to where it was
* fix
* trying mu luck
* trying my luck again
* again
* again
* again
* clean up
* up
* up
* update example
* support for 512
* remove spacing
* finalize docs.
* test debug
* fix: assertion values.
* debug
* debug
* debug
* fix: repeat
* remove prints.
* Apply suggestions from code review
* Apply suggestions from code review
* Correct more
* Apply suggestions from code review
* Change all
* Clean more
* fix more
* Fix more
* Fix more
* Correct more
* address patrick's comments.
* remove unneeded args
* clean up pipeline.
* sty;e
* make the use of additional conditions better conditioned.
* None better
* dtype
* height and width validation
* add a note about size brackets.
* fix
* spit out slow test outputs.
* fix?
* fix optional test
* fix more
* remove unneeded comment
* debug
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-11-06 08:40:04 +01:00
YiYi Xu
2b23ec82e8
add callbacks to denoising step ( #5427 )
...
* draft1
* update
* style
* move to the end of loop
* update
* update callbak_on_step_end_inputs
* Revert "update"
This reverts commit 5f9b153183 .
* Revert "update callbak_on_step_end_inputs"
This reverts commit 44889f4dab .
* update
* update test required_optional_params
* remove self.lora_scale
* img2img
* inpaint
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* fix
* apply feedbacks on img2img + inpaint: keep only important pipeline attributes
* depth
* pix2pix
* make _callback_tensor_inputs an class variable so that we can use it for testing
* add a basic tst for callback
* add a read-only tensor input timesteps + fix tests
* add second test for callback cfg
* sdxl
* sdxl img2img
* sdxl inpaint
* kandinsky prior
* kandinsky decoder
* kandinsky img2img + combined
* kandinsky inpaint
* fix copies
* fix
* consistent default inputs
* fix copies
* wuerstchen_prior prior
* test_wuerstchen_decoder + fix test for prior
* wuerstchen_combined pipeline + skip tests
* skip test for kandinsky combined
* lcm
* remove timesteps etc
* add doc string
* copies
* Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* make style and improve tests
* up
* up
* fix more
* fix cfg test
* tests for callbacks
* fix for real
* update
* lcm img2img
* add doc
* add doc page to index
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2023-11-05 20:00:41 +01:00
Chi
080081bded
Remove the redundant line from the adapter.py file. ( #5618 )
...
* I added a new doc string to the class. This is more flexible to understanding other developers what are doing and where it's using.
* Update src/diffusers/models/unet_2d_blocks.py
This changes suggest by maintener.
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update src/diffusers/models/unet_2d_blocks.py
Add suggested text
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update unet_2d_blocks.py
I changed the Parameter to Args text.
* Update unet_2d_blocks.py
proper indentation set in this file.
* Update unet_2d_blocks.py
a little bit of change in the act_fun argument line.
* I run the black command to reformat style in the code
* Update unet_2d_blocks.py
similar doc-string add to have in the original diffusion repository.
* I removed the dummy variable defined in both the encoder and decoder.
* Now, I run black package to reformat my file
* Remove the redundant line from the adapter.py file.
* Black package using to reformated my file
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2023-11-03 22:02:36 -10:00
Sayak Paul
dd9a5caf61
[Core] support for tiny autoencoder in img2img ( #5636 )
...
* support for tiny autoencoder in img2img
Co-authored-by: slep0v <37597789+slep0v@users.noreply.github.com >
* copy fix
* line space
* line space
* clean up
* spit out expected value
* spit out expected value
* assertion values.
* assertion values.
---------
Co-authored-by: slep0v <37597789+slep0v@users.noreply.github.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-11-03 15:31:53 +01:00
M. Tolga Cangöz
a35e72b032
[Docs] Fix typos, improve, update at Using Diffusers' Tecniques page ( #5627 )
...
Fix typos, improve, update; better visualization
2023-11-03 13:51:41 +01:00
dg845
beb8f216ed
Clean up LCM Pipeline and Test Code. ( #5641 )
...
* Clean up LCM pipeline and pipeline test code.
* Add comment for LCM img2img sampling loop.
2023-11-03 13:50:48 +01:00
Ryan Dick
7ad70cee74
Model loading speed optimization ( #5635 )
...
Move unchanging operation out of loop for speed benefit.
2023-11-03 13:48:13 +01:00
Sayak Paul
60c5eb5877
[Easy] clean up the LCM docstrings. ( #5637 )
...
* clean up the LCM docstrings.
* clean up
* fix: examples
* Apply suggestions from code review
2023-11-03 12:14:48 +01:00
YiYi Xu
d122206466
fix a bug in AutoPipeline.from_pipe() when creating a controlnet pipeline from an existing controlnet ( #5638 )
...
fix
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2023-11-03 12:14:19 +01:00
Sayak Paul
c84982a804
[Easy] Minor AnimateDiff Doc nits ( #5640 )
...
minor
2023-11-03 16:27:54 +05:30
Dhruv Nair
84e7bb875d
Update animatediff docs to include section on Motion LoRAs ( #5639 )
...
update animatediff docs
2023-11-03 15:53:59 +05:30
Patrick von Platen
072e00897a
[LCM] Make sure img2img works ( #5632 )
...
* [LCM] Clean up implementations
* Add all
* correct more
* correct more
* finish
* up
2023-11-02 19:50:47 +01:00
M. Tolga Cangöz
b91d5ddd1a
[Docs] Fix typos, improve, update at Using Diffusers' Loading & Hub page ( #5584 )
...
* Fix typos, improve, update
* Change to trending and apply some Grammarly fixes
* Grammarly fixes
* Update loading_adapters.md
* Update loading_adapters.md
* Update other-formats.md
* Update push_to_hub.md
* Update loading_adapters.md
* Update loading.md
* Update docs/source/en/using-diffusers/push_to_hub.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update schedulers.md
* Update docs/source/en/using-diffusers/loading.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/using-diffusers/loading_adapters.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update A1111 LoRA files part
* Update other-formats.md
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-11-02 11:05:43 -07:00
Dhruv Nair
2a8cf8e39f
Animatediff Proposal ( #5413 )
...
* draft design
* clean up
* clean up
* clean up
* clean up
* clean up
* clean up
* clean up
* clean up
* clean up
* update pipeline
* clean up
* clean up
* clean up
* add tests
* change motion block
* clean up
* clean up
* clean up
* update
* update
* update
* update
* update
* update
* update
* update
* clean up
* update
* update
* update model test
* update
* update
* update
* update
* make style
* update
* fix embeddings
* update
* merge upstream
* max fix copies
* fix bug
* fix mistake
* add docs
* update
* clean up
* update
* clean up
* clean up
* fix docstrings
* fix docstrings
* update
* update
* clean up
* update
2023-11-02 15:04:03 +01:00
M. Tolga Cangöz
9ced7844da
[Docs] Fix typos, improve, update at Conceptual Guides page ( #5585 )
...
* Fix typos, improve, update
* Update docs/source/en/conceptual/contribution.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/conceptual/contribution.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/conceptual/philosophy.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update philosophy.md
* Update philosophy.md
* Update docs/source/en/conceptual/philosophy.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/using-diffusers/controlling_generation.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/using-diffusers/controlling_generation.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Remove e.g.; some Grammarly fixes
* Update docs/source/en/conceptual/philosophy.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update contribution.md
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-11-02 12:55:23 +01:00
Patrick von Platen
9723f8a557
[Tests] Fix cpu offload test ( #5626 )
...
* fix more
* fix more
2023-11-02 12:49:58 +01:00
Sayak Paul
b81f709fb6
[remote code] document trust remote code. ( #5620 )
...
document trust remote code.
2023-11-02 12:02:31 +01:00
Steven Liu
75ea54a151
[docs] Kandinsky guide ( #4555 )
...
* kandinsky 2.1 first draft
* add kandinsky 2.2
* fix identical section headers
* try hfoptions syntax
* add img2img
* add inpaint
* add interpolate
* fix tag
* more cleanups
* typo
* update hfoptions id
* align hfoptions tags
2023-11-01 15:36:22 -07:00
Patrick von Platen
c0f0582651
[SDXL Adapter] Revert load lora ( #5615 )
...
* fix
* fix
2023-11-01 22:18:58 +01:00
M. Tolga Cangöz
b81c69e489
[Docs] Fix typos, improve, update at Get Started page ( #5587 )
...
* Fix typos, improve, update
* Update _toctree.yml
* Update docs/README.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/README.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Apply Grammarly fixes
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-11-01 22:11:57 +01:00
Younes Belkada
02ba50c610
[PEFT / LoRA] Fix civitai bug when network alpha is an empty dict ( #5608 )
...
* fix civitai bug
* add test
* up
* fix test
* added slow test.
* style
* Update src/diffusers/utils/peft_utils.py
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com >
* Update src/diffusers/utils/peft_utils.py
---------
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com >
2023-11-01 22:08:22 +01:00
Patrick von Platen
4f2bf67355
Revert "Fix the order of width and height of original size in SDXL training script" ( #5614 )
...
Revert "Fix the order of width and height of original size in SDXL training script (#5382 )"
This reverts commit 45db049973 .
2023-11-01 22:04:47 +01:00
Chi
29cf163b95
Remove Redundant Variables from Encoder and Decoder ( #5569 )
...
* I added a new doc string to the class. This is more flexible to understanding other developers what are doing and where it's using.
* Update src/diffusers/models/unet_2d_blocks.py
This changes suggest by maintener.
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update src/diffusers/models/unet_2d_blocks.py
Add suggested text
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update unet_2d_blocks.py
I changed the Parameter to Args text.
* Update unet_2d_blocks.py
proper indentation set in this file.
* Update unet_2d_blocks.py
a little bit of change in the act_fun argument line.
* I run the black command to reformat style in the code
* Update unet_2d_blocks.py
similar doc-string add to have in the original diffusion repository.
* I removed the dummy variable defined in both the encoder and decoder.
* Now, I run black package to reformat my file
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2023-11-01 21:50:33 +01:00
Patrick von Platen
839c2a5ece
fix
2023-11-01 21:39:30 +01:00
ilisparrow
5712c3d2ef
[Core] enable lora for sdxl adapters too and add slow tests. ( #5555 )
...
* Enable lora for sdxl adapters too.
Issue #5516
* fix: assertion values.
* Use numpy_cosine_similarity_distance on the arrays
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Use numpy_cosine_similarity_distance on the arrays
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Changed imports orders to pass tests
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
---------
Co-authored-by: Ilias A <iliasamri00@gmail.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-11-01 21:25:38 +01:00
clarencechen
151998e1c2
Update final CPU offloading code for more diffusion pipelines ( #5589 )
...
* Update final model offload for more pipelines
Add test to ensure all pipeline components are returned to CPU after
execution with model offloading
* Add comment to explain early UNet offload in Text-to-Video pipeline
* Style
2023-11-01 21:22:56 +01:00
Steven Liu
d1eb14bc35
[docs] Lu lambdas ( #5602 )
...
lu lambdas
2023-11-01 11:47:11 -07:00
M. Tolga Cangöz
5c75a5fbc4
[Docs] Fix typos, improve, update at Tutorials page ( #5586 )
...
* Fix typos, improve, update
* Update autopipeline.md
* Update docs/source/en/tutorials/using_peft_for_inference.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/tutorials/using_peft_for_inference.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/tutorials/using_peft_for_inference.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-11-01 10:40:47 -07:00
M. Tolga Cangöz
442017ccc8
[Docs] Fix typos ( #5583 )
...
* Add Copyright info
* Fix typos, improve, update
* Update deepfloyd_if.md
* Update ldm3d_diffusion.md
* Update opt_overview.md
2023-10-31 10:04:08 -07:00
Dhruv Nair
f1d052c5b8
Update docker image for xformers ( #5597 )
...
update docker image for xformers
2023-10-31 15:02:10 +05:30
YiYi Xu
ce9484b139
fix a mistake in text2image training script for kandinsky2.2 ( #5244 )
...
fix
Co-authored-by: yiyixuxu <yixu@Yis-MacBook-Pro.local >
2023-10-30 23:06:16 -10:00
Jincheng Miao
ed00ead345
[Community Pipelines] add textual inversion support for stable_diffusion_ipex ( #5571 )
2023-10-31 11:54:16 +05:30
TimothyAlexisVass
f0b2f6ce05
Fix divide by zero RuntimeWarning ( #5543 )
2023-10-31 11:39:08 +05:30
Younes Belkada
32fea1cc9b
[core / PEFT ]Bump transformers min version for PEFT integration ( #5579 )
...
Update constants.py
2023-10-30 19:35:46 +01:00
Aryan V S
bb46be2f18
Fix incorrect loading of custom pipeline ( #5568 )
...
* update
* update
* update
* update
2023-10-30 19:32:11 +01:00
Cheng Lu
ac7b1716b7
Stabilize DPM++, especially for SDXL and SDE-DPM++ ( #5541 )
...
* stabilize dpmpp for sdxl by using euler at the final step
* add lu's uniform logsnr time steps
* add test
* fix check_copies
* fix tests
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-10-30 06:36:53 -10:00
Peter @sHTiF Stefcek
3fc10ded00
add fix to be able use StableDiffusionXLAdapterPipeline.from_single_file ( #5547 )
2023-10-30 16:46:44 +01:00
Thuan H. Nguyen
5b087e82d1
Add realfill ( #5456 )
...
* Add realfill
* Move realfill folder
* Fix some format issues
2023-10-30 15:21:40 +01:00