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
Patrick von Platen
b4e6a7403d
save intermediate
2022-06-17 16:58:45 +02:00
Patrick von Platen
e660a05fed
remave onnx
2022-06-17 11:00:01 +02:00
Patrick von Platen
07b6d0e71e
rename modeling code
2022-06-07 10:35:53 +02:00
Patrick von Platen
95f4256fc9
upload some cleaning tools
2022-05-31 10:17:19 +02:00