Sayak Paul
c697c5ab57
improve controlnet sdxl docs now that we have a good checkpoint. ( #4556 )
2023-08-10 08:21:36 +05:30
VV-A-VV
3fd45eb10f
fix some typo error ( #4546 )
...
* fix some typo error
* Undo changes to capitalization
2023-08-10 06:49:25 +05:30
Patrick von Platen
5cbcbe3c63
Revert "introduce minimalistic reimplementation of SDXL on the SDXL doc" ( #4548 )
...
Revert "introduce minimalistic reimplementation of SDXL on the SDXL doc (#4532 )"
This reverts commit e7e3749498 .
2023-08-10 06:49:06 +05:30
Dhruv Nair
7b07f9812a
Move controlnet load local tests to nightly ( #4543 )
...
move controlnet load local tests to nihghtly
2023-08-09 23:00:42 +05:30
Steven Liu
16ad13b61d
[docs] Clean scheduler api ( #4204 )
...
* clean scheduler mixin
* up to dpmsolvermultistep
* finish cleaning
* first draft
* fix overview table
* apply feedback
* update reference code
2023-08-09 09:00:35 -07:00
Dhruv Nair
da0e2fce38
pin ruff version for quality checks ( #4539 )
...
* pin ruff version for quality checks
* update dependency versions table
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-08-09 16:46:45 +05:30
Dhruv Nair
a67ff32301
Move slow tests to nightly ( #4526 )
...
* move slow pix2pixzero tests to nightly
* move slow panorama tests to nightly
* move txt2video full test to nightly
* clean up
* remove nightly test from text to video pipeline
2023-08-09 12:38:15 +02:00
jere357
3c1b4933bd
Changed code that converts tensors to PIL images in the write_your_own_pipeline notebook ( #4489 )
...
changed code that converts tensors to PIL images
2023-08-09 15:00:51 +05:30
Sayak Paul
e731ae0ec8
Update README_sdxl.md to include the free-tier Colab Notebook ( #4540 )
...
Update README_sdxl.md
2023-08-09 14:32:14 +05:30
Rastislav Švarba
6c5b5b260e
Fix push_to_hub in train_text_to_image_lora_sdxl.py example ( #4535 )
...
fix: push_to_hub in train text2image lora sdxl
2023-08-09 11:48:24 +05:30
Simo Ryu
e7e3749498
introduce minimalistic reimplementation of SDXL on the SDXL doc ( #4532 )
...
minsdxl
2023-08-09 07:33:07 +05:30
Wooyeol Baek
c7c0b57541
Copy lora functions to XLPipelines ( #4512 )
...
* add load_lora_weights and save_lora_weights to StableDiffusionXLImg2ImgPipeline
* add load_lora_weights and save_lora_weights to StableDiffusionXLInpaintPipeline
* apply black format
* apply black format
* add copy statement
* fix statements
* fix statements
* fix statements
* run `make fix-copies`
2023-08-08 18:53:22 +05:30
Dhruv Nair
c91272d631
fix indexing issue in sd reference pipeline ( #4531 )
2023-08-08 15:14:19 +02:00
George He
f0725c5845
Fix misc typos ( #4479 )
...
Fix typos
2023-08-07 17:21:19 -07:00
YiYi Xu
aef11cbf66
add pipeline_class_name argument to Stable Diffusion conversion script ( #4461 )
...
* add pipeline class
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* style
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-08-07 06:44:31 -10:00
Dhruv Nair
71c8224159
Moving certain pipelines slow tests to nightly ( #4469 )
...
* move audioldm tests to nightly
* move kandinsky im2img ddpm test to nightly
* move flax dpm test to nightly
* move diffedit dpm test to nightly
* move fp16 slow tests to nightly
2023-08-07 17:28:56 +02:00
Patrick von Platen
4367b8a300
move pipeline only when running validation ( #4515 )
2023-08-07 17:20:18 +02:00
ethansmith2000
f4f854138d
grad checkpointing ( #4474 )
...
* grad checkpointing
* fix make fix-copies
* fix
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-08-07 15:26:54 +02:00
Patrick von Platen
e1b5b8ba13
Make sure fp16-fix is used as default ( #4510 )
...
* Make sue fp16-fix is used as default
* fix vae
* finish
* fix
2023-08-07 15:16:37 +02:00
Patrick von Platen
dff5ff35a9
[SDXL LoRA] fix batch size lora ( #4509 )
...
fix batch size lora
2023-08-07 13:27:13 +02:00
Sayak Paul
b2456717e6
Update lora.md to clarify SDXL support ( #4503 )
...
* Update lora.md
* Update lora.md
2023-08-07 11:06:30 +05:30
Vladislav Artemyev
2e69cf16fe
Log global_step instead of epoch to tensorboard ( #4493 )
...
Co-authored-by: mrlzla <noname@noname.com >
2023-08-07 07:49:39 +05:30
takuoko
9c29bc2df8
[Examples] Support train_text_to_image_lora_sdxl.py ( #4365 )
...
* add train_text_to_image_lora_sdxl.py
* add train_text_to_image_lora_sdxl.py
* add test and minor fix
* Update examples/text_to_image/README_sdxl.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* fix unwrap_model rule
* add invisible-watermark in requirements
* del invisible-watermark
* Update examples/text_to_image/README_sdxl.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update examples/text_to_image/README_sdxl.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update examples/text_to_image/train_text_to_image_lora_sdxl.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* del comment & update readme
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-08-06 13:47:20 +05:30
AisingioroHao
70d098540d
Add a data_dir parameter to the load_dataset method. ( #4482 )
...
Co-authored-by: AisingioroHao0 <1286098622@qq.com >
2023-08-06 08:45:48 +05:30
Patrick von Platen
ea1fcc28a4
[SDXL] Allow SDXL LoRA to be run with less than 16GB of VRAM ( #4470 )
...
* correct
* correct blocks
* finish
* finish
* finish
* Apply suggestions from code review
* fix
* up
* up
* up
* Update examples/dreambooth/README_sdxl.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Apply suggestions from code review
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-08-04 20:06:38 +02:00
Patrick von Platen
66de221409
Update README_sdxl.md ( #4472 )
2023-08-04 16:23:35 +02:00
Sayak Paul
06f73bd6d1
[Tests] Adds integration tests for SDXL LoRAs ( #4462 )
...
* add: integration tests for SDXL LoRAs.
* change pipeline class.
* fix assertion values.
* print values again.
* let's see.
* let's see.
* let's see.
* finish
2023-08-04 16:25:53 +05:30
asfiyab-nvidia
c14c141b86
TensorRT Inpaint pipeline: minor fixes ( #4457 )
...
Signed-off-by: Asfiya Baig <asfiyab@nvidia.com >
2023-08-04 12:28:28 +02:00
manosplitsis
79ef9e528c
Fixed multi-token textual inversion training ( #4452 )
...
* added placeholder token concatenation during training
* Update examples/textual_inversion/textual_inversion.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-08-04 12:21:31 +02:00
Dhruv Nair
801a5e2199
Cleanup Pass on flaky slow tests for Stable Diffusion ( #4455 )
...
* lower num inference steps and precision checkk
* fix flaky inpaint tests
* remove unsued imports
* set unet default attn processor
2023-08-04 10:24:56 +02:00
YiYi Xu
1edd0debaa
fix-format ( #4458 )
...
make style
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2023-08-03 20:34:37 -07:00
YiYi Xu
29ece0db79
a few fix for kandinsky combined pipeline ( #4352 )
...
* add xformer
* enable_sequential_cpu_offload
* style
* Update src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-08-03 15:10:41 -10:00
Patrick von Platen
1a8843f93e
add sdxl to prompt weighting ( #4439 )
...
* add sdxl to prompt weighting
* Update docs/source/en/using-diffusers/weighted_prompts.md
* Update docs/source/en/using-diffusers/weighted_prompts.md
* add sdxl to prompt weighting
* Apply suggestions from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Apply suggestions from code review
* Update docs/source/en/using-diffusers/weighted_prompts.md
* Apply suggestions from code review
* correct
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-08-03 21:41:48 +02:00
JinK
e391b789ac
Support different strength for Stable Diffusion TensorRT Inpainting pipeline ( #4216 )
...
* Support different strength
* run make style
2023-08-03 21:32:44 +02:00
VV-A-VV
d0b8de1262
Delete the duplicate code for the contolnet img 2 img ( #4411 )
...
delete the duplicated code from the controlnet-img-2-img pipelines
2023-08-03 20:32:03 +02:00
Yuyang Zhao
b9058754c5
Fix bug caused by typo ( #4357 )
...
Fix the typo that causes `omegaconf.errors.ConfigAttributeError: Missing key parms`
2023-08-03 20:27:42 +02:00
Alan Ji
777becda6b
fix typo to ensure make test-examples work correctly ( #4329 )
...
fix typo to ensure `make test-examples` work correctly
2023-08-03 20:17:48 +02:00
cmdr2
380bfd82c1
Allow controlnets to be loaded (from ckpt) in a parallel thread with a SD model (ckpt), and speed it up slightly ( #4298 )
...
Faster controlnet model instantiation, and allow controlnets to be loaded (from ckpt) in a parallel thread with a SD model (ckpt) without tensor errors (race condition)
2023-08-03 20:11:13 +02:00
Steven Liu
5989a85edb
[docs] Distilled SD ( #4442 )
...
* first draft
* add blog link
2023-08-03 11:03:42 -07:00
Levi McCallum
4188f3063a
Add rank argument to train_dreambooth_lora_sdxl.py ( #4343 )
...
* Add rank argument to train_dreambooth_lora_sdxl.py
* Update train_dreambooth_lora_sdxl.py
2023-08-03 23:27:30 +05:30
George He
0b4430e840
Fix typerror in pipeline handling for MultiControlNets which only contain a single ControlNet ( #4454 )
...
* Handle single controlnet in multicontrolnet
* Fix formatting
2023-08-03 17:37:07 +02:00
Patrick von Platen
a74c995e7d
make style
2023-08-03 14:45:06 +00:00
Neil Wang
85aa673bec
auto type conversion ( #4270 )
...
* type conversion
Default value of `control_guidance_start` and `control_guidance_end` in `StableDiffusionControlNetPipeline.check_inputs` causes `TypeError: object of type 'float' has no len()`
Proposed fix:
Convert `control_guidance_start` and `control_guidance_end` to list if float
* Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py
* Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-08-03 16:44:48 +02:00
Dhruv Nair
1d2587bb34
move tests to nightly ( #4451 )
...
* move tests to nightly
* clean up code quality issues
* more clean up
2023-08-03 15:25:28 +02:00
Patrick von Platen
372b58108e
fix make style
2023-08-03 10:17:00 +00:00
w4ffl35
45171174b8
Prevent online access when desired when using download_from_original_stable_diffusion_ckpt ( #4271 )
...
Prevent online access when desired
- Bypass requests with config files option added to download_from_original_stable_diffusion_ckpt
- Adds local_files_only flags to all from_pretrained requests
2023-08-03 12:16:41 +02:00
cmdr2
4c4fe042a7
Accept pooled_prompt_embeds in the SDXL Controlnet pipeline. Fixes an error if prompt_embeds are passed. ( #4309 )
...
* Accept pooled_prompt_embeds in the SDXL Controlnet pipeline. Fixes an error if prompt_embeds are passed.
* Add a test for pooled prompt embeds
2023-08-03 13:05:19 +05:30
Will Berman
47bf8e566c
can call encode_prompt with out setting a text encoder instance variable ( #4396 )
...
* can call encode_prompt with out setting a text encoder instance variable
* fix
2023-08-02 21:25:30 -07:00
Sayak Paul
18fc40c169
[Feat] add tiny Autoencoder for (almost) instant decoding ( #4384 )
...
* add: model implementation of tiny autoencoder.
* add: inits.
* push the latest devs.
* add: conversion script and finish.
* add: scaling factor args.
* debugging
* fix denormalization.
* fix: positional argument.
* handle use_torch_2_0_or_xformers.
* handle post_quant_conv
* handle dtype
* fix: sdxl image processor for tiny ae.
* fix: sdxl image processor for tiny ae.
* unify upcasting logic.
* copied from madness.
* remove trailing whitespace.
* set is_tiny_vae = False
* address PR comments.
* change to AutoencoderTiny
* make act_fn an str throughout
* fix: apply_forward_hook decorator call
* get rid of the special is_tiny_vae flag.
* directly scale the output.
* fix dummies?
* fix: act_fn.
* get rid of the Clamp() layer.
* bring back copied from.
* movement of the blocks to appropriate modules.
* add: docstrings to AutoencoderTiny
* add: documentation.
* changes to the conversion script.
* add doc entry.
* settle tests.
* style
* add one slow test.
* fix
* fix 2
* fix 2
* fix: 4
* fix: 5
* finish integration tests
* Apply suggestions from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* style
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2023-08-02 23:58:05 +05:30
Xin Kong
615c04db15
[Pipelines] Add community pipeline for Zero123 ( #4295 )
...
* add zero123 pipeline to community
* add community doc
* reformat
* update zero123 pipeline, including cc_projection within diffusers; add convert ckpt scripts; support diffusers weights
2023-08-02 19:36:49 +02:00