Sayak Paul
0cbc78f04c
[Modeling utils chore] import load_model_dict_into_meta only once ( #7437 )
...
import load_model_dict_into_meta only once
2024-03-28 13:01:53 +05:30
Thomas Liang
0cc5630945
[Chore] Fix Colab notebook links in README.md ( #7495 )
2024-03-27 12:36:36 -10:00
UmerHA
0b8e29289d
Skip test_lora_fuse_nan on mps ( #7481 )
...
Skipping test_lora_fuse_nan on mps
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-27 14:35:59 +05:30
Sayak Paul
ab38ddf64f
[chore] make the istructions on fetching all commits clearer. ( #7474 )
...
* make the istructions on fetching all commits clearer.
* Update setup.py
Co-authored-by: YiYi Xu <yixu310@gmail.com >
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-03-27 08:16:46 +05:30
YiYi Xu
ead82fedea
fix torch.compile for multi-controlnet of sdxl inpaint ( #7476 )
...
fix
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-27 08:08:32 +05:30
Disty0
45b42d1203
Add device arg to offloading with combined pipelines ( #7471 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-26 13:45:16 -10:00
Long(Tony) Lian
5199ee4f7b
Fix missing raise statements in check_inputs ( #7473 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-26 13:34:28 -10:00
Bagheera
544710ef0f
diffusers#7426 fix stable diffusion xl inference on MPS when dtypes shift unexpectedly due to pytorch bugs ( #7446 )
...
* mps: fix XL pipeline inference at training time due to upstream pytorch bug
* Update src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* apply the safe-guarding logic elsewhere.
---------
Co-authored-by: bghira <bghira@users.github.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-26 20:05:49 +05:30
M. Tolga Cangöz
443aa14e41
Fix Tiling in ConsistencyDecoderVAE ( #7290 )
...
* Fix typos
* Add docstring to `decode` method in `ConsistencyDecoderVAE`
* Fix tiling
* Enable tiled VAE decoding with customizable tile sample size and overlap factor
* Revert "Enable tiled VAE decoding with customizable tile sample size and overlap factor"
This reverts commit 181049675e .
* Add VAE tiling test for `ConsistencyDecoderVAE`
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-26 17:59:08 +05:30
Sayak Paul
288632adf6
[Training utils] add kohya conversion dict. ( #7435 )
...
* add kohya conversion dict.
* update readme
* typo
* add filename
2024-03-26 17:31:22 +05:30
Ernie Chu
5ce79cbded
Update train_dreambooth_lora_sd15_advanced.py ( #7433 )
...
you cannot specify `type="bool"` and `action="store_true"` at the same time.
remove excessive and buggy `type=bool`.
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com >
2024-03-26 12:53:02 +02:00
Marçal Comajoan Cara
d52f3e30f8
Fix broken link ( #7472 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-26 10:29:08 +05:30
Sayak Paul
699dfb084c
feat: support DoRA LoRA from community ( #7371 )
...
* feat: support dora loras from community
* safe-guard dora operations under peft version.
* pop use_dora when False
* make dora lora from kohya work.
* fix: kohya conversion utils.
* add a fast test for DoRA compatibility..
* add a nightly test.
2024-03-26 09:37:33 +05:30
Sayak Paul
484c8ef399
[tests] skip dynamo tests when python is 3.12. ( #7458 )
...
skip dynamo tests when python is 3.12.
2024-03-26 08:39:48 +05:30
estelleafl
0dd0528851
Small ldm3d fix ( #7464 )
...
* fixed typo
* updated doc to be consistent in naming
* make style/quality
* preprocessing for 4 channels and not 6
* make style
* test for 4c
* make style/quality
* fixed test on cpu
* fixed doc typo
* changed default ckpt to 4c
* Update pipeline_stable_diffusion_ldm3d.py
* fix bug
---------
Co-authored-by: Aflalo <estellea@isl-iam1.rr.intel.com >
Co-authored-by: Aflalo <estellea@isl-gpu33.rr.intel.com >
Co-authored-by: Aflalo <estellea@isl-gpu38.rr.intel.com >
2024-03-25 15:33:43 -10:00
UmerHA
1cd4732e7f
Fixed minor error in test_lora_layers_peft.py ( #7394 )
...
* Update test_lora_layers_peft.py
* Update utils.py
2024-03-25 11:35:27 -10:00
M. Tolga Cangöz
a51b6cc86a
[Docs] Fix typos ( #7451 )
...
* Fix typos
* Fix typos
* Fix typos
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-25 11:48:02 -07:00
Dhruv Nair
3bce0f3da1
Fix for str_to_bool definition in testing utils ( #7461 )
...
update
2024-03-25 13:33:09 +05:30
Dhruv Nair
9a34953823
Additional Memory clean up for slow tests ( #7436 )
...
* update
* update
* update
2024-03-25 12:19:21 +05:30
Sayak Paul
e29f16cfaa
[Research Projects] ORPO diffusion for alignment ( #7423 )
...
* barebones orpo
* remove reference model.
* full implementation
* change default of beta_orpo
* add a training command.
* fix: dataloading issues.
* interpreting the formulation.
* revert styling
* add: wds full blown version
* fix: per_gpu_batch_siz
* start debuggin
* debugging
* remove print
* fix
* remove filter keys.
* turn on non-blocking calls.
* device_placement
* let's see.
* add bigger training run command
* reinitialize generator for fair repro
* add: detailed readme and requirements
---------
Co-authored-by: Sayak Paul <sayakpaul@Sayaks-MacBook-Pro-2.local >
2024-03-25 08:37:41 +05:30
M. Tolga Cangöz
f7dfcfd971
[IP-Adapter] Fix IP-Adapter Support and Refactor Callback for StableDiffusionPanoramaPipeline ( #7262 )
...
* Add properties and `IPAdapterTesterMixin` tests for `StableDiffusionPanoramaPipeline`
* Update torch manual seed to use `torch.Generator(device=device)`
* Refactor 📞 🔙 to support `callback_on_step_end`
* make fix-copies
2024-03-24 16:07:02 -10:00
Sayak Paul
3c67864c5a
Remove distutils ( #7455 )
...
* strtobool
* replace Command from setuptools.
2024-03-25 06:44:53 +05:30
Aryan
363699044e
[refactor] Fix FreeInit behaviour ( #7410 )
...
* fix freeinit impl
* fix progress bar
* fix progress bar and remove old code
* fix num_inference_steps==1 case for freeinit by atleast running 1 step when fast sampling enabled
2024-03-22 19:20:00 +05:30
Sayak Paul
9613576191
add: space for calculating memory usagee. ( #7414 )
...
* add: space for calculating memory usahe.
* Update docs/source/en/using-diffusers/loading.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-03-22 08:43:21 +05:30
YiYi Xu
e4356d6488
add a "Community Scripts" section ( #7358 )
...
* add
* add tiling
* fix
* fix
* fix
* give community script its own readme
* Update examples/community/README_community_scripts.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update examples/community/README_community_scripts.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update examples/community/README_community_scripts.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update examples/community/README_community_scripts.md
---------
Co-authored-by: Alexis Rolland <alexis.rolland@ubisoft.com >
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-03-21 10:05:07 -10:00
Sayak Paul
82441460ef
[Docs] add missing output image ( #7425 )
...
add missing output image
2024-03-21 09:22:06 -07:00
sayakpaul
3e1097cb63
Revert "add: space within docs to calculate mememory usage."
...
This reverts commit 78990dd960 .
2024-03-21 08:33:02 +05:30
sayakpaul
78990dd960
add: space within docs to calculate mememory usage.
2024-03-21 08:32:37 +05:30
Yuanhao Zhai
405a1facd2
fix: enable unet_3d_condition to support time_cond_proj_dim ( #7364 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-21 07:46:32 +05:30
M. Tolga Cangöz
3028089e5e
Fix typos ( #7411 )
...
* Fix typos
* Fix typo in SVD.md
2024-03-20 18:46:47 -07:00
Sayak Paul
b536f39818
[Custom Pipelines with Custom Components] fix multiple things ( #7304 )
...
* checking to improve pipelines.
* more fixes.
* add: tip to encourage the usage of revision
* Apply suggestions from code review
* retrigger ci
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-03-20 18:49:00 +05:30
Sayak Paul
e25e525fde
[LoRA test suite] refactor the test suite and cleanse it ( #7316 )
...
* cleanse and refactor lora testing suite.
* more cleanup.
* make check_if_lora_correctly_set a utility function
* fix: typo
* retrigger ci
* style
2024-03-20 17:13:52 +05:30
Sayak Paul
de9adb907c
clean dep installation step in push_tests ( #7382 )
...
* clean dep installation step in push_tests
* fix: deps
2024-03-20 07:30:43 +05:30
Sayak Paul
bf861e65dc
[Chore] add: fives names to citations. ( #7395 )
...
* add: four names to citations.
* add: steven
2024-03-20 06:37:57 +05:30
Dhruv Nair
4da810b943
Remove insecure torch.load calls ( #7393 )
...
update
2024-03-19 12:41:50 -10:00
Stephen
161c6e14b6
Change path to posix (modeling_utils.py) ( #6781 )
...
* Change path to posix
* running isort
* run style and quality checks
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-19 11:50:34 -10:00
laksjdjf
a6c9015c4e
Fix ControlNetModel.from_unet do not load add_embedding ( #7269 )
...
* Fix ControlNetModel.from_unet do not load add_embedding
* delete white space in blank line
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-19 09:45:08 -10:00
PJC
e6a5f99e5c
Update pipeline_controlnet_sd_xl_img2img.py ( #7353 )
...
* Update pipeline_controlnet_sd_xl_img2img.py
fix: safetensors load error
* fix for pass test
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-03-19 09:29:39 -10:00
Dhruv Nair
80ff4ba63e
Fix issue with prompt embeds and latents in SD Cascade Decoder with multiple image embeddings for a single prompt. ( #7381 )
...
* fix
* update
* update
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-19 07:40:14 -10:00
Sayak Paul
b09a2aa308
[LoRA] fix cross_attention_kwargs problems and tighten tests ( #7388 )
...
* debugging
* let's see the numbers
* let's see the numbers
* let's see the numbers
* restrict tolerance.
* increase inference steps.
* shallow copy of cross_attentionkwargs
* remove print
2024-03-19 17:53:38 +05:30
YiYi Xu
63b6846849
[scheduler] fix a bug in add_noise ( #7386 )
...
* fix
* fix
* add a tests
* fix
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2024-03-19 00:50:58 -10:00
lawfordp2017
139f707e6e
Correction for non-integral image resolutions with quantizations other than float32 ( #7356 )
...
* Correction for non-integral image resolutions with quantizations other than float32.
* Support for training, and use of diffusers-style casting.
2024-03-19 16:17:44 +05:30
Aryan
e4546fd5bb
[docs] Add missing copied from statements in TCD Scheduler ( #7360 )
...
* add missing copied from statements in tcd scheduler
* update docstring
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-19 00:45:36 -10:00
Dhruv Nair
d44e31aec2
Add FreeInit Outputs to Docs Page ( #7384 )
...
* update
* fix
2024-03-19 14:13:41 +05:30
Sayak Paul
ce9825b56b
[LoRA] pop the LoRA scale so that it doesn't get propagated to the weeds ( #7338 )
...
* pop scale from the top-level unet instead of getting it.
* improve readability.
* Apply suggestions from code review
Co-authored-by: YiYi Xu <yixu310@gmail.com >
* fix a little bit.
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-03-19 09:12:05 +05:30
M. Tolga Cangöz
85f9d92883
Fix conditional statement in test_schedulers.py ( #7323 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-19 08:28:47 +05:30
M. Tolga Cangöz
916d9812a8
Update loading of config from a file in test_config.py ( #7344 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-18 11:47:36 -10:00
M. Tolga Cangöz
e6a8492242
Use PyTorch's conventional inplace functions ( #7332 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-18 09:12:15 -10:00
Beinsezii
ad0308b3f1
Add Cascade to Auto T2I + Decoder mappings ( #7362 )
...
* Add Cascade to Auto T2I + Decoder mappings
* ruff autofix
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-18 08:58:20 -10:00
M. Tolga Cangöz
e97a633b63
Update access of configuration attributes ( #7343 )
...
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-18 08:53:29 -10:00