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
Sayak Paul
01ac37b331
[LoRA] Clean Kohya conversion utils ( #7374 )
...
* clean up the kohya_conversion utility
* state dict assignment
2024-03-18 06:53:37 -10:00
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
Dhruv Nair
4330a747d4
[Tests] Fix ControlNet Single File tests ( #7315 )
...
* update
* update
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-18 11:28:59 +05:30
Sayak Paul
76de6a09fb
post-release v0.27.0 ( #7329 )
...
* post-release
* quality
2024-03-18 10:52:20 +05:30
Sayak Paul
25caf24ef9
Fix release workflow deps ( #7339 )
...
* pop scale from the top-level unet instead of getting it.
* improve readability.
* fix: pypi workflow deps
* revert
2024-03-16 07:18:11 +05:30
Abubakar Abid
8db3c9bc9f
Adds docs for gradio.Interface.from_pipeline() ( #7346 )
...
* gradio docs
* Update docs/source/en/api/pipelines/stable_diffusion/overview.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* changes
* changes
* changes
* Update docs/source/en/api/pipelines/stable_diffusion/overview.md
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-03-16 07:11:28 +05:30
Sayak Paul
e0e9f81971
add: torch to the pypi step. ( #7328 )
2024-03-15 12:28:12 +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
Dhruv Nair
4974b84564
Update Cascade Tests ( #7324 )
...
* update
* update
* update
2024-03-14 20:51:22 +05:30
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
Suraj Patil
b6d7e31d10
add edm schedulers in doc ( #7319 )
...
* add edm schedulers in doc
* add in toctree
* address reviewe comments
2024-03-14 11:52:25 +01:00
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