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
co63oc
c0f5346a20
Fix procecss process ( #6591 )
...
* Fix words
* Fix
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-02-15 19:06:33 -10:00
Paakhhi
7e164d98a8
Fix diffusers import prompt2prompt ( #6927 )
...
* Bugfix: correct import for diffusers
* Fix: Prompt2Prompt example
* Format style
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-02-15 15:30:16 -10:00
Linoy Tsaban
8f2c7b4df0
[advanced sdxl lora script] - fix #6967 bug when using prior preservation loss ( #6968 )
...
* fix bug in micro-conditioning of class images
* fix bug in micro-conditioning of class images
* style
2024-02-15 12:20:05 +05:30
Alex Umnov
e7696e20f9
Updated lora inference instructions ( #6913 )
...
* Updated lora inference instructions
* Update examples/dreambooth/README.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Update README.md
* Update README.md
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-13 09:35:20 +05:30
Piyush Thakur
4b89aeffe1
[Type annotations] fixed in save_model_card ( #6948 )
...
fixed type annotations
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-13 08:56:45 +05:30
Piyush Thakur
75aee39eac
[Model Card] standardize T2I Adapter Sdxl model card ( #6947 )
...
standardize model card template t21-adapter-sdxl
2024-02-12 16:43:20 +05:30
Piyush Thakur
e1bdcc7af3
[Model Card] standardize T2I Sdxl Lora model card ( #6944 )
...
* standardize model card template t2i-lora-sdxl
* type annotations
2024-02-12 11:45:40 +05:30
Piyush Thakur
6f336650c3
[Model Card] standardize T2I Sdxl model card ( #6942 )
...
standardize model card template t2i-sdxl
2024-02-12 10:01:20 +05:30
Piyush Thakur
06a042cd0e
[Model Card] standardize T2I Lora model card ( #6940 )
...
standardize model card t2i-lora
2024-02-12 10:01:13 +05:30
Piyush Thakur
8772496586
[Model Card] standardize T2I model card ( #6939 )
...
* standardize model card
* fix base_model
2024-02-12 10:00:41 +05:30
Sayak Paul
7c8cab313e
post release 0.26.2 ( #6885 )
...
* post release
* style
* Empty-Commit
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2024-02-09 07:36:38 -10:00
Bingxin Ke
98b6bee1a1
[Community Pipeline][Bug Fix] marigold_depth_estimation: input image value range ( #6787 )
...
[FIX] IMPORTANT: rgb normalization
2024-02-09 16:55:37 +01:00
camaro
59c307f1d5
Standardize model card for Controlnet ( #6910 )
...
* controlnet
* style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-09 12:29:08 +05:30
Sayak Paul
159885adc6
correct hub_token exposition behaviour (thanks to @bghira). ( #6918 )
2024-02-08 18:38:27 -10:00
camaro
f07899a57c
Standardize model card for Controlnet SDXL ( #6908 )
...
controlnet-sdxl
2024-02-09 07:53:39 +05:30
camaro
a83cc0c0bc
Standardize model card for Controlnet flax ( #6909 )
...
* controlnet-flax
* style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-09 07:52:56 +05:30
C Q
db5194a45d
Fix Compatibility Issues in stable_diffusion_xl_reference.py ( #6251 )
...
* Fix Compatibility Issues in stable_diffusion_xl_reference.py
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-02-08 10:52:59 -10:00
shaoxiaowang
e6c9c2513f
fix examples/community/pipeline_stable_diffusion_xl_instantid.py ( #6759 )
...
Co-authored-by: wangshaoxiao <wangshaoxiao@xiaomi.com >
2024-02-08 10:09:40 -10:00
Michael
f5c9be3a0a
Remove <cat-toy> validation prompt from examples/textual_inversion/textual_inversion_sdxl.py ( #6877 )
...
Remove <cat-toy> validation prompt from textual_inversion_sdxl.py
The `<cat-toy>` validation prompt is a default choice for the example task in the README. But no other part of `textual_inversion_sdxl.py` references the cat toy and `textual_inversion.py` has a default validation prompt of `None` as well.
So bring `textual_inversion_sdxl.py` in line with `textual_inversion.py` and change default validation prompt to `None`
2024-02-08 09:46:06 -10:00
Sayak Paul
30e5e81d58
change to 2024 in the license ( #6902 )
...
change to 2024
2024-02-08 08:19:31 -10:00
Srimanth Agastyaraju
a11b0f83b7
Fix: training resume from fp16 for SDXL Consistency Distillation ( #6840 )
...
* Fix: training resume from fp16 for lcm distill lora sdxl
* Fix coding quality - run linter
* Fix 1 - shift mixed precision cast before optimizer
* Fix 2 - State dict errors by removing load_lora_into_unet
* Update train_lcm_distill_lora_sdxl.py - Revert default cache dir to None
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-08 11:09:29 +05:30
camaro
4a3d52850b
fix: keyword argument mismatch ( #6895 )
2024-02-08 09:37:56 +05:30
Sayak Paul
76696dca55
[Model Card] standardize dreambooth model card ( #6729 )
...
* feat: standarize model card creation for dreambooth training.
* correct 'inference
* remove comments.
* take component out of kwargs
* style
* add: card template to have a leaner description.
* widget support.
* propagate changes to train_dreambooth_lora
* propagate changes to custom diffusion
* make widget properly type-annotated
2024-02-07 15:07:11 +05:30
YiYi Xu
a5fc62f819
add self.use_ada_layer_norm_* params back to BasicTransformerBlock ( #6841 )
...
fix sd reference community ppeline
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2024-02-04 11:16:44 -10:00
Linoy Tsaban
fbdf26bac5
[dreambooth lora sdxl] add sdxl micro conditioning ( #6795 )
...
* add micro conditioning
* remove redundant lines
* style
* fix missing 's'
* fix missing shape bug due to missing RGB if statement
* remove redundant if, change arg order
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-04 16:00:09 +02:00
Fabio Rigano
13001ee315
Bugfix in IPAdapterFaceID ( #6835 )
2024-02-03 08:56:55 -10:00
Linoy Tsaban
65329aed98
[advanced dreambooth lora sdxl script] new features + bug fixes ( #6691 )
...
* add noise_offset param
* micro conditioning - wip
* image processing adjusted and moved to support micro conditioning
* change time ids to be computed inside train loop
* change time ids to be computed inside train loop
* change time ids to be computed inside train loop
* time ids shape fix
* move token replacement of validation prompt to the same section of instance prompt and class prompt
* add offset noise to sd15 advanced script
* fix token loading during validation
* fix token loading during validation in sdxl script
* a little clean
* style
* a little clean
* style
* sdxl script - a little clean + minor path fix
sd 1.5 script - change default resolution value
* ad 1.5 script - minor path fix
* fix missing comma in code example in model card
* clean up commented lines
* style
* remove time ids computed outside training loop - no longer used now that we utilize micro-conditioning, as all time ids are now computed inside the training loop
* style
* [WIP] - added draft readme, building off of examples/dreambooth/README.md
* readme
* readme
* readme
* readme
* readme
* readme
* readme
* readme
* removed --crops_coords_top_left from CLI args
* style
* fix missing shape bug due to missing RGB if statement
* add blog mention at the start of the reamde as well
* Update examples/advanced_diffusion_training/README.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* change note to render nicely as well
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-02-03 17:33:43 +02:00
Younes Belkada
15ed53d272
Fixes LoRA SDXL training script with DDP + PEFT ( #6816 )
...
Update train_dreambooth_lora_sdxl.py
2024-02-03 09:46:32 +05:30
Kashif Rasul
97ee616971
add ipo, hinge and cpo loss to dpo trainer ( #6788 )
...
add ipo and hinge loss to dpo trainer
2024-01-31 16:41:31 +05:30
Viet Nguyen
1cab64b3be
Update train_diffusion_dpo.py ( #6754 )
...
* Update train_diffusion_dpo.py
Address #6702
* Update train_diffusion_dpo_sdxl.py
* Empty-Commit
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-01-31 12:46:23 +05:30
Sajad Norouzi
058b47553e
Fix mixed precision fine-tuning for text-to-image-lora-sdxl example. ( #6751 )
...
* Fix mixed precision fine-tuning for text-to-image-lora-sdxl example.
* fix text_encoder_two bug.
---------
Co-authored-by: Sajad Norouzi <sajadn@dev-dsk-sajadn-2a-87239470.us-west-2.amazon.com >
2024-01-30 06:55:02 +05:30
Sayak Paul
acd1962769
correct hflip arg ( #6743 )
2024-01-28 17:42:34 +05:30
Yingtian Liu
c101066227
Correct SNR weighted loss in v-prediction case by only adding 1 to SNR on the denominator ( #6307 )
...
* fix minsnr implementation for v-prediction case
* format code
* always compute snr when snr_gamma is specified
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-01-27 09:18:09 +05:30
dg845
ea9dc3fa90
Add UFOGenScheduler to Community Examples ( #6650 )
...
* Add UFOGenScheduler with diffusers imports changed from relative to absolute.
* make style
* Add community README entry for UFOGenScheduler.
2024-01-26 15:11:14 +02:00