Anton Lozhkov
02d83c9ff1
Standardize fast pipeline tests with PipelineTestMixin ( #1526 )
...
* [WIP] Standardize fast pipeline tests with PipelineTestMixin
* refactor the sd tests a bit
* add more common tests
* add xformers
* add progressbar test
* cleanup
* upd fp16
* CycleDiffusionPipelineFastTests
* DanceDiffusionPipelineFastTests
* AltDiffusionPipelineFastTests
* StableDiffusion2PipelineFastTests
* StableDiffusion2InpaintPipelineFastTests
* StableDiffusionImageVariationPipelineFastTests
* StableDiffusionImg2ImgPipelineFastTests
* StableDiffusionInpaintPipelineFastTests
* remove unused mixins
* quality
* add missing inits
* try to fix mps tests
* fix mps tests
* add mps warmups
* skip for some pipelines
* style
* Update tests/test_pipelines_common.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2022-12-06 18:35:30 +01:00
fboulnois
52eb0348e5
Standardize on using `image` argument in all pipelines ( #1361 )
...
* feat: switch core pipelines to use image arg
* test: update tests for core pipelines
* feat: switch examples to use image arg
* docs: update docs to use image arg
* style: format code using black and doc-builder
* fix: deprecate use of init_image in all pipelines
2022-12-01 16:55:22 +01:00
Patrick von Platen
a0520193e1
Add Scheduler.from_pretrained and better scheduler changing ( #1286 )
...
* add conversion script for vae
* uP
* uP
* more changes
* push
* up
* finish again
* up
* up
* up
* up
* finish
* up
* 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: Suraj Patil <surajp815@gmail.com>
* up
* up
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
Co-authored-by: Anton Lozhkov <anton@huggingface.co>
Co-authored-by: Suraj Patil <surajp815@gmail.com>
2022-11-15 18:15:13 +01:00
Patrick von Platen
6cf72a9b1e
Fix slow tests ( #1210 )
...
* fix tests
* Fix more
* more
2022-11-09 11:22:12 +01:00
Chen Wu (吴尘)
9d8943b7e7
Add CycleDiffusion pipeline using Stable Diffusion ( #888 )
...
* Add CycleDiffusion pipeline for Stable Diffusion
* Add the option of passing noise to DDIMScheduler
Add the option of providing the noise itself to DDIMScheduler, instead of the random seed generator.
* Update README.md
* Update README.md
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update scheduling_ddim.py
* Update import format
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update scheduling_ddim.py
* Update src/diffusers/schedulers/scheduling_ddim.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update src/diffusers/schedulers/scheduling_ddim.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update src/diffusers/schedulers/scheduling_ddim.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update src/diffusers/schedulers/scheduling_ddim.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update src/diffusers/schedulers/scheduling_ddim.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update scheduling_ddim.py
* Update scheduling_ddim.py
* Update scheduling_ddim.py
* add two tests
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Update README.md
* Rename pipeline name as suggested in the latest reviewer comment
* Update test_pipelines.py
* Update test_pipelines.py
* Update test_pipelines.py
* Update pipeline_stable_diffusion_cycle_diffusion.py
* Remove the generator
This generator does not control all randomness during sampling, which can be misleading.
* Update optimal hyperparameters
* Update src/diffusers/pipelines/stable_diffusion/README.md
Co-authored-by: Suraj Patil <surajp815@gmail.com>
* Update src/diffusers/pipelines/stable_diffusion/README.md
Co-authored-by: Suraj Patil <surajp815@gmail.com>
* Update src/diffusers/pipelines/stable_diffusion/README.md
Co-authored-by: Suraj Patil <surajp815@gmail.com>
* Apply suggestions from code review
* uP
* Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_cycle_diffusion.py
Co-authored-by: Suraj Patil <surajp815@gmail.com>
* up
* up
* Replace assert with ValueError
* finish docs
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Suraj Patil <surajp815@gmail.com>
2022-11-04 20:51:06 +01:00