Emmanuel Benazera
963ffca434
fix: missing AutoencoderKL lora adapter ( #9807 )
...
* fix: missing AutoencoderKL lora adapter
* fix
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-12-02 17:10:20 -10:00
hlky
30f2e9bd20
Convert sigmas to np.array in FlowMatch set_timesteps ( #10088 )
2024-12-02 14:18:40 -10:00
Pedro Cuenca
2312b27f79
Interpolate fix on cuda for large output tensors ( #10067 )
...
* Workaround for upscale with large output tensors.
Fixes #10040 .
* Fix scale when output_size is given
* Style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-12-02 13:33:56 -10:00
Dhruv Nair
6db33337a4
[Single File] Pass token when fetching interpreted config ( #10082 )
...
update
2024-12-02 11:55:36 -10:00
hlky
beb856685d
Fix num_images_per_prompt>1 with Skip Guidance Layers in StableDiffusion3Pipeline ( #10086 )
2024-12-02 21:43:03 +00:00
Dhruv Nair
a9d3f6c359
[Single File] Fix SD3.5 single file loading ( #10077 )
...
update
2024-12-02 11:16:16 -10:00
YiYi Xu
cd344393e2
fix offloading for sd3.5 controlnets ( #10072 )
...
* add
2024-12-02 10:11:25 -10:00
ChG
c44fba8899
fix link in the docs ( #10058 )
...
* fix link in the docs
* fix same issue for ko
2024-12-02 11:45:12 -08:00
Parag Ekbote
922c5f5c3c
Fixed Nits in Evaluation Docs ( #10063 )
...
Minor fixes and script improvement in evaluation
docs.
2024-12-02 10:50:00 -08:00
hlky
8d386f7990
Add sigmas to Flux pipelines ( #10081 )
2024-12-02 08:16:47 -10:00
Sayak Paul
827b6c25f9
[CI] Add quantization ( #9832 )
...
* add quantization to nightly CI.
* prep.
* fix lib name.
* remove deps that are not needed.
* fix slice.
2024-12-02 14:53:43 +05:30
SahilCarterr
784b351f32
[Fix] Syntax error ( #10068 )
...
fix syntax error
2024-12-02 11:28:00 +05:30
Sayak Paul
c96bfa5c80
[Mochi-1] ensuring to compute the fourier features in FP32 in Mochi encoder ( #10031 )
...
compute fourier features in FP32.
2024-11-29 14:15:00 +05:30
Fanli Lin
6b288ec44d
make pipelines tests device-agnostic (part2) ( #9400 )
...
* enable on xpu
* add 1 more
* add one more
* enable more
* add 1 more
* add more
* enable 1
* enable more cases
* enable
* enable
* update comment
* one more
* enable 1
* add more cases
* enable xpu
* add one more caswe
* add more cases
* add 1
* add more
* add more cases
* add case
* enable
* add more
* add more
* add more
* enbale more
* add more
* update code
* update test marker
* add skip back
* update comment
* remove single files
* remove
* style
* add
* revert
* reformat
* enable
* enable esingle g
* add 2 more
* update decorator
* update
* update
* update
* Update tests/pipelines/deepfloyd_if/test_if.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update src/diffusers/utils/testing_utils.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update tests/pipelines/animatediff/test_animatediff_controlnet.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update tests/pipelines/animatediff/test_animatediff.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update tests/pipelines/animatediff/test_animatediff_controlnet.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* update float16
* no unitest.skipt
* update
* apply style check
* adapt style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2024-11-29 11:33:41 +05:30
Álvaro Somoza
fdec8bd675
Change image_gen_aux repository URL ( #10048 )
...
change image_gen_aux repo url
2024-11-28 12:57:55 -05:00
Dimitri Barbot
069186fac5
Add sdxl controlnet reference community pipeline ( #9893 )
...
* Add reference_attn & reference_adain support for sdxl with other controlnet
* Update README.md
* Update README.md by replacing human example with a cat one
Replace human example with a cat one
* Replace default human example with a cat one
* Use example images from huggingface documentation-images repository
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-28 17:12:07 +05:30
cjkangme
69c83d6eed
[Community Pipeline] Add some feature for regional prompting pipeline ( #9874 )
...
* [Fix] fix bugs of regional_prompting pipeline
* [Feat] add base prompt feature
* [Fix] fix __init__ pipeline error
* [Fix] delete unused args
* [Fix] improve string handling
* [Docs] docs to use_base in regional_prompting
* make style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-28 16:54:23 +05:30
Dimitri Barbot
e44fc75acb
Update sdxl reference pipeline to latest sdxl pipeline ( #9938 )
...
* Update sdxl reference community pipeline
* Update README.md
Add example images.
* Style & quality
* Use example images from huggingface documentation-images repository
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-28 16:34:56 +05:30
hlky
e47cc1fc1a
Add beta, exponential and karras sigmas to FlowMatchEulerDiscreteScheduler ( #10001 )
...
Add beta, exponential and karras sigmas to FlowMatchEuler
2024-11-27 14:24:35 -10:00
YiYi Xu
75bd1e83cb
Sd35 controlnet ( #10020 )
...
* add model/pipeline
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-27 10:44:48 -10:00
Parag Ekbote
8d477daed5
Notebooks for Community Scripts-3 ( #10032 )
...
* Add Notebooks for Community Scripts
in ReadME.
* Minor Script Improvement.
2024-11-26 23:05:45 -10:00
Aryan
ad5ecd1251
[docs] Fix CogVideoX table ( #10008 )
...
* fix
* fix
2024-11-26 09:14:14 -08:00
SkyCol
074e12358b
Add prompt about wandb in examples/dreambooth/readme. ( #10014 )
...
Add files via upload
2024-11-25 18:42:06 +05:30
Sayak Paul
047bf49291
[Docs] add: missing pipelines from the spec. ( #10005 )
...
add: missing pipelines from the spec.
2024-11-25 00:27:59 -10:00
Linoy Tsaban
c4b5d2ff6b
[SD3 dreambooth lora] smol fix to checkpoint saving ( #9993 )
...
* smol change to fix checkpoint saving & resuming (as done in train_dreambooth_sd3.py)
* style
* modify comment to explain reasoning behind hidden size check
2024-11-24 18:51:06 +02:00
Aryan
7ac6e286ee
Flux Fill, Canny, Depth, Redux ( #9985 )
...
* update
---------
Co-authored-by: yiyixuxu <yixu310@gmail.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-23 01:41:25 -10:00
hlky
b5fd6f13f5
ControlNet from_single_file when already converted ( #9978 )
...
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2024-11-22 17:52:52 +05:30
Fanli Lin
64b3e0f539
make pipelines tests device-agnostic (part1) ( #9399 )
...
* enable on xpu
* add 1 more
* add one more
* enable more
* add 1 more
* add more
* enable 1
* enable more cases
* enable
* enable
* update comment
* one more
* enable 1
* add more cases
* enable xpu
* add one more caswe
* add more cases
* add 1
* add more
* add more cases
* add case
* enable
* add more
* add more
* add more
* enbale more
* add more
* update code
* update test marker
* add skip back
* update comment
* remove single files
* remove
* style
* add
* revert
* reformat
* update decorator
* update
* update
* update
* Update tests/pipelines/deepfloyd_if/test_if.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update src/diffusers/utils/testing_utils.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update tests/pipelines/animatediff/test_animatediff_controlnet.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update tests/pipelines/animatediff/test_animatediff.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* Update tests/pipelines/animatediff/test_animatediff_controlnet.py
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
* update float16
* no unitest.skipt
* update
* apply style check
* reapply format
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2024-11-22 15:32:54 +05:30
Sayak Paul
2e86a3f023
[Tests] skip nan lora tests on PyTorch 2.5.1 CPU. ( #9975 )
...
* skip nan lora tests on PyTorch 2.5.1 CPU.
* cog
* use xfail
* correct xfail
* add condition
* tests
2024-11-22 12:45:21 +05:30
Aryan
cd6ca9df29
Fix prepare latent image ids and vae sample generators for flux ( #9981 )
...
* fix
* update expected slice
2024-11-21 13:02:31 +05:30
YiYi Xu
e564abe292
fix controlnet module refactor ( #9968 )
...
* fix
2024-11-20 13:11:39 -10:00
raulmosa
3139d39fa7
Update handle single blocks on _convert_xlabs_flux_lora_to_diffusers ( #9915 )
...
* Update handle single blocks on _convert_xlabs_flux_lora_to_diffusers to fix bug on updating keys and old_state_dict
---------
Co-authored-by: raul_ar <raul.moreno.salinas@autoretouch.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-20 12:53:20 -10:00
linjiapro
12358622e5
Improve control net block index for sd3 ( #9758 )
...
* improve control net index
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com >
2024-11-20 12:45:18 -10:00
Sayak Paul
805aa93789
[LoRA] enable LoRA for Mochi-1 ( #9943 )
...
* feat: add lora support to Mochi-1.
2024-11-20 12:07:04 -10:00
Dhruv Nair
f6f7afa1d7
Flux latents fix ( #9929 )
...
* update
* update
* update
* update
* update
* update
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-20 17:30:17 +05:30
hlky
637e2302ac
Fix beta and exponential sigmas + add tests ( #9954 )
...
* Fix beta and exponential sigmas + add tests
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-20 01:20:34 -10:00
Bagheera
99c0483b67
add skip_layers argument to SD3 transformer model class ( #9880 )
...
* add skip_layers argument to SD3 transformer model class
* add unit test for skip_layers in stable diffusion 3
* sd3: pipeline should support skip layer guidance
* up
---------
Co-authored-by: bghira <bghira@users.github.com >
Co-authored-by: yiyixuxu <yixu310@gmail.com >
2024-11-19 15:22:54 -05:00
Parag Ekbote
cc7d88f247
Move IP Adapter Scripts to research project ( #9960 )
...
* Move files to research-projects.
* docs: add IP Adapter training instructions
* Delete venv
* Update examples/ip_adapter/tutorial_train_sdxl.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
* Cherry-picked commits and re-moved files
to research_projects.
* make style.
* Update toctree and delete ip_adapter.
* Nit Fix
* Fix nit.
* Fix nit.
* Create training script for single GPU and set
model format to .safetensors
* Add sample inference script and restore _toctree
* Restore toctree.yaml
* fix spacing.
* Update toctree.yaml
---------
Co-authored-by: AMohamedAakhil <a.aakhilmohamed@gmail.com >
Co-authored-by: BootesVoid <78485654+AMohamedAakhil@users.noreply.github.com >
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-19 10:37:22 -08:00
Dhruv Nair
ea40933f36
[CI] Unpin torch<2.5 in CI ( #9961 )
...
* update
* update
2024-11-19 18:50:46 +05:30
Aryan
0583a8d12a
Make CogVideoX RoPE implementation consistent ( #9963 )
...
* update cogvideox rope implementation
* apply suggestions from review
2024-11-19 17:40:38 +05:30
Sayak Paul
7d0b9c4d4e
[LoRA] feat: save_lora_adapter() ( #9862 )
...
* feat: save_lora_adapter.
2024-11-18 21:03:38 -10:00
Linoy Tsaban
acf479bded
[advanced flux training] bug fix + reduce memory cost as in #9829 ( #9838 )
...
* memory improvement as done here: https://github.com/huggingface/diffusers/pull/9829
* fix bug
* fix bug
* style
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-19 08:43:36 +05:30
Parag Ekbote
03bf77c4af
Notebooks for Community Scripts-2 ( #9952 )
...
4 Notebooks for Community Scripts and minor
script improvements.
2024-11-18 12:58:57 -08:00
Yuxuan.Zhang
3b2830618d
CogVideoX 1.5 ( #9877 )
...
* CogVideoX1_1PatchEmbed test
* 1360 * 768
* refactor
* make style
* update docs
* add modeling tests for cogvideox 1.5
* update
* make fix-copies
* add ofs embed(for convert)
* add ofs embed(for convert)
* more resolution for cogvideox1.5-5b-i2v
* use even number of latent frames only
* update pipeline implementations
* make style
* set patch_size_t as None by default
* #skip frames 0
* refactor
* make style
* update docs
* fix ofs_embed
* update docs
* invert_scale_latents
* update
* fix
* Update docs/source/en/api/pipelines/cogvideox.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/cogvideox.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/cogvideox.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update docs/source/en/api/pipelines/cogvideox.md
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Update src/diffusers/models/transformers/cogvideox_transformer_3d.py
* update conversion script
* remove copied from
* fix test
* Update docs/source/en/api/pipelines/cogvideox.md
* Update docs/source/en/api/pipelines/cogvideox.md
* Update docs/source/en/api/pipelines/cogvideox.md
* Update docs/source/en/api/pipelines/cogvideox.md
---------
Co-authored-by: Aryan <aryan@huggingface.co >
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-11-19 00:56:34 +05:30
Grant Sherrick
c3c94fe71b
Add server example ( #9918 )
...
* Add server example.
* Minor updates to README.
* Add fixes after local testing.
* Apply suggestions from code review
Updates to README from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* More doc updates.
* Maybe this will work to build the docs correctly?
* Fix style issues.
* Fix toc.
* Minor reformatting.
* Move docs to proper loc.
* Fix missing tick.
* Apply suggestions from code review
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
* Sync docs changes back to README.
* Very minor update to docs to add space.
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com >
2024-11-18 09:26:13 -08:00
Parag Ekbote
365a938884
Fixed Nits in Docs and Example Script ( #9940 )
...
Fixed nits in docs and example script.
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com >
2024-11-18 09:03:22 -08:00
ちくわぶ
345907f32d
Add all AttnProcessor classes in AttentionProcessor type ( #9909 )
...
Add all AttnProcessor in `AttentionProcessor` type
2024-11-18 16:18:12 +09:00
_
07d0fbf3ec
Correct pipeline_output.py to the type Mochi ( #9945 )
...
Correct pipeline_output.py
2024-11-18 08:40:06 +09:00
Heavenn
1d2204d3a0
Modify apply_overlay for inpainting with padding_mask_crop (Inpainting area: "Only Masked") ( #8793 )
...
* Modify apply_overlay for inpainting
* style
---------
Co-authored-by: root <root@debian>
Co-authored-by: Álvaro Somoza <asomoza@users.noreply.github.com >
Co-authored-by: yiyixuxu <yixu310@gmail.com >
2024-11-17 12:14:13 +09:00
高佳宝
d38c50c8dd
Update ip_adapter.py ( #8882 )
...
update comments of load_ip_adapter function
2024-11-17 06:54:13 +09:00