Patrick von Platen
4deb16e830
[Docs] Advertise fp16 instead of autocast ( #740 )
...
up
2022-10-05 22:20:53 +02:00
Patrick von Platen
78744b6a8f
No more use_auth_token=True ( #733 )
...
* up
* uP
* uP
* make style
* Apply suggestions from code review
* up
* finish
2022-10-05 17:16:15 +02:00
Nicolas Patry
3dcc75cbd4
Removing autocast for 35-25% speedup. (autocast considered harmful). ( #511 )
...
* Removing `autocast` for `35-25% speedup`.
* iQuality
* Adding a slow test.
* Fixing mps noise generation.
* Raising error on wrong device, instead of just casting on behalf of user.
* Quality.
* fix merge
Co-authored-by: Nouamane Tazi <nouamane98@gmail.com >
2022-10-05 15:33:13 +02:00
Patrick von Platen
500ca5a907
Forgot to add the OG!
2022-10-03 13:15:07 +02:00
Omar Sanseviero
5156acc476
Fix BibText citation ( #693 )
...
* Fix BibText citation
* Update README.md
2022-10-01 10:15:32 +02:00
Patrick von Platen
552b967020
Update README.md
2022-09-30 16:37:13 +02:00
Patrick von Platen
bb0f2a0f54
Update README.md
2022-09-30 16:35:55 +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
Patrick von Platen
44968e4204
[Docs] Correct links ( #432 )
2022-09-08 21:29:24 +02:00
anton-l
3f55d1359f
Release: 0.3.0
2022-09-08 18:20:05 +02:00
Satpal Singh Rathore
1d7adf1329
Improve unconditional diffusers example ( #414 )
...
* use gpu and improve
* Update README.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update README.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-09-08 13:42:44 +02:00
Satpal Singh Rathore
f4a785cec7
Improve latent diff example ( #413 )
...
* improve latent diff example
* use gpu
* Update README.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Update README.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-09-08 13:42:16 +02:00
Pedro Cuenca
5dda1735fd
Inference support for mps device ( #355 )
...
* Initial support for mps in Stable Diffusion pipeline.
* Initial "warmup" implementation when using mps.
* Make some deterministic tests pass with mps.
* Disable training tests when using mps.
* SD: generate latents in CPU then move to device.
This is especially important when using the mps device, because
generators are not supported there. See for example
https://github.com/pytorch/pytorch/issues/84288 .
In addition, the other pipelines seem to use the same approach: generate
the random samples then move to the appropriate device.
After this change, generating an image in MPS produces the same result
as when using the CPU, if the same seed is used.
* Remove prints.
* Pass AutoencoderKL test_output_pretrained with mps.
Sampling from `posterior` must be done in CPU.
* Style
* Do not use torch.long for log op in mps device.
* Perform incompatible padding ops in CPU.
UNet tests now pass.
See https://github.com/pytorch/pytorch/issues/84535
* Style: fix import order.
* Remove unused symbols.
* Remove MPSWarmupMixin, do not apply automatically.
We do apply warmup in the tests, but not during normal use.
This adopts some PR suggestions by @patrickvonplaten.
* Add comment for mps fallback to CPU step.
* Add README_mps.md for mps installation and use.
* Apply `black` to modified files.
* Restrict README_mps to SD, show measures in table.
* Make PNDM indexing compatible with mps.
Addresses #239 .
* Do not use float64 when using LDMScheduler.
Fixes #358 .
* Fix typo identified by @patil-suraj
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* Adapt example to new output style.
* Restore 1:1 results reproducibility with CompVis.
However, mps latents need to be generated in CPU because generators
don't work in the mps device.
* Move PyTorch nightly to requirements.
* Adapt `test_scheduler_outputs_equivalence` ton MPS.
* mps: skip training tests instead of ignoring silently.
* Make VQModel tests pass on mps.
* mps ddim tests: warmup, increase tolerance.
* ScoreSdeVeScheduler indexing made mps compatible.
* Make ldm pipeline tests pass using warmup.
* Style
* Simplify casting as suggested in PR.
* Add Known Issues to readme.
* `isort` import order.
* Remove _mps_warmup helpers from ModelMixin.
And just make changes to the tests.
* Skip tests using unittest decorator for consistency.
* Remove temporary var.
* Remove spurious blank space.
* Remove unused symbol.
* Remove README_mps.
Co-authored-by: Suraj Patil <surajp815@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-09-08 13:37:36 +02:00
Patrick von Platen
5c4ea00de7
Efficient Attention ( #366 )
...
* up
* add tests
* correct
* up
* finish
* better naming
* Update README.md
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-09-06 18:06:47 +02:00
Patrick von Platen
cc59b05635
[ModelOutputs] Replace dict outputs with Dict/Dataclass and allow to return tuples ( #334 )
...
* add outputs for models
* add for pipelines
* finish schedulers
* better naming
* adapt tests as well
* replace dict access with . access
* make schedulers works
* finish
* correct readme
* make bcp compatible
* up
* small fix
* finish
* more fixes
* more fixes
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* Update src/diffusers/models/vae.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* Adapt model outputs
* Apply more suggestions
* finish examples
* correct
Co-authored-by: Suraj Patil <surajp815@gmail.com >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-09-05 14:49:26 +02:00
Patrick von Platen
e54206d095
Update README.md
...
Remove joke
2022-09-02 13:20:00 +02:00
Patrick von Platen
6b5baa9332
Add contributions to README and re-order a bit ( #316 )
...
* up
* thanks Clau
* finish
* finish
* up
2022-09-02 13:19:13 +02:00
Pedro Cuenca
3a536ac8f1
README: stable diffusion version v1-3 -> v1-4 ( #331 )
...
Prose: stable diffusion version v1-3 -> v1-4
The code examples use `v1-4`, but the license text was referring to
`v1-3`.
2022-09-02 13:18:09 +02:00
Patrick von Platen
64270eff34
Improve README to show how to use SD without an access token ( #315 )
...
* Readme sd
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
2022-09-01 15:06:04 +02:00
Kirill
034673bbeb
Fix stable-diffusion-seeds.ipynb link ( #309 )
2022-09-01 14:59:34 +05:30
Patrick von Platen
bc2ad5a661
Improve README ( #301 )
2022-08-31 21:02:46 +02:00
Patrick von Platen
2299951e6d
Update README.md
2022-08-31 18:34:35 +02:00
Nathan Lambert
851b968630
readme: remove soon tag for diffuse-the-rest
2022-08-30 10:08:03 -07:00
Patrick von Platen
3a5eff9022
Update README.md
2022-08-30 19:02:14 +02:00
Patrick von Platen
6e808719d2
Update README.md
2022-08-30 19:01:58 +02:00
Patrick von Platen
a4d5b59f13
Refactor Pipelines / Community pipelines and add better explanations. ( #257 )
...
* [Examples readme]
* Improve
* more
* save
* save
* save more
* up
* up
* Apply suggestions from code review
Co-authored-by: Nathan Lambert <nathan@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* up
* make deterministic
* up
* better
* up
* add generator to img2img pipe
* save
* make pipelines deterministic
* Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
* apply all changes
* more correctnios
* finish
* improve table
* more fixes
* up
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Suraj Patil <surajp815@gmail.com >
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
* Update src/diffusers/pipelines/README.md
Co-authored-by: Suraj Patil <surajp815@gmail.com >
* add better links
* fix more
* finish
Co-authored-by: Nathan Lambert <nathan@huggingface.co >
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-08-30 18:43:42 +02:00
Nathan Lambert
e5b5deaea6
Update README.md with examples ( #252 )
...
* Update README.md
* Update README.md
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* Update README.md
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-08-26 15:27:25 +05:30
Suraj Patil
4674fdf807
Add image2image example script. ( #231 )
...
* boom boom
* reorganise examples
* add image2image in example inference
* add readme
* fix example
* update colab url
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* fix init_timestep
* update colab url
* update main readme
* rename readme
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-08-23 16:27:28 +05:30
anton-l
60a147343f
Release: v0.2.4
2022-08-22 18:45:43 +02:00
Anton Lozhkov
0ab948568d
Add more visibility to the colab links with badges
2022-08-22 14:15:24 +02:00
anton-l
ebd80e2618
Release: v0.2.3
2022-08-22 10:49:38 +02:00
Anton Lozhkov
62b3efe351
Fix SD example typo
2022-08-22 09:25:55 +02:00
Pedro Cuenca
2b7669183e
Update README for 0.2.3 release ( #225 )
...
* Update README for 0.2.3 release:
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-08-21 23:59:46 +02:00
Anton Lozhkov
3cde81408f
Add incompatibility note for SD (temporary)
2022-08-20 12:02:32 +02:00
Suraj Patil
f9522d825c
[StableDiffusionPipeline] use default params in __call__ ( #196 )
...
use default params in __call__
2022-08-17 17:06:12 +05:30
Suraj Patil
80e0c8ba9e
fix stable-diffusion code snippet format.
2022-08-17 14:15:00 +05:30
apolinario
e36a36788e
Match params with official Stable Diffusion lib ( #192 )
...
https://github.com/CompVis/stable-diffusion
2022-08-16 22:52:22 +02:00
Patrick von Platen
554e67cb06
Update README.md
2022-08-16 19:12:25 +02:00
Patrick von Platen
45cb500667
Update README.md
2022-08-16 19:10:35 +02:00
Patrick von Platen
8c78e73fef
Update README.md
2022-08-16 19:09:09 +02:00
anton-l
c1b378db69
Release: v0.2.1
2022-08-16 18:22:45 +02:00
anton-l
ea2e177c1d
Release: v0.2.0
2022-08-16 17:39:50 +02:00
Sugato Ray
616c3a42cb
Added diffusers to conda-forge and updated README for installation instruction ( #129 )
...
add instruction to install with conda
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
2022-08-03 16:46:23 +02:00
anton-l
b6cadcef98
Release: 0.1.3
2022-07-28 10:27:32 +02:00
Mario Šaško
0f8547c2af
Add syntax highlighting to code blocks in README ( #131 )
2022-07-24 16:20:56 +02:00
Yue Zhao
27782bc18e
fix some errors and rewrite sentences in README.md ( #133 )
...
* Update README.md
line 23, 24 and 25: Remove "that" because "that" is unnecessary in these three sentences.
line 33: Rewrite this sentence and make it more straightforward.
line 34: This first sentence is incomplete.
line 117: “focusses" -> "focuses"
line 118: "continuous" -> "continuous"
line 119: "consise" -> "concise"
* Update README.md
2022-07-24 12:02:39 +02:00
Patrick von Platen
04fa7baea8
Update README.md
2022-07-21 16:54:55 +02:00
apolinario
9a04a8a6a8
Update README.md with examples ( #121 )
...
Update README.md
2022-07-21 16:53:59 +02:00
Omar Sanseviero
a05a5fb9ba
Update main README ( #120 )
...
* Update README.md
* Update README.md
2022-07-21 16:43:47 +02:00
Patrick von Platen
71faf347fd
Update README.md
2022-07-21 16:25:17 +02:00