M. Tolga Cangöz
6a05b274cc
Fix Typos ( #7325 )
...
* Fix PyTorch's convention for inplace functions
* Fix import structure in __init__.py and update config loading logic in test_config.py
* Update configuration access
* Fix typos
* Trim trailing white spaces
* Fix typo in logger name
* Revert "Fix PyTorch's convention for inplace functions"
This reverts commit f65dc4afcb .
* Fix typo in step_index property description
* Revert "Update configuration access"
This reverts commit 8d44e870b8 .
* Revert "Fix import structure in __init__.py and update config loading logic in test_config.py"
This reverts commit 2ad5e8bca2 .
* Fix typos
* Fix typos
* Fix typos
* Fix a typo: tranform -> transform
2024-03-18 09:48:40 -07:00
Anatoly Belikov
98d46a3f08
delete vae and text encoders after use in SDXL training script ( #6693 )
...
delete vae and text encoders after use
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-18 20:03:53 +05:30
Sayak Paul
76de6a09fb
post-release v0.27.0 ( #7329 )
...
* post-release
* quality
2024-03-18 10:52:20 +05:30
M. Tolga Cangöz
5d848ec07c
[Tests] Update a deprecated parameter in test files and fix several typos ( #7277 )
...
* Add properties and `IPAdapterTesterMixin` tests for `StableDiffusionPanoramaPipeline`
* Fix variable name typo and update comments
* Update deprecated `output_type="numpy"` to "np" in test files
* Discard changes to src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py
* Update test_stable_diffusion_panorama.py
* Update numbers in README.md
* Update get_guidance_scale_embedding method to use timesteps instead of w
* Update number of checkpoints in README.md
* Add type hints and fix var name
* Fix PyTorch's convention for inplace functions
* Fix a typo
* Revert "Fix PyTorch's convention for inplace functions"
This reverts commit 74350cf65b .
* Fix typos
* Indent
* Refactor get_guidance_scale_embedding method in LEditsPPPipelineStableDiffusionXL class
2024-03-14 12:17:35 -07:00
Linoy Tsaban
83062fb872
[Advanced DreamBooth LoRA SDXL] Support EDM-style training (follow up of #7126 ) ( #7182 )
...
* add edm style training
* style
* finish adding edm training feature
* import fix
* fix latents mean
* minor adjustments
* add edm to readme
* style
* fix autocast and scheduler config issues when using edm
* style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-14 18:40:14 +05:30
Anatoly Belikov
53e9aacc10
log loss per image ( #7278 )
...
* log loss per image
* add commandline param for per image loss logging
* style
* debug-loss -> debug_loss
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-14 11:41:43 +05:30
Beinsezii
d3986f18be
Change step_offset scheduler docstrings ( #7128 )
...
* Change step_offset scheduler docstrings
* Mention it may be needed by some models
* More docstrings
These ones failed literal S&R because I performed it case-sensitive
which is fun.
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-13 15:12:00 -10:00
jnhuang
ac07b6dc6a
Fix Wrong Text-encoder Grad Setting in Custom_Diffusion Training ( #7302 )
...
fix index in set textencoder grad
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-13 20:22:44 +05:30
Sayak Paul
4fbd310fd2
[Chore] switch to logger.warning ( #7289 )
...
switch to logger.warning
2024-03-13 06:56:43 +05:30
pravdomil
165af7edd3
Inline InputPadder ( #6582 )
...
inline InputPadder
2024-03-09 11:24:07 -10:00
pravdomil
e64fdcf2ce
Fix gmflow_dir ( #6583 )
...
* remove sys.path
* update readme
2024-03-09 08:53:17 -10:00
Aryan
cd6e1f1171
[docs/nits] Fix return values based on return_dict and minor doc updates ( #7105 )
...
* fix returns and docs
* handle latent output_type correctly
* revert to old tensor2vid impl
* make fix-copies
* fix return in community animatediff pipes
* fix return docstring
* fix return docs
* add missing quote
---------
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2024-03-08 18:47:24 -10:00
qqii
e5ee05da76
[Community Pipeline] Skip Marigold depth_colored with color_map=None ( #7170 )
...
[Community Pipeline] Skip Marigold depth_colored generation by passing color_map=None
2024-03-08 17:51:11 -10:00
Sayak Paul
9d9744075e
[Easy] fix: save_model_card utility of the DreamBooth SDXL LoRA script ( #7258 )
...
* fix: save_model_card utility.
* fix a little more to make it more lenient.
* remove lower()
2024-03-08 15:22:23 +05:30
pravdomil
b24f78349c
use self.device ( #6595 )
...
* use self.device
* use device
* fix
* fix
2024-03-07 12:46:23 -10:00
Sayak Paul
0d4dfbbd0a
[Examples] fix: prior preservation setting in DreamBooth LoRA SDXL script. ( #7242 )
...
fix: prior preservation setting in DreamBooth LoRA SDXL script.
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com >
2024-03-07 15:19:58 +05:30
Linoy Tsaban
b5814c5555
add DoRA training feature to sdxl dreambooth lora script ( #7235 )
...
* dora in canonical script
* add mention of DoRA to readme
2024-03-07 11:43:37 +05:30
Paakhhi
9940573618
Refactor Prompt2Prompt: Inherit from DiffusionPipeline ( #7211 )
...
refactor: inherit from DiffusionPipeline instead of StableDiffusionPipeline
2024-03-06 19:34:40 -10:00
Nate Landman
534f5d54fa
Update train_dreambooth_lora_sdxl_advanced.py ( #7227 )
...
adding the type gives you
```
TypeError: _StoreTrueAction.__init__() got an unexpected keyword argument 'type'
```
2024-03-06 12:41:48 +01:00
bram-w
eb942b866a
SDXL Turbo support and example launch ( #6473 )
...
* support and example launch for sdxl turbo
* White space fixes
* Trailing whitespace character
* ruff format
* fix guidance_scale and steps for turbo mode
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Radames Ajna <radamajna@gmail.com >
2024-03-06 11:51:01 +05:30
iczaw
6246c70d21
[Community] PromptDiffusion Pipeline ( #6752 )
...
* Create promptdiffusioncontrolnet.py
* Update __init__.py
Added PromptDiffusionControlNetModel
* Update __init__.py
Added PromptDiffusionControlNetModel
* Update promptdiffusioncontrolnet.py
* Create pipeline_prompt_diffusion.py
Added Prompt Diffusion pipeline.
* Create convert_original_promptdiffusion_to_diffusers.py
* Update convert_from_ckpt.py
Added download_promptdiffusion_from_original_ckpt, convert_promptdiffusion_checkpoint
* Update promptdiffusioncontrolnet.py
* Update pipeline_prompt_diffusion.py
* Update README.md
* Update pipeline_prompt_diffusion.py
* Delete src/diffusers/models/promptdiffusioncontrolnet.py
* Update __init__.py
* Update __init__.py
* Delete scripts/convert_original_promptdiffusion_to_diffusers.py
* Update convert_from_ckpt.py
* Update README.md
* Delete examples/community/pipeline_prompt_diffusion.py
* Create README.md
* Create promptdiffusioncontrolnet.py
* Create convert_original_promptdiffusion_to_diffusers.py
* Create pipeline_prompt_diffusion.py
* Update README.md
* Update pipeline_prompt_diffusion.py
* Update README.md
* Update pipeline_prompt_diffusion.py
* Update convert_original_promptdiffusion_to_diffusers.py
* Update promptdiffusioncontrolnet.py
* Update README.md
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-05 09:06:02 +05:30
M. Tolga Cangöz
f4977abcd8
Fix typos ( #7181 )
...
* Fix typos
* Fix typos
* Fix typos and update documentation in lora.md
2024-03-04 10:28:23 -08:00
Linoy Tsaban
8da360aa12
[training scripts] add tags of diffusers-training ( #7206 )
...
* add tags for diffusers training
* add tags for diffusers training
* add tags for diffusers training
* add tags for diffusers training
* add tags for diffusers training
* add tags for diffusers training
* add dora tags for drambooth lora scripts
* style
2024-03-04 22:17:25 +05:30
Linoy Tsaban
01ee0978cc
[advanced dreambooth lora sdxl] add DoRA training feature ( #7072 )
...
* add is_dora arg
* style
* add dora training feature to sd 1.5 script
* added notes about DoRA training
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-04 11:07:54 +01:00
Sayak Paul
56b68459f5
Update requirements.txt to remove huggingface-cli ( #7202 )
...
Internal message: https://huggingface.slack.com/archives/C03Q18WK18T/p1709529892062479
2024-03-04 11:29:01 +05:30
Sayak Paul
ccb93dcad1
Support EDM-style training in DreamBooth LoRA SDXL script ( #7126 )
...
* add: dreambooth lora script for Playground v2.5
* fix: kwarg
* address suraj's comments.
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* apply suraj's suggestion
* incorporate changes in the canonical script./
* tracker naming
* fix: schedule determination
* add: two simple tests
* remove playground script
* note about edm-style training
* address pedro's comments.
* address part of Suraj's comments.
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* remove guidance_scale.
* use mse_loss.
* add comments for preconditioning.
* quality
* Update examples/dreambooth/train_dreambooth_lora_sdxl.py
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* tackle v-pred.
* Empty-Commit
* support edm for sdxl too.
* address suraj's comments.
* Empty-Commit
---------
Co-authored-by: Suraj Patil <surajp815@gmail.com >
2024-03-03 09:28:57 +05:30
Oleh
9a2600ede9
Map speedup ( #6745 )
...
* Speed up dataset mapping
* Fix missing columns
* Remove cache files cleanup
* Update examples/text_to_image/train_text_to_image_sdxl.py
* make style
* Fix code style
* style
* Empty-Commit
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com >
Co-authored-by: Quentin Lhoest <lhoest.q@gmail.com >
2024-03-01 21:38:21 +05:30
Sayak Paul
5f150c4cef
fix: loading problem for sdxl lora dreambooth ( #7166 )
2024-03-01 19:30:48 +05:30
Quentin Lhoest
66f8bd6869
Fix vae_encodings_fn hash in train_text_to_image_sdxl.py ( #7171 )
...
Update train_text_to_image_sdxl.py
2024-03-01 16:56:54 +05:30
YiYi Xu
06b01ea87e
[ip-adapter] refactor prepare_ip_adapter_image_embeds and skip load image_encoder ( #7016 )
...
* add
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-29 15:38:49 -10:00
elucida
fa633ed6de
refactor: move model helper function in pipeline to a mixin class ( #6571 )
...
* move model helper function in pipeline to EfficiencyMixin
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-28 09:26:39 -10:00
Sayak Paul
7db935a141
fix kwarg in the SDXL LoRA DreamBooth ( #7124 )
...
* fix kwarg
* Empty-Commit
2024-02-28 10:21:28 +05:30
Sayak Paul
7081a25618
[Examples] Multiple enhancements to the ControlNet training scripts ( #7096 )
...
* log_validation unification for controlnet.
* additional fixes.
* remove print.
* better reuse and loading
* make final inference run conditional.
* Update examples/controlnet/README_sdxl.md
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* resize the control image in the snippet.
---------
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2024-02-27 09:18:46 +05:30
M. Tolga Cangöz
ad310af0d6
Fix EMA in train_text_to_image_sdxl.py ( #7048 )
...
* Fix typos
2024-02-26 10:39:57 -10:00
jiqing-feng
fd0f469568
Resize image before crop ( #7095 )
...
resize first
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-26 11:14:08 +05:30
Aryan
3a66113306
[Community] Bug fix + Latest IP-Adapter impl. for AnimateDiff img2vid/controlnet ( #7086 )
...
* fix img2vid; update to latest ip-adapter impl
* update README
* update animatediff controlnet to latest impl
2024-02-26 10:27:42 +05:30
Vinh H. Pham
7f16187182
Modularize Dreambooth LoRA SDXL inferencing during and after training ( #6655 )
...
* modularize log validation
* run make style
* revert import wandb
* fix code quality & import wandb
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-26 09:53:12 +05:30
Vinh H. Pham
f11b922b4f
Modularize Dreambooth LoRA SD inferencing during and after training ( #6654 )
...
* modulize log validation
* run make style and refactor wanddb support
* remove redundant initialization
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-26 09:01:39 +05:30
Aryan
bbf70c8739
Fix truthy-ness condition in pipelines that use denoising_start ( #6912 )
...
* fix denoising start
* fix tests
* remove debug
2024-02-24 23:39:22 -10:00
M. Tolga Cangöz
738c986957
[Refactor] StableDiffusionReferencePipeline inheriting from DiffusionPipeline ( #7071 )
...
Refactor StableDiffusionReferencePipeline to inherit from DiffusionPipeline rather than StableDiffusionPipeline
2024-02-23 22:04:31 -10:00
caiyueliang
c09bb588d3
fix: TensorRTStableDiffusionPipeline cannot set guidance_scale ( #7065 )
2024-02-23 14:59:02 -10:00
Chong-U Lim
f05ee56b2f
Fix docstring of community pipeline imagic ( #7062 )
2024-02-23 09:37:52 -08:00
M. Tolga Cangöz
34cc7f9b98
Fix typos ( #7068 )
2024-02-23 09:24:51 -08:00
M. Tolga Cangöz
53605ed00a
[Refactor] save_model_card function in text_to_image examples ( #7051 )
...
* Refactor save_model_card function to handle images and repo_folder parameters
* Discard changes to examples/text_to_image/train_text_to_image.py
* Discard changes to examples/text_to_image/train_text_to_image_lora_sdxl.py
* Update train_text_to_image_lora.py
* Update train_text_to_image_sdxl.py
2024-02-23 20:57:37 +05:30
Lincoln Stein
d5f444de4b
Update checkpoint_merger pipeline to pass the "variant" argument ( #6670 )
...
* make checkpoint_merger pipeline pass the "variant" argument to from_pretrained()
* make style
---------
Co-authored-by: Lincoln Stein <lstein@gmail.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-02-21 15:45:50 -10:00
M. Tolga Cangöz
5a54dc9e95
Fix typos in text_to_image examples ( #7050 )
...
Update copyright information and fix typos in text_to_image examples
2024-02-21 16:40:45 -08:00
pravdomil
1b3cfb1b10
update header ( #6596 )
...
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-02-20 10:09:15 -08:00
ustcuna
12004bf3a7
[Community Pipelines]Accelerate inference of stable diffusion xl (SDXL) by IPEX on CPU ( #6683 )
...
* add stable_diffusion_xl_ipex community pipeline
* make style for code quality check
* update docs as suggested
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2024-02-19 13:39:08 +01:00
Bhavay Malhotra
777063e1bf
Update textual_inversion.py ( #6952 )
...
* Update textual_inversion.py
* Apply suggestions from code review
* Update textual_inversion.py
* Update textual_inversion.py
* Update textual_inversion.py
* Update textual_inversion.py
* Update examples/textual_inversion/textual_inversion.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update textual_inversion.py
* styling
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-16 15:39:51 +05:30
Stephen
104afbce84
Standardize model card for textual inversion sdxl ( #6963 )
...
* standardize model card
* fix tags
* correct import styling and update tags
* run make style and make quality
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-16 14:27:11 +05:30