thomasw21
c11d4b42a7
Context has its own sequence length
2022-11-22 12:26:59 +01:00
thomasw21
d5af4fd153
Woops
2022-11-22 12:21:59 +01:00
thomasw21
1f135ac219
Woops
2022-11-22 12:20:26 +01:00
thomasw21
0c49f4cf30
Woops
2022-11-22 12:19:15 +01:00
thomasw21
5d4145cfa2
Remove transpose for baddbmm
2022-11-22 12:17:11 +01:00
thomasw21
31d26872c1
Revert "Making hidden_state contiguous before applying multiple linear layers"
...
This reverts commit 1cd09cccf3 .
2022-11-22 12:07:54 +01:00
thomasw21
1cd09cccf3
Making hidden_state contiguous before applying multiple linear layers
2022-11-22 11:55:03 +01:00
thomasw21
fa4d738cbb
Revert "Save one more copy" as it's much slower on A100
...
This reverts commit 136f84283c .
2022-11-22 11:53:58 +01:00
thomasw21
136f84283c
Save one more copy
2022-11-22 11:49:15 +01:00
thomasw21
42ba85998f
scatter_ argument is not called src, but rather value
2022-11-22 01:11:18 +01:00
thomasw21
e1623e2081
Woops
2022-11-22 01:02:24 +01:00
thomasw21
fdef40ba03
Woops
2022-11-22 00:57:19 +01:00
thomasw21
fe691feb5a
Remove unused import
2022-11-22 00:52:53 +01:00
thomasw21
f2ed5d8b44
black
2022-11-22 00:48:50 +01:00
thomasw21
e43244f33a
Fix transpose issue
2022-11-22 00:47:22 +01:00
thomasw21
3c45926a0e
WIP: some optimizations
2022-11-22 00:37:17 +01:00
Patrick von Platen
182eb959e5
[Community Pipelines] K-Diffusion Pipeline ( #1360 )
...
* up
* add readme
* up
* uP
2022-11-21 18:45:50 +01:00
Birch-san
ad93593345
perf: prefer batched matmuls for attention ( #1203 )
...
perf: prefer batched matmuls for attention. added fast-path to Decoder when num_heads=1
2022-11-21 15:01:11 +01:00
Stuti R
78a6eed2d7
Add bit diffusion [WIP] ( #971 )
...
* Create bit_diffusion.py
Bit diffusion based on the paper, arXiv:2208.04202, Chen2022AnalogBG
* adding bit diffusion to new branch
ran tests
* tests
* tests
* tests
* tests
* removed test folders + added to README
* Update README.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-11-21 11:50:32 +01:00
shunxing1234
94b27fb8da
change the sample model ( #1352 )
...
* Update alt_diffusion.mdx
* Update alt_diffusion.mdx
2022-11-21 11:28:25 +01:00
Patrick von Platen
ab1f01e634
make style
2022-11-20 19:37:28 +01:00
Patrick von Platen
2b31740d54
Merge branch 'main' of https://github.com/huggingface/diffusers
2022-11-20 19:37:14 +01:00
Victor Schmidt
3bec90ff2c
Handle batches and Tensors in pipeline_stable_diffusion_inpaint.py:prepare_mask_and_masked_image ( #1003 )
...
* Handle batches and Tensors in `prepare_mask_and_masked_image`
* `blackfy`
upgrade `black`
* handle mask as `np.array`
* add docstring
* revert `black` changes with smaller line length
* missing ValueError in docstring
* raise `TypeError` for image as tensor but not mask
* typo in mask shape selection
* check for batch dim
* fix: wrong indentation
* add tests
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-11-20 19:33:09 +01:00
Ki
eb2425b88c
Update README.md: Minor change to Imagic code snippet, missing dir error ( #1347 )
...
Minor change to Imagic Readme
Missing dir causes an error when running the example code.
2022-11-20 18:59:56 +01:00
Ki
44efcbda0a
Update README.md: IMAGIC example code snippet misspelling ( #1346 )
...
Update README.md
Minor spelling mistake.
2022-11-20 18:56:57 +01:00
Juan Acevedo
7bbbfbfd18
Jax infer support negative prompt ( #1337 )
...
* support negative prompts in sd jax pipeline
* pass batched neg_prompt
* only encode when negative prompt is None
Co-authored-by: Juan Acevedo <jfacevedo@google.com >
2022-11-19 20:51:52 +01:00
Clayton Sims
30220905c4
Legacy Inpainting Pipeline for Onnx Models ( #1237 )
...
* Add legacy inpainting pipeline compatibility for onnx
* remove commented out line
* Add onnx legacy inpainting test
* Fix slow decorators
* pep8 styling
* isort styling
* dummy object
* ordering consistency
* style
* docstring styles
* Refactor common prompt encoding pattern
* Update tests to permanent repository home
* support all available schedulers until ONNX IO binding is available
Co-authored-by: Anton Lozhkov <aglozhkov@gmail.com >
* updated styling from PR suggested feedback
Co-authored-by: Anton Lozhkov <aglozhkov@gmail.com >
2022-11-18 16:33:12 +01:00
Anton Lozhkov
7240318179
Fix the order of casts for onnx inpainting ( #1338 )
2022-11-18 16:30:07 +01:00
NotNANtoN
aa2ce41b99
Fix img2img speed with LMS-Discrete Scheduler ( #896 )
...
Casting `self.sigmas` into a different dtype (the one of original_samples) is not advisable. In my img2img pipeline this leads to a long running time in the `integrate.quad` call later on- by long I mean more than 10x slower.
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
2022-11-18 16:01:57 +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
195e437ac5
Correct path to schedlure ( #1322 )
...
* [Examples] Correct path
* uP
2022-11-18 12:32:49 +01:00
Patrick von Platen
fcfdd95f0b
Fix/Enable all schedulers for in-painting ( #1331 )
...
* inpaint fix k lms
* onnox as well
* up
2022-11-18 12:32:17 +01:00
Simon Kirsten
5dcef138bf
[Flax] Fix loading scheduler from subfolder ( #1319 )
...
[FLAX] Fix loading scheduler from subfolder
2022-11-18 11:31:07 +01:00
Nathan Lambert
0cfbb51b0c
add docs for multi-modal examples ( #1227 )
...
* add docs for multi-modal
* many changes
* fix docs build
* fix links
* Update docs/source/using-diffusers/other-modalities.mdx
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-11-17 10:25:49 -08:00
Patrick von Platen
b9b7039f0e
img2text Typo ( #1329 )
...
* make fix copies again
* Fix typo
2022-11-17 16:48:15 +01:00
Patrick von Platen
63b34191b9
Fix typo
2022-11-17 16:47:19 +01:00
Patrick von Platen
b21a463aa9
rg Merge branch 'main' of https://github.com/huggingface/diffusers
2022-11-17 16:46:33 +01:00
Anton Lozhkov
e05ca84f41
[ONNX] Support Euler schedulers ( #1328 )
2022-11-17 16:37:35 +01:00
Patrick von Platen
3b48620f5e
Merge branch 'main' of https://github.com/huggingface/diffusers
2022-11-17 16:14:53 +01:00
Patrick von Platen
632dacea2f
[Custom pipeline] Easier loading of local pipelines ( #1327 )
...
* [Custom pipeline] Easier loading of local pipelines
* upgrade black
2022-11-17 16:00:26 +01:00
Patrick von Platen
3fb28c44a3
xMerge branch 'main' of https://github.com/huggingface/diffusers
2022-11-17 15:50:36 +01:00
Patrick von Platen
2dd12e38af
make fix copies again
2022-11-17 15:50:33 +01:00
Prathik Rao
3346ec3acd
integrate ort ( #1110 )
...
* integrate ort
* use return_dict=False
* revert unet return value change
* revert unet return value change
* add note to readme
* adjust readme
* add contact
* `make style`
Co-authored-by: Prathik Rao <prathikrao@microsoft.com >
Co-authored-by: Anton Lozhkov <anton@huggingface.co >
2022-11-17 15:48:41 +01:00
Anton Lozhkov
61719bf26c
Fix gpu_id ( #1326 )
2022-11-17 15:41:33 +01:00
Patrick von Platen
b3911f89a3
make fix copies
2022-11-17 15:06:23 +01:00
Patrick von Platen
245e9cc7ff
fix make style
2022-11-17 15:03:31 +01:00
Pedro Cuenca
1138d63b51
Temporary local test for PIL_INTERPOLATION ( #1317 )
...
* Temporary local test for PIL_INTERPOLATION
* Fix examples too.
2022-11-16 18:42:21 +01:00
Dhruv Karan
afdd7bb635
[Community Pipeline] CLIPSeg + StableDiffusionInpainting ( #1250 )
...
* text inpainting
* refactor
2022-11-16 18:18:51 +01:00
Kamal Raj
aa5c4c2609
doc string args shape fix ( #1243 )
...
* doc string args shape fix
* fix styling
2022-11-16 18:03:44 +01:00
Will Berman
f1fcfdeec5
vq diffusion classifier free sampling ( #1294 )
...
* vq diffusion classifier free sampling
* correct
* uP
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-11-16 17:51:43 +01:00