YiYi Xu
3b9b98656e
Fix a bug in add_noise function ( #6085 )
...
* fix
* copies
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2023-12-07 11:35:28 -10:00
Fabio Rigano
b65928b556
Add support for IPAdapterFull ( #5911 )
...
* Add support for IPAdapterFull
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-12-07 06:40:39 -10:00
Beinsezii
6bf1ca2c79
EulerDiscreteScheduler add rescale_betas_zero_snr ( #6024 )
...
* EulerDiscreteScheduler add `rescale_betas_zero_snr`
2023-12-06 21:51:04 -10:00
Aryan V S
978dec9014
[Community] AnimateDiff + Controlnet Pipeline ( #5928 )
...
* begin work on animatediff + controlnet pipeline
* complete todos, uncomment multicontrolnet, input checks
Co-Authored-By: EdoardoBotta <botta.edoardo@gmail.com >
* update
Co-Authored-By: EdoardoBotta <botta.edoardo@gmail.com >
* add example
* update community README
* Update examples/community/README.md
---------
Co-authored-by: EdoardoBotta <botta.edoardo@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-12-06 21:01:41 -10:00
Dhruv Nair
79a7ab92d1
Fix clearing backend cache from device agnostic testing ( #6075 )
...
update
2023-12-07 11:18:31 +05:30
Younes Belkada
c2717317f0
[PEFT] Adapt example scripts to use PEFT ( #5388 )
...
* adapt example scripts to use PEFT
* Update examples/text_to_image/train_text_to_image_lora.py
* fix
* add for SDXL
* oops
* make sure to install peft
* fix
* fix
* fix dreambooth and lora
* more fixes
* add peft to requirements.txt
* fix
* final fix
* add peft version in requirements
* remove comment
* change variable names
* add few lines in readme
* add to reqs
* style
* fix issues
* fix lora dreambooth xl tests
* init_lora_weights to gaussian and add out proj where missing
* ammend requirements.
* ammend requirements.txt
* add correct peft versions
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-12-07 09:39:29 +05:30
Ian
bf7f9b49a2
Fix typing inconsistency in Euler discrete scheduler ( #6052 )
2023-12-06 23:45:16 +01:00
UmerHA
e192ae08d3
Add ControlNet-XS support ( #5827 )
...
* Check in 23-10-05
* check-in 23-10-06
* check-in 23-10-07 2pm
* check-in 23-10-08
* check-in 231009T1200
* check-in 230109
* checkin 231010
* init + forward run
* checkin
* checkin
* ControlNetXSModel is now saveable+loadable
* Forward works
* checkin
* Pipeline works with `no_control=True`
* checkin
* debug: save intermediate outputs of resnet
* checkin
* Understood time error + fixed connection error
* checkin
* checkin 231106T1600
* turned off detailled debug prints
* time debug logs
* small fix
* Separated control_scale for connections/time
* simplified debug logging
* Full denoising works with control scale = 0
* aligned logs
* Added control_attention_head_dim param
* Passing n_heads instead of dim_head into ctrl unet
* Fixed ctrl midblock bug
* Cleanup
* Fixed time dtype bug
* checkin
* 1. from_unet, 2. base passed, 3. all unet params
* checkin
* Finished docstrings
* cleanup
* make style
* checkin
* more tests pass
* Fixed tests
* removed debug logs
* make style + quality
* make fix-copies
* fixed documentation
* added cnxs to doc toc
* added control start/end param
* Update controlnetxs_sdxl.md
* tried to fix copies..
* Fixed norm_num_groups in from_unet
* added sdxl-depth test
* created SD2.1 controlnet-xs pipeline
* re-added debug logs
* Adjusting group norm ; readded logs
* Added debug log statements
* removed debug logs ; started tests for sd2.1
* updated sd21 tests
* fixed tests
* fixed tests
* slightly increased error tolerance for 1 test
* make style & quality
* Added docs for CNXS-SD
* make fix-copies
* Fixed sd compile test ; fixed gradient ckpointing
* vae downs = cnxs conditioning downs; removed guess
* make style & quality
* Fixed tests
* fixed test
* Incorporated review feedback
* simplified control model surgery
* fixed tests & make style / quality
* Updated docs; deleted pip & cursor files
* Rolled back minimal change to resnet
* Update resnet.py
* Update resnet.py
* Update src/diffusers/models/controlnetxs.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update src/diffusers/models/controlnetxs.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Incorporated review feedback
* Update docs/source/en/api/pipelines/controlnetxs_sdxl.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/controlnetxs.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/controlnetxs.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/controlnetxs.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update src/diffusers/models/controlnetxs.py
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update src/diffusers/models/controlnetxs.py
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs.py
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/controlnetxs.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs_sd_xl.py
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Incorporated doc feedback
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2023-12-06 23:33:47 +01:00
Steven Liu
87a09d66f3
[docs] SDXL Turbo ( #6065 )
...
api docs
2023-12-06 14:33:14 -08:00
Lucain
75ada25048
Harmonize HF environment variables + deprecate use_auth_token ( #6066 )
...
* Harmonize HF environment variables + deprecate use_auth_token
* fix import
* fix
2023-12-06 22:22:31 +01:00
Patrick von Platen
2243a59483
[Euler Discrete] Fix sigma ( #6078 )
...
* [Euler Discrete] Fix sigma
* make style
2023-12-06 19:59:38 +01:00
apolinário
466d32c442
[Advanced Diffusion Training] Cache latents to avoid VAE passes for every training step ( #6076 )
...
* add cache latents
* style
2023-12-06 14:46:53 +01:00
Dhruv Nair
20ba1fdbbd
Disable Tests Fetcher ( #6060 )
...
update
2023-12-06 18:10:11 +05:30
Pedro Cuenca
ab6672fecd
Use CC12M for LCM WDS training example ( #5908 )
...
* Fix SD scripts - there are only 2 items per batch
* Adjustments to make the SDXL scripts work with other datasets
* Use public webdataset dataset for examples
* make style
* Minor tweaks to the readmes.
* Stress that the database is illustrative.
2023-12-06 10:35:36 +01:00
Dhruv Nair
f90a5139a2
fix
2023-12-06 06:03:58 +00:00
Sayak Paul
a2bc2e14b9
[feat] allow SDXL pipeline to run with fused QKV projections ( #6030 )
...
* debug
* from step
* print
* turn sigma a list
* make str
* init_noise_sigma
* comment
* remove prints
* feat: introduce fused projections
* change to a better name
* no grad
* device.
* device
* dtype
* okay
* print
* more print
* fix: unbind -> split
* fix: qkv >-> k
* enable disable
* apply attention processor within the method
* attn processors
* _enable_fused_qkv_projections
* remove print
* add fused projection to vae
* add todos.
* add: documentation and cleanups.
* add: test for qkv projection fusion.
* relax assertions.
* relax further
* fix: docs
* fix-copies
* correct error message.
* Empty-Commit
* better conditioning on disable_fused_qkv_projections
* check
* check processor
* bfloat16 computation.
* check latent dtype
* style
* remove copy temporarily
* cast latent to bfloat16
* fix: vae -> self.vae
* remove print.
* add _change_to_group_norm_32
* comment out stuff that didn't work
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* reflect patrick's suggestions.
* fix imports
* fix: disable call.
* fix more
* fix device and dtype
* fix conditions.
* fix more
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-12-06 07:33:26 +05:30
Arsalan
f427345ab1
Device agnostic testing ( #5612 )
...
* utils and test modifications to enable device agnostic testing
* device for manual seed in unet1d
* fix generator condition in vae test
* consistency changes to testing
* make style
* add device agnostic testing changes to source and one model test
* make dtype check fns private, log cuda fp16 case
* remove dtype checks from import utils, move to testing_utils
* adding tests for most model classes and one pipeline
* fix vae import
2023-12-05 19:04:13 +05:30
apolinário
6e221334cd
[advanced_dreambooth_lora_sdxl_tranining_script] save embeddings locally fix ( #6058 )
...
* Update train_dreambooth_lora_sdxl_advanced.py
* remove global function args from dreamboothdataset class
* style
* style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-12-05 13:52:34 +01:00
Patrick von Platen
53bc30dd45
[From single file] remove depr warning ( #6043 )
2023-12-05 18:12:25 +05:30
Radamés Ajna
eacf5e34eb
Fix demofusion ( #6049 )
...
* Update pipeline_demofusion_sdxl.py
* Update README.md
2023-12-05 18:10:46 +05:30
Dhruv Nair
4c05f7856a
Ldm unet convert fix ( #6038 )
...
* fix
* fix ldm conversion
* fix linting
2023-12-05 18:01:02 +05:30
Dhruv Nair
bbd3572044
Pin Ruff Version ( #6059 )
...
pinn ruff
2023-12-05 17:51:37 +05:30
Dhruv Nair
f948778322
Move kandinsky convert script ( #6047 )
...
move kandinsky convert script
2023-12-05 15:12:37 +05:30
Steven Liu
4684ea2fe8
[docs] #Copied from mechanism ( #6007 )
...
* copied from section
* feedback
2023-12-04 10:12:52 -08:00
Steven Liu
b64f835ea7
[docs] Add Kandinsky 3 ( #5988 )
...
* add
* fix api docs
* edits
2023-12-04 10:11:15 -08:00
Linoy Tsaban
880c0fdd36
[advanced dreambooth lora training script][bug_fix] change token_abstraction type to str ( #6040 )
...
* improve help tags
* style fix
* changes token_abstraction type to string.
support multiple concepts for pivotal using a comma separated string.
* style fixup
* changed logger to warning (not yet available)
* moved the token_abstraction parsing to be in the same block as where we create the mapping of identifier to token
---------
Co-authored-by: Linoy <linoy@huggingface.co >
2023-12-04 18:38:44 +01:00
RuoyiDu
c36f1c3160
[Community Pipeline] DemoFusion: Democratising High-Resolution Image Generation With No $$$ ( #6022 )
...
* Add files via upload
* Update README.md
* Update pipeline_demofusion_sdxl.py
* Update pipeline_demofusion_sdxl.py
* Update examples/community/README.md
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-12-04 19:44:57 +05:30
takuoko
0a08d41961
[Feature] Support IP-Adapter Plus ( #5915 )
...
* Support IP-Adapter Plus
* fix format
* restore before black format
* restore before black format
* generic
* Refactor PerceiverAttention
* format
* fix test and refactor PerceiverAttention
* generic encode_image
* keep attention implementation
* merge tests
* encode_image backward compatible
* code quality
* fix controlnet inpaint pipeline
* refactor FFN
* refactor FFN
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2023-12-04 12:43:34 +01:00
Levi McCallum
e185084a5d
Add variant argument to dreambooth lora sdxl advanced ( #6021 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-12-04 12:04:15 +01:00
Dhruv Nair
b21729225a
Update Tests Fetcher ( #5950 )
...
* update setup and deps table
* update
* update
* update
* up
* up
* update
* up
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* quality fix
* fix failure reporting
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-12-04 12:59:41 +05:30
Parth38
8a812e4e14
Update value_guided_sampling.py ( #6027 )
...
* Update value_guided_sampling.py
Changed the scheduler step function as predict_epsilon parameter is not there in latest DDPM Scheduler
* Update value_guided_sampling.md
Updated a link to a working notebook
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-12-04 10:36:25 +05:30
gujing
bf92e746c0
fix StableDiffusionTensorRT super args error ( #6009 )
2023-12-04 10:06:23 +05:30
Linoy Tsaban
b785a155d6
[advanced dreambooth lora sdxl training script] improve help tags ( #6035 )
...
* improve help tags
* style fix
---------
Co-authored-by: Linoy <linoy@huggingface.co >
2023-12-04 09:41:25 +05:30
Sayak Paul
d486f0e846
[LoRA serialization] fix: duplicate unet prefix problem. ( #5991 )
...
* fix: duplicate unet prefix problem.
* Update src/diffusers/loaders/lora.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-12-02 21:35:16 +05:30
Sayak Paul
3351270627
[PixArt Tests] remove fast tests from slow suite ( #5945 )
...
remove fast tests from slow suite
2023-12-02 20:58:27 +05:30
Junsong Chen
4520e1221a
adapt PixArtAlphaPipeline for pixart-lcm model ( #5974 )
...
* adapt PixArtAlphaPipeline for pixart-lcm model
* remove original_inference_steps from __call__
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2023-12-02 13:30:40 +05:30
Long(Tony) Lian
618260409f
LLMGroundedDiffusionPipeline: inherit from DiffusionPipeline and fix peft ( #6023 )
...
* LLMGroundedDiffusionPipeline: inherit from DiffusionPipeline and fix peft
* Use main in the revision in the examples
* Add "Copied from" statements in comments
* Fix formatting with ruff
2023-12-01 09:58:25 -10:00
Patrick von Platen
dadd55fb36
Post Release: v0.24.0 ( #5985 )
...
* Post Release: v0.24.0
* post pone deprecation
* post pone deprecation
* Add model_index.json
2023-12-01 18:43:44 +01:00
YiYi Xu
1b6c7ea74e
[schedulers] create self.sigmas during __init__ ( #6006 )
...
* fix dpm
* all scheulers
2023-12-01 07:15:37 -10:00
YiYi Xu
b41f809a4e
[Kandinsky 3.0] Follow-up TODOs ( #5944 )
...
clean-up kendinsky 3.0
2023-12-01 07:14:22 -10:00
Patrick von Platen
0f55c17e17
fix style
2023-12-01 15:59:34 +00:00
Charchit Sharma
5058d27f12
added attention_head_dim, attention_type, resolution_idx ( #6011 )
2023-12-01 16:26:58 +01:00
M. Tolga Cangöz
748c1b3ec7
[Docs] Update a link ( #6014 )
...
* Update the location of Python's version
* Trim trailing whitespace
2023-12-01 16:26:25 +01:00
M. Tolga Cangöz
523507034f
[logging] Fix assertion bug ( #6012 )
...
Fix assertion bug
2023-12-01 16:26:04 +01:00
hako-mikan
46c751e970
[Community Pipeline] Regional Prompting Pipeline ( #6015 )
...
* Update README.md
* Update README.md
* Add files via upload
* Update README.md
* Update examples/community/README.md
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-12-01 16:22:59 +01:00
Patrick von Platen
bc1d28c888
[From Single File] Allow Text Encoder to be passed ( #6020 )
...
Allow text encoder to be passed
2023-12-01 16:19:04 +01:00
Sayak Paul
af378c1dd1
[Easy] minor edits to setup.py ( #5996 )
...
minor edits to setup
2023-12-01 20:38:46 +05:30
Steven Liu
6ba4c5395f
[docs] Fix SVD video ( #6004 )
...
Update svd.md
2023-12-01 16:07:47 +01:00
Linoy Tsaban
c1e4529541
[advanced_dreambooth_lora_sdxl_tranining_script] readme fix ( #6019 )
...
readme
2023-12-01 15:14:57 +01:00
Linoy Tsaban
d29d97b616
[examples/advanced_diffusion_training] bug fixes and improvements for LoRA Dreambooth SDXL advanced training script ( #5935 )
...
* imports and readme bug fixes
* bug fix - ensures text_encoder params are dtype==float32 (when using pivotal tuning) even if the rest of the model is loaded in fp16
* added pivotal tuning to readme
* mapping token identifier to new inserted token in validation prompt (if used)
* correct default value of --train_text_encoder_frac
* change default value of --adam_weight_decay_text_encoder
* validation prompt generations when using pivotal tuning bug fix
* style fix
* textual inversion embeddings name change
* style fix
* bug fix - stopping text encoder optimization halfway
* readme - will include token abstraction and new inserted tokens when using pivotal tuning
- added type to --num_new_tokens_per_abstraction
* style fix
---------
Co-authored-by: Linoy Tsaban <linoy@huggingface.co >
2023-12-01 14:18:43 +01:00