Mikail Duzenli
a5eb7f4293
[Examples] add speech to image pipeline example ( #897 )
...
* First draft
* created the SpeechToImagePipeline class
* Corrected speech_to_image_diffusion.py style
* Added safety checker
* Corrected style
* Adding examples to README
2022-10-20 13:47:13 +02:00
Hanusz Leszek
ce7d96681c
DOC Dreambooth Add --sample_batch_size=1 to the 8 GB dreambooth example script ( #829 )
...
Add --sample_batch_size=1 to the 8 GB dreambooth script
2022-10-20 13:44:37 +02:00
SkyTNT
2a0c823527
[Community Pipelines] Long Prompt Weighting Stable Diffusion Pipelines ( #907 )
...
* [Community Pipelines] Long Prompt Weighting
* Update README.md
* fix
* style
* fix style
* Update examples/community/README.md
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-10-19 22:30:46 +02:00
Patrick von Platen
83b696e6c0
[Communit Pipeline] Make sure "mega" uses correct inpaint pipeline ( #908 )
2022-10-19 15:54:07 +02:00
Suraj Patil
fbe807bf57
[dreambooth] allow fine-tuning text encoder ( #883 )
...
* allow fine-tuning text encoder
* fix a few things
* update readme
2022-10-18 17:28:51 +02:00
Nathan Raw
627ad6e8ea
Rename frame filename in interpolation community example ( #881 )
...
🎨 rename frame filename
2022-10-17 20:08:58 +02:00
apolinario
fd26624f3b
Add generic inference example to community pipeline readme ( #874 )
...
Update README.md
2022-10-17 17:16:50 +02:00
Nathan Raw
dff91ee9a9
Fix table in community README.md ( #879 )
...
Update README.md
2022-10-17 16:51:25 +02:00
Pedro Cuenca
4dce37432b
Fix training push_to_hub (unconditional image generation): models were not saved before pushing to hub ( #868 )
...
Fix: models were not saved before pushing to hub.
2022-10-17 15:28:56 +02:00
Patrick von Platen
52e8fdb8ae
Update README.md
2022-10-17 15:25:04 +02:00
Patrick von Platen
ed6c61c6a0
Fix small community pipeline import bug and finish README ( #869 )
...
* up
* Finish
2022-10-17 15:07:48 +02:00
Patrick von Platen
146419f741
All in one Stable Diffusion Pipeline ( #821 )
...
* uP
* correct
* make style
* small change
2022-10-17 14:37:25 +02:00
Patrick von Platen
ad0e9ac7f6
Update README.md
2022-10-17 14:21:44 +02:00
Nathan Raw
ee9875ee9b
Add Stable Diffusion Interpolation Example ( #862 )
...
* ✨ Add Stable Diffusion Interpolation Example
* 💄 style
* Update examples/community/interpolate_stable_diffusion.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-10-17 13:48:42 +02:00
Patrick von Platen
5b94450ec3
Update README.md
2022-10-17 13:41:13 +02:00
Patrick von Platen
765a446dee
Update README.md
2022-10-17 13:34:15 +02:00
Omar Sanseviero
b8c4d5801c
Remove unneeded use_auth_token ( #839 )
2022-10-14 13:27:03 +02:00
Patrick von Platen
d3eb3b35be
[Community] One step unet ( #840 )
2022-10-14 13:09:21 +02:00
Anton Lozhkov
e001fededf
Fix dreambooth loss type with prior_preservation and fp16 ( #826 )
...
Fix dreambooth loss type with prior preservation
2022-10-13 15:41:19 +02:00
pink-red
60c384bcd2
Fix fine-tuning compatibility with deepspeed ( #816 )
2022-10-12 21:43:37 +02:00
Suraj Patil
008b608f15
[train_text2image] Fix EMA and make it compatible with deepspeed. ( #813 )
...
* fix ema
* style
* add comment about copy
* style
* quality
2022-10-12 19:13:22 +02:00
spezialspezial
e895952816
Eventually preserve this typo? :) ( #804 )
2022-10-11 20:06:24 +02:00
Suraj Patil
66a5279a94
stable diffusion fine-tuning ( #356 )
...
* begin text2image script
* loading the datasets, preprocessing & transforms
* handle input features correctly
* add gradient checkpointing support
* fix output names
* run unet in train mode not text encoder
* use no_grad instead of freezing params
* default max steps None
* pad to longest
* don't pad when tokenizing
* fix encode on multi gpu
* fix stupid bug
* add random flip
* add ema
* fix ema
* put ema on cpu
* improve EMA model
* contiguous_format
* don't warp vae and text encode in accelerate
* remove no_grad
* use randn_like
* fix resize
* improve few things
* log epoch loss
* set log level
* don't log each step
* remove max_length from collate
* style
* add report_to option
* make scale_lr false by default
* add grad clipping
* add an option to use 8bit adam
* fix logging in multi-gpu, log every step
* more comments
* remove eval for now
* adress review comments
* add requirements file
* begin readme
* begin readme
* fix typo
* fix push to hub
* populate readme
* update readme
* remove use_auth_token from the script
* address some review comments
* better mixed precision support
* remove redundant to
* create ema model early
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
* better description for train_data_dir
* add diffusers in requirements
* update dataset_name_mapping
* update readme
* add inference example
Co-authored-by: anton-l <anton@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-10-11 19:03:39 +02:00
Henrik Forstén
81bdbb5e2a
DreamBooth DeepSpeed support for under 8 GB VRAM training ( #735 )
...
* Support deepspeed
* Dreambooth DeepSpeed documentation
* Remove unnecessary casts, documentation
Due to recent commits some casts to half precision are not necessary
anymore.
Mention that DeepSpeed's version of Adam is about 2x faster.
* Review comments
2022-10-10 21:29:27 +02:00
YaYaB
906e4105d7
Fix push_to_hub for dreambooth and textual_inversion ( #748 )
...
* Fix push_to_hub for dreambooth and textual_inversion
* Use repo.push_to_hub instead of push_to_hub
2022-10-07 11:50:28 +02:00
Suraj Patil
435433cefd
Update clip_guided_stable_diffusion.py
2022-10-06 18:38:09 +02:00
Suraj Patil
4581f147a6
Update clip_guided_stable_diffusion.py
2022-10-06 18:12:54 +02:00
Suraj Patil
3383f77441
update the clip guided PR according to the new API ( #751 )
2022-10-06 15:43:48 +02:00
Suraj Patil
367a671a06
remove use_auth_token from for TI test ( #747 )
...
remove auth token from for TI test
2022-10-06 11:13:24 +02:00
Patrick von Platen
4deb16e830
[Docs] Advertise fp16 instead of autocast ( #740 )
...
up
2022-10-05 22:20:53 +02:00
Suraj Patil
19e559d5e9
remove use_auth_token from remaining places ( #737 )
...
remove use_auth_token
2022-10-05 17:40:49 +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
Pierre LeMoine
08d4fb6e9f
[dreambooth] Using already created Path in dataset ( #681 )
...
using already created `Path` in dataset
2022-10-05 12:14:30 +02:00
Suraj Patil
14b9754923
[train_unconditional] fix applying clip_grad_norm_ ( #721 )
...
fix clip_grad_norm_
2022-10-04 19:04:05 +02:00
Yuta Hayashibe
7e92c5bc73
Fix typos ( #718 )
...
* Fix typos
* Update examples/dreambooth/train_dreambooth.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
Co-authored-by: Pedro Cuenca <pedro@huggingface.co >
2022-10-04 15:22:14 +02:00
Patrick von Platen
f1484b81b0
[Utils] Add deprecate function and move testing_utils under utils ( #659 )
...
* [Utils] Add deprecate function
* up
* up
* uP
* up
* up
* up
* up
* uP
* up
* fix
* up
* move to deprecation utils file
* fix
* fix
* fix more
2022-10-03 23:44:24 +02:00
Suraj Patil
14f4af8f5b
[dreambooth] fix applying clip_grad_norm_ ( #686 )
...
fix applying clip grad norm
2022-10-03 10:54:01 +02:00
Suraj Patil
210be4fe71
[examples] update transfomers version ( #665 )
...
update transfomrers version in example
2022-09-29 11:16:28 +02:00
Suraj Patil
c16761e9d9
[CLIPGuidedStableDiffusion] take the correct text embeddings ( #667 )
...
take the correct text embeddings
2022-09-28 17:41:34 +02:00
Isamu Isozaki
7f31142c2e
Added script to save during textual inversion training. Issue 524 ( #645 )
...
* Added script to save during training
* Suggested changes
2022-09-28 17:26:02 +02:00
Suraj Patil
c0c98df9a1
[CLIPGuidedStableDiffusion] remove set_format from pipeline ( #653 )
...
remove set_format from pipeline
2022-09-27 18:56:47 +02:00
Suraj Patil
e5eed5235b
[dreambooth] update install section ( #650 )
...
update install section
2022-09-27 17:32:21 +02:00
Suraj Patil
ac665b6484
[examples/dreambooth] don't pass tensor_format to scheduler. ( #649 )
...
don't pass tensor_format
2022-09-27 17:24:12 +02:00
Kashif Rasul
bd8df2da89
[Pytorch] Pytorch only schedulers ( #534 )
...
* pytorch only schedulers
* fix style
* remove match_shape
* pytorch only ddpm
* remove SchedulerMixin
* remove numpy from karras_ve
* fix types
* remove numpy from lms_discrete
* remove numpy from pndm
* fix typo
* remove mixin and numpy from sde_vp and ve
* remove remaining tensor_format
* fix style
* sigmas has to be torch tensor
* removed set_format in readme
* remove set format from docs
* remove set_format from pipelines
* update tests
* fix typo
* continue to use mixin
* fix imports
* removed unsed imports
* match shape instead of assuming image shapes
* remove import typo
* update call to add_noise
* use math instead of numpy
* fix t_index
* removed commented out numpy tests
* timesteps needs to be discrete
* cast timesteps to int in flax scheduler too
* fix device mismatch issue
* small fix
* Update src/diffusers/schedulers/scheduling_pndm.py
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-09-27 15:27:34 +02:00
Zhenhuan Liu
3b747de845
Add training example for DreamBooth. ( #554 )
...
* Add training example for DreamBooth.
* Fix bugs.
* Update readme and default hyperparameters.
* Reformatting code with black.
* Update for multi-gpu trianing.
* Apply suggestions from code review
* improgve sampling
* fix autocast
* improve sampling more
* fix saving
* actuallu fix saving
* fix saving
* improve dataset
* fix collate fun
* fix collate_fn
* fix collate fn
* fix key name
* fix dataset
* fix collate fn
* concat batch in collate fn
* add grad ckpt
* add option for 8bit adam
* do two forward passes for prior preservation
* Revert "do two forward passes for prior preservation"
This reverts commit 661ca4677e .
* add option for prior_loss_weight
* add option for clip grad norm
* add more comments
* update readme
* update readme
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* add docstr for dataset
* update the saving logic
* Update examples/dreambooth/README.md
* remove unused imports
Co-authored-by: Suraj Patil <surajp815@gmail.com >
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2022-09-27 15:01:18 +02:00
Abdullah Alfaraj
bb0c5d1595
Fix docs link to train_unconditional.py ( #642 )
...
the link points to an old location of the train_unconditional.py file
2022-09-27 11:23:09 +02:00
Anton Lozhkov
4f1c989ffb
Add smoke tests for the training examples ( #585 )
...
* Add smoke tests for the training examples
* upd
* use a dummy dataset
* mark as slow
* cleanup
* Update test cases
* naming
2022-09-21 13:36:59 +02:00
Suraj Patil
8d36d5adb1
Update clip_guided_stable_diffusion.py
2022-09-19 18:03:00 +02:00
Suraj Patil
dc2a1c1d07
[examples/community] add CLIPGuidedStableDiffusion ( #561 )
...
* add CLIPGuidedStableDiffusion
* add credits
* add readme
* style
* add clip prompt
* fnfix cond_n
* fix cond fn
* fix cond fn for lms
2022-09-19 17:29:19 +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