ちくわぶ
896fb6d8d7
Fix duplicate variable assignments in SD3's JointAttnProcessor ( #8516 )
...
* Fix duplicate variable assignments.
* Fix duplicate variable assignments.
2024-06-12 21:52:35 -10:00
Tolga Cangöz
98730c5dd7
Errata ( #8322 )
...
* Fix typos
* Trim trailing whitespaces
* Remove a trailing whitespace
* chore: Update MarigoldDepthPipeline checkpoint to prs-eth/marigold-lcm-v1-0
* Revert "chore: Update MarigoldDepthPipeline checkpoint to prs-eth/marigold-lcm-v1-0"
This reverts commit fd742b30b4 .
* pokemon -> naruto
* `DPMSolverMultistep` -> `DPMSolverMultistepScheduler`
* Improve Markdown stylization
* Improve style
* Improve style
* Refactor pipeline variable names for consistency
* up style
2024-06-05 13:59:09 -07:00
Sai-Suraj-27
df2bc5ef28
fix: Fixed few docstrings according to the Google Style Guide ( #7717 )
...
Fixed few docstrings according to the Google Style Guide.
2024-05-20 10:26:05 -07:00
Sayak Paul
5a69227863
[Metadat utils] fix: json lines ordering. ( #7744 )
...
fix: json lines ordering.
2024-04-23 14:32:30 +05:30
Sayak Paul
ac7ff7d4a3
add utilities for updating diffusers pipeline metadata. ( #7573 )
...
* add utilities for updating diffusers pipeline metadata.
* style
* remove first empty line
2024-04-10 08:28:49 +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
038ff70023
[PyPI publishing] feat: automate the process of pypi publication to some extent. ( #7270 )
...
* feat: automate the process of pypi publication to some extent.
* utility to fetch the latest release branch
* correct package name.
2024-03-13 16:27:59 +05:30
YiYi Xu
ec953047bc
[stalebot] fix a bug ( #7156 )
...
fix
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2024-03-01 09:44:00 -10:00
YiYi Xu
2cad1a8465
[stalebot] don't close the issue if the stale label is removed ( #7106 )
...
* fix
* fix
* remove stalebot's ability to close issues
---------
Co-authored-by: yiyixuxu <yixu310@gmail,com>
2024-02-28 08:04:28 -10:00
Sayak Paul
30e5e81d58
change to 2024 in the license ( #6902 )
...
change to 2024
2024-02-08 08:19:31 -10:00
Dhruv Nair
dc85b578c2
Move tests for SD inference variant pipelines into their own modules ( #6707 )
...
* update
* update
* update
2024-01-26 14:09:41 +02:00
Dhruv Nair
0d927c7542
Add IP Adapters to slow tests ( #6714 )
...
update
2024-01-25 19:52:50 -10: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
Dhruv Nair
ebc7bedeb7
Add tests fetcher ( #5848 )
...
* add tests fetcher to utils
* add test fetcher
* update
* update
* remove unused dependency version check script
* update
* fix mistake
* update
* update
* update
* update
* update
* update
* update
* remove concurrency params
* update
* update
* update
* update
* update
* update
* move test fetcher to dedicated workflow
2023-11-21 18:01:44 +05:30
Kashif Rasul
6b04d61cf6
[Styling] stylify using ruff ( #5841 )
...
* ruff format
* not need to use doc-builder's black styling as the doc is styled in ruff
* make fix-copies
* comment
* use run_ruff
2023-11-20 11:48:34 +01:00
Dhruv Nair
28e8d1f6ec
Fix pipe fetcher for slow tests ( #5424 )
...
* fix pipe fetcher
* filter out community pipelines
2023-10-18 00:42:56 +05:30
Heinz-Alexander Fuetterer
0ea78f9707
chore: fix typos ( #5386 )
...
* chore: fix typos
* Update src/diffusers/pipelines/shap_e/renderer.py
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com >
---------
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com >
2023-10-16 15:23:37 +02:00
Sayak Paul
07b297e7de
[Bot] FIX stale.py uses timezone-aware datetime ( #5396 )
...
reflect stalebot change from https://github.com/huggingface/peft/pull/1016/
2023-10-16 00:54:50 +05:30
Dhruv Nair
dd5a36291f
New Pipeline Slow Test runners ( #5131 )
...
* pipline fetcher
* update script
* clean up
* clean up
* clean up
* new pipeline runner
* rename tests to match modules
* test actions in pr
* change runner to gpu
* clean up
* clean up
* clean up
* fix report
* fix reporting
* clean up
* show test stats in failure reports
* give names to jobs
* add lora tests
* split torch cuda tests and add compile tests
* clean up
* fix tests
* change push to run only on main
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-10-04 11:42:17 +02:00
Patrick von Platen
18b7264bd0
[Utils] Correct custom init sort ( #4967 )
...
* [Utils] Correct custom init sort
* [Utils] Correct custom init sort
* [Utils] Correct custom init sort
* add type checking
* fix custom init sort
* fix test
* fix tests
---------
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com >
2023-09-12 11:05:53 +02:00
Patrick von Platen
2c60f7d14e
[Core] Remove TF import checks ( #4968 )
...
[TF] Remove tf
2023-09-11 11:22:40 +02:00
Dhruv Nair
b6e0b016ce
Lazy Import for Diffusers ( #4829 )
...
* initial commit
* move modules to import struct
* add dummy objects and _LazyModule
* add lazy import to schedulers
* clean up unused imports
* lazy import on models module
* lazy import for schedulers module
* add lazy import to pipelines module
* lazy import altdiffusion
* lazy import audio diffusion
* lazy import audioldm
* lazy import consistency model
* lazy import controlnet
* lazy import dance diffusion ddim ddpm
* lazy import deepfloyd
* lazy import kandinksy
* lazy imports
* lazy import semantic diffusion
* lazy imports
* lazy import stable diffusion
* move sd output to its own module
* clean up
* lazy import t2iadapter
* lazy import unclip
* lazy import versatile and vq diffsuion
* lazy import vq diffusion
* helper to fetch objects from modules
* lazy import sdxl
* lazy import txt2vid
* lazy import stochastic karras
* fix model imports
* fix bug
* lazy import
* clean up
* clean up
* fixes for tests
* fixes for tests
* clean up
* remove import of torch_utils from utils module
* clean up
* clean up
* fix mistake import statement
* dedicated modules for exporting and loading
* remove testing utils from utils module
* fixes from merge conflicts
* Update src/diffusers/pipelines/kandinsky2_2/__init__.py
* fix docs
* fix alt diffusion copied from
* fix check dummies
* fix more docs
* remove accelerate import from utils module
* add type checking
* make style
* fix check dummies
* remove torch import from xformers check
* clean up error message
* fixes after upstream merges
* dummy objects fix
* fix tests
* remove unused module import
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-09-11 09:56:22 +02:00
camenduru
c6ae9b7df6
Where did this 'x' come from, Elon? ( #4277 )
...
* why mdx?
* why mdx?
* why mdx?
* no x for kandinksy either
---------
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2023-07-26 18:18:14 +02:00
Pedro Cuenca
1d7b4b60b7
Ruff: apply same rules as in transformers ( #2827 )
...
* Apply same ruff settings as in transformers
See https://github.com/huggingface/transformers/blob/main/pyproject.toml
Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com >
* Apply new style rules
* Style
Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com >
* style
* remove list, ruff wouldn't auto fix.
---------
Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com >
2023-03-27 16:18:57 +02:00
Patrick von Platen
eadf0e2555
[Copyright] 2023 ( #2524 )
2023-03-01 10:31:00 +01:00
Patrick von Platen
96c2279bcd
Correct fast tests ( #2314 )
...
* correct some
* Apply suggestions from code review
* correct
* Update tests/pipelines/altdiffusion/test_alt_diffusion_img2img.py
* Final
2023-02-10 14:12:34 +01:00
Patrick von Platen
a7ca03aa85
Replace flake8 with ruff and update black ( #2279 )
...
* before running make style
* remove left overs from flake8
* finish
* make fix-copies
* final fix
* more fixes
2023-02-07 23:46:23 +01:00
Patrick von Platen
b0cc7c202b
make style
2023-01-25 16:03:56 +02:00
Patrick von Platen
180841bbde
Release: v0.12.0
2023-01-25 15:48:00 +02:00
Patrick von Platen
6ba2231d72
Reproducibility 3/3 ( #1924 )
...
* make tests deterministic
* run slow tests
* prepare for testing
* finish
* refactor
* add print statements
* finish more
* correct some test failures
* more fixes
* set up to correct tests
* more corrections
* up
* fix more
* more prints
* add
* up
* up
* up
* uP
* uP
* more fixes
* uP
* up
* up
* up
* up
* fix more
* up
* up
* clean tests
* up
* up
* up
* more fixes
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* make
* correct
* finish
* finish
Co-authored-by: Suraj Patil <surajp815@gmail.com >
2023-01-25 13:44:22 +01:00
Patrick von Platen
ed616bd8a8
[LoRA] Add LoRA training script ( #1884 )
...
* [Lora] first upload
* add first lora version
* upload
* more
* first training
* up
* correct
* improve
* finish loaders and inference
* up
* up
* fix more
* up
* finish more
* finish more
* up
* up
* change year
* revert year change
* Change lines
* Add cloneofsimo as co-author.
Co-authored-by: Simo Ryu <cloneofsimo@gmail.com >
* finish
* fix docs
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* upload
* finish
Co-authored-by: Simo Ryu <cloneofsimo@gmail.com >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Suraj Patil <surajp815@gmail.com >
2023-01-18 18:05:51 +01:00
Patrick von Platen
aba2a65d6a
Add automatic doc sorting ( #1940 )
...
* automatically sort docs
* add new check toc doc
* add new check toc doc
* add
* add new check toc doc
* add
* add new check toc doc
* correct
* finalize
2023-01-06 17:24:47 +01:00
Patrick von Platen
8ed08e4270
[Deterministic torch randn] Allow tensors to be generated on CPU ( #1902 )
...
* [Deterministic torch randn] Allow tensors to be generated on CPU
* fix more
* up
* fix more
* up
* Update src/diffusers/utils/torch_utils.py
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
* Apply suggestions from code review
* up
* up
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2023-01-03 18:22:40 +01:00
Suraj Patil
5383188c7e
StableDiffusionDepth2ImgPipeline ( #1531 )
...
* begin depth pipeline
* add depth estimation model
* fix prepare_depth_mask
* add a comment about autocast
* copied from, quality, cleanup
* begin tests
* handle tensors
* norm image tensor
* fix batch size
* fix tests
* fix enable_sequential_cpu_offload
* fix save load
* fix test_save_load_float16
* fix test_save_load_optional_components
* fix test_float16_inference
* fix test_cpu_offload_forward_pass
* fix test_dict_tuple_outputs_equivalent
* up
* fix fast tests
* fix test_stable_diffusion_img2img_multiple_init_images
* fix few more fast tests
* don't use device map for DPT
* fix test_stable_diffusion_pipeline_with_sequential_cpu_offloading
* accept external depth maps
* prepare_depth_mask -> prepare_depth_map
* fix file name
* fix file name
* quality
* check transformers version
* fix test names
* use skipif
* fix import
* add docs
* skip tests on mps
* correct version
* uP
* Update docs/source/api/pipelines/stable_diffusion_2.mdx
* fix fix-copies
* fix fix-copies
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
Co-authored-by: anton- <anton@huggingface.co >
2022-12-08 18:25:12 +01:00
Anton Lozhkov
dbe0719246
Fix PyCharm/VSCode static type checking for dummy objects ( #1596 )
...
* Fix PyCharm/VSCode static type checking for dummy objects
* Re-add dummies
* Fix AudioDiffusion imports
* fix import
* fix import
* Update utils/check_dummies.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* Update src/diffusers/utils/import_utils.py
* Update src/diffusers/__init__.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update src/diffusers/pipelines/stable_diffusion/__init__.py
* fix double import
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-12-08 14:02:11 +01:00
Anton Lozhkov
81fa2d688d
Avoid nested fix-copies ( #1332 )
...
* Avoid nested `# Copied from` statements during `make fix-copies`
* style
2022-11-18 15:33:57 +01:00
Patrick von Platen
e4d264e4eb
[GitBot] Automatically close issues after inactivitiy ( #1079 )
...
* [GitBot] Automatically close issues after inactivitiy
* improve
* Add unstale
* typo
Co-authored-by: anton-l <anton@huggingface.co >
2022-10-31 14:06:03 +01:00
Anton Lozhkov
32bf4fdc43
Introduce the copy mechanism ( #924 )
...
* Introduce the copy mechanism
* init tests
* fix dummy tests
* with
* update copies tests
2022-10-20 20:26:03 +02:00
Patrick von Platen
db47b1e4d9
[Dummy imports] Better error message ( #795 )
...
* [Dummy imports] Better error message
* Test: load pipeline with LMS scheduler.
Fails with a cryptic message if scipy is not installed.
* Correct
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-10-12 14:41:16 +02:00
Ryan Russell
b6945310c9
refactor: custom_init_isort readability fixups ( #631 )
...
Signed-off-by: Ryan Russell <git@ryanrussell.org >
Signed-off-by: Ryan Russell <git@ryanrussell.org >
2022-09-27 13:13:36 +02:00
Anton Lozhkov
b8d1f2d344
Remove check_tf_utils to avoid an unnecessary TF import for now ( #566 )
2022-09-19 15:37:36 +02:00
Younes Belkada
d09bbae515
make fixup support (#546 )
...
* add `get_modified_files.py`
- file copied from https://github.com/huggingface/transformers/blob/main/utils/get_modified_files.py
* make fixup
2022-09-18 19:34:51 +02:00
Yuta Hayashibe
76d492ea49
Fix typos and add Typo check GitHub Action ( #483 )
...
* Fix typos
* Add a typo check action
* Fix a bug
* Changed to manual typo check currently
Ref: https://github.com/huggingface/diffusers/pull/483#pullrequestreview-1104468010
Co-authored-by: Anton Lozhkov <aglozhkov@gmail.com >
* Removed a confusing message
* Renamed "nin_shortcut" to "in_shortcut"
* Add memo about NIN
Co-authored-by: Anton Lozhkov <aglozhkov@gmail.com >
2022-09-16 15:36:51 +02:00
Anton Lozhkov
214520c66a
[CI] Add stalebot ( #481 )
...
* Add stalebot
* style
* Remove the closing logic
* Make sure not to spam
2022-09-16 12:03:04 +02:00
Patrick von Platen
f3937bc8f3
[Refactor] Remove set_seed ( #289 )
...
* [Refactor] Remove set_seed and class attributes
* apply anton's suggestiosn
* fix
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* up
* update
* make style
* Apply suggestions from code review
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
* make fix-copies
* make style
* make style and new copies
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
2022-08-31 19:29:38 +02:00
Patrick von Platen
0b1a843d32
Check dummy file ( #297 )
...
fix line type
2022-08-31 18:54:36 +02:00
Anton Lozhkov
11133dcca1
Initialize CI for code quality and testing ( #256 )
...
* Init CI
* clarify cpu
* style
* Check scripts quality too
* Drop smi for cpu tests
* Run PR tests on cpu docker envs
* Update .github/workflows/push_tests.yml
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Try minimal python container
* Print env, install stable GPU torch
* Manual torch install
* remove deprecated platform.dist()
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-08-26 17:34:58 +02:00
Anton Lozhkov
df90f0ce98
Add is_torch_available, is_flax_available ( #204 )
...
* Add is_<framework>_available, refactor import utils
* deps
* quality
2022-08-17 16:47:20 +02:00
Patrick von Platen
4261c3aadf
Make style
2022-06-27 15:59:04 +00:00
Patrick von Platen
d0032c6095
refactor naming
2022-06-22 12:38:36 +00:00