Sayak Paul
4e57aeff1f
[Tests] add test suite for SD3 DreamBooth ( #8650 )
...
* add a test suite for SD3 DreamBooth
* lora suite
* style
* add checkpointing tests for LoRA
* add test to cover train_text_encoder.
2024-07-02 07:00:22 +05:30
Álvaro Somoza
af92869d9b
[SD3 LoRA Training] Fix errors when not training text encoders ( #8743 )
...
* fix
* fix things.
Co-authored-by: Linoy Tsaban <linoy.tsaban@gmail.com >
* remove patch
* apply suggestions
---------
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com >
Co-authored-by: sayakpaul <spsayakpaul@gmail.com >
Co-authored-by: Linoy Tsaban <linoy.tsaban@gmail.com >
2024-07-02 06:21:16 +05:30
Haofan Wang
0bae6e447c
Allow from_transformer in SD3ControlNetModel ( #8749 )
...
* Update controlnet_sd3.py
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-07-01 07:38:38 -10:00
Dhruv Nair
0368483b61
Remove legacy single file model loading mixins ( #8754 )
...
update
2024-07-01 07:20:19 -10:00
YiYi Xu
ddb9d8548c
[doc] add a tip about using SDXL refiner with hunyuan-dit and pixart ( #8735 )
...
* up
* Apply suggestions from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-07-01 06:30:09 -10:00
Lucain
49979753e1
Always raise from previous error ( #8751 )
2024-07-01 14:22:30 +05:30
XCL
a3904d7e34
[Tencent Hunyuan Team] Add HunyuanDiT-v1.2 Support ( #8747 )
...
* add v1.2 support
---------
Co-authored-by: xingchaoliu <xingchaoliu@tencent.com >
Co-authored-by: yiyixuxu <yixu310@gmail.com >
2024-06-30 21:33:38 -10:00
WenheLI
7bfc1ee1b2
fix the LR schedulers for dreambooth_lora ( #8510 )
...
* update training
* update
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com >
2024-07-01 08:14:57 +05:30
Bhavay Malhotra
71c046102b
[train_controlnet_sdxl.py] Fix the LR schedulers when num_train_epochs is passed in a distributed training env ( #8476 )
...
* Create diffusers.yml
* num_train_epochs
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-07-01 07:21:40 +05:30
Sayak Paul
83b112a145
shift cache in benchmarking. ( #8740 )
...
* shift cache.
* comment
2024-07-01 07:14:05 +05:30
Shauray Singh
8690e8b9d6
add PAG support for SD architecture ( #8725 )
...
* add pag to sd pipelines
2024-06-29 09:26:11 -10:00
Sayak Paul
7db8c3ec40
Benchmarking workflow fix ( #8389 )
...
* fix
* fixes
* add back the deadsnakes
* better messaging
* disable IP adapter tests for the moment.
* style
* up
* empty
2024-06-29 09:06:32 +05:30
Álvaro Somoza
9b7acc7cf2
[Community pipeline] SD3 Differential Diffusion Img2Img Pipeline ( #8679 )
...
* new pipeline
2024-06-28 17:12:39 -10:00
Luo Chaofan
a216b0bb7f
fix: ValueError when using FromOriginalModelMixin in subclasses #8440 ( #8454 )
...
* fix: ValueError when using FromOriginalModelMixin in subclasses #8440
(cherry picked from commit 9285997843 )
* Update src/diffusers/loaders/single_file_model.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update single_file_model.py
* Update single_file_model.py
---------
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-28 17:15:46 +05:30
Dhruv Nair
150142c537
[Tests] Fix precision related issues in slow pipeline tests ( #8720 )
...
update
2024-06-28 08:13:46 +05:30
Linoy Tsaban
35f45ecd71
[Advanced dreambooth lora] adjustments to align with canonical script ( #8406 )
...
* minor changes
* minor changes
* minor changes
* minor changes
* minor changes
* minor changes
* minor changes
* fix
* fix
* aligning with blora script
* aligning with blora script
* aligning with blora script
* aligning with blora script
* aligning with blora script
* remove prints
* style
* default val
* license
* move save_model_card to outside push_to_hub
* Update train_dreambooth_lora_sdxl_advanced.py
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-27 13:27:37 +05:30
Sayak Paul
d5dd8df3b4
[Chore] perform better deprecation for vqmodeloutput ( #8719 )
...
perform better deprecation for vqmodeloutput
2024-06-27 12:16:37 +05:30
Mathis Koroglu
3e0d128da7
Motion Model / Adapter versatility ( #8301 )
...
* Motion Model / Adapter versatility
- allow to use a different number of layers per block
- allow to use a different number of transformer per layers per block
- allow a different number of motion attention head per block
- use dropout argument in get_down/up_block in 3d blocks
* Motion Model added arguments renamed & refactoring
* Add test for asymmetric UNetMotionModel
2024-06-27 11:11:29 +05:30
vincedovy
a536e775fb
Fix json WindowsPath crash ( #8662 )
...
* Add check for WindowsPath in to_json_string
On Windows, os.path.join returns a WindowsPath. to_json_string does not convert this from a WindowsPath to a string. Added check for WindowsPath to to_json_saveable.
* Remove extraneous convert to string in test_check_path_types (tests/others/test_config.py)
* Fix style issues in tests/others/test_config.py
* Add unit test to test_config.py to verify that PosixPath and WindowsPath (depending on system) both work when converted to JSON
* Remove distinction between PosixPath and WindowsPath in ConfigMixIn.to_json_string(). Conditional now tests for Path, and uses Path.as_posix() to convert to string.
---------
Co-authored-by: Vincent Dovydaitis <vincedovy@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-27 10:30:55 +05:30
Álvaro Somoza
3b01d72a64
Modify FlowMatch Scale Noise ( #8678 )
...
* initial fix
* apply suggestion
* delete step_index line
2024-06-27 00:36:33 -04:00
Sayak Paul
e2a4a46e99
[Release notification] add some info when there is an error. ( #8718 )
...
add some info when there is an error.
2024-06-27 09:49:15 +05:30
Sayak Paul
eda560d34c
modify PR and issue templates ( #8687 )
...
* modify PR and issue templates
* add single file poc.
2024-06-27 09:01:47 +05:30
Sayak Paul
adbb04864d
[LoRA] fix conversion utility so that lora dora loads correctly ( #8688 )
...
fix conversion utility so that lora dora loads correctly
2024-06-27 08:58:32 +05:30
Dhruv Nair
effe4b9784
Update xformers SD3 test ( #8712 )
...
update
2024-06-26 10:24:27 -10:00
Sayak Paul
5b51ad0052
[LoRA] fix vanilla fine-tuned lora loading. ( #8691 )
...
fix vanilla fine-tuned lora loading.
2024-06-26 07:38:57 -10:00
Sayak Paul
10b4e354b6
[Chore] remove deprecation from transformer2d regarding the output class. ( #8698 )
...
* remove deprecation from transformer2d regarding the output class.
* up
* deprecate more
2024-06-26 07:35:36 -10:00
Donald.Lee
ea6938aea5
Fix: unet save_attn_procs at UNet2DconditionLoadersMixin ( #8699 )
...
* fix: unet save_attn_procs at custom diffusion
* style: recover unchanaged parts(max line length 119) / mod: add condition
* style: recover unchanaged parts(max line length 119)
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-26 22:30:49 +05:30
Sayak Paul
8ef0d9deff
[Observability] add reporting mechanism when mirroring community pipelines. ( #8676 )
...
* add reporting mechanism when mirroring community pipelines.
* remove unneeded argument
* get the actual PATH_IN_REPO
* don't need tag
2024-06-26 22:11:33 +05:30
XCL
fa2abfdb03
[Tencent Hunyuan Team] Add Hunyuan-DiT ControlNet Inference ( #8694 )
...
* add controlnet support
---------
Co-authored-by: xingchaoliu <xingchaoliu@tencent.com >
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2024-06-26 00:43:03 -10:00
YiYi Xu
1d3ef67b09
[doc] add more about from_pipe API for PAG doc ( #8701 )
...
* add more about from_pipe API
* Update docs/source/en/using-diffusers/pag.md
* Update docs/source/en/using-diffusers/pag.md
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2024-06-25 22:26:12 -10:00
Dhruv Nair
0f0b531827
Add decorator for compile tests ( #8703 )
...
* update
* update
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-26 11:26:47 +05:30
Sayak Paul
e8284281c1
add docs on model sharding ( #8658 )
...
* add docs on model sharding
* add entry to _toctree.
* Apply suggestions from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* simplify wording
* add a note on transformer library handling
* move device placement section
* Update docs/source/en/training/distributed_inference.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-06-26 07:35:11 +05:30
YiYi Xu
715a7da1b2
add sd3 conversion script ( #8702 )
...
add conversion script
2024-06-25 14:24:58 -10:00
Álvaro Somoza
14d224d4e6
[Docs] SD3 T5 Token limit doc ( #8654 )
...
* doc for max_sequence_length
* better position and changed note to tip
* apply suggestions
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-25 14:41:27 -04:00
YiYi Xu
540399f540
add PAG support ( #7944 )
...
* first draft
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
Co-authored-by: Junhwa Song <ethan9867@gmail.com >
Co-authored-by: Ahn Donghoon (안동훈 / suno) <suno.vivid@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-06-25 08:40:02 -10:00
Sayak Paul
f088027e93
[Marigold tests] add is_flaky decorator to some Marigold tests ( #8696 )
...
okay
2024-06-25 06:27:28 -10:00
Linoy Tsaban
c6e08ecd46
[Sd3 Dreambooth LoRA] Add text encoder training for the clip encoders ( #8630 )
...
* add clip text-encoder training
* no dora
* text encoder traing fixes
* text encoder traing fixes
* text encoder training fixes
* text encoder training fixes
* text encoder training fixes
* text encoder training fixes
* add text_encoder layers to save_lora
* style
* fix imports
* style
* fix text encoder
* review changes
* review changes
* review changes
* minor change
* add lora tag
* style
* add readme notes
* add tests for clip encoders
* style
* typo
* fixes
* style
* Update tests/lora/test_lora_layers_sd3.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update examples/dreambooth/README_sd3.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* minor readme change
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-25 18:00:19 +05:30
Sayak Paul
4ad7a1f5fd
[Chore] create a utility for calculating the expected number of shards. ( #8692 )
...
create a utility for calculating the expected number of shards.
2024-06-25 17:05:39 +05:30
Hammond Liu
1f81fbe274
Fix redundant pipe init in sd3 lora ( #8680 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-25 07:31:20 +05:30
Tolga Cangöz
589931ca79
Errata - Update class method convention to use cls ( #8574 )
...
* Class methods are supposed to use `cls` conventionally
* `make style && make quality`
* An Empty commit
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 10:35:45 -07:00
Steven Liu
675be88f00
[docs] Add note for float8 ( #8685 )
...
add note
2024-06-24 10:13:34 -07:00
Steven Liu
df4ad6f4ac
[docs] Fix Pillow import ( #8684 )
...
fix import error
2024-06-24 10:13:15 -07:00
Sayak Paul
bc90c28bc9
[Docs] add note on caching in fast diffusion ( #8675 )
...
* add note on caching in fast diffusion
* formatting
* Update docs/source/en/tutorials/fast_diffusion.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-06-24 10:10:45 -07:00
Tolga Cangöz
f040c27d4c
Errata - Fix typos and improve style ( #8571 )
...
* Fix typos
* Fix typos & up style
* chore: Update numbers
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 10:07:22 -07:00
Tolga Cangöz
138fac703a
Discourage using deprecated revision parameter ( #8573 )
...
* Discourage using `revision`
* `make style && make quality`
* Refactor code to use 'variant' instead of 'revision'
* `revision="bf16"` -> `variant="bf16"`
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 10:06:49 -07:00
Tolga Cangöz
468ae09ed8
Errata - Trim trailing white space in the whole repo ( #8575 )
...
* Trim all the trailing white space in the whole repo
* Remove unnecessary empty places
* make style && make quality
* Trim trailing white space
* trim
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 18:39:15 +05:30
Dong
3fca52022f
🎨 fix xl playground device ( #8550 )
...
* 🎨 fix xl playground device
* 🎨 run `make fix-copies`
* 🎨 run `make fix-copies`
* edit xl_controlnet_img2img file
* edit playground img2img test slow
* Update tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 16:49:55 +05:30
Tolga Cangöz
c375903db5
Errata - Fix typos & improve contributing page ( #8572 )
...
* Fix typos & improve contributing page
* `make style && make quality`
* fix typos
* Fix typo
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 14:13:03 +05:30
Vinh H. Pham
b9d52fca1d
[train_lcm_distill_lora_sdxl.py] Fix the LR schedulers when num_train_epochs is passed in a distributed training env ( #8446 )
...
fix num_train_epochs
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-06-24 14:09:28 +05:30
drhead
2ada094bff
Add extra performance features for EMAModel, torch._foreach operations and better support for non-blocking CPU offloading ( #7685 )
...
* Add support for _foreach operations and non-blocking to EMAModel
* default foreach to false
* add non-blocking EMA offloading to SD1.5 T2I example script
* fix whitespace
* move foreach to cli argument
* linting
* Update README.md re: EMA weight training
* correct args.foreach_ema
* add tests for foreach ema
* code quality
* add foreach to from_pretrained
* default foreach false
* fix linting
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: drhead <a@a.a>
2024-06-24 14:03:47 +05:30