diffusers/scripts
Kashif Rasul 37d113cce7
DiT Pipeline (#1806)
* added dit model

* import

* initial pipeline

* initial convert script

* initial pipeline

* make style

* raise valueerror

* single function

* rename classes

* use DDIMScheduler

* timesteps embedder

* samples to cpu

* fix var names

* fix numpy type

* use timesteps class for proj

* fix typo

* fix arg name

* flip_sin_to_cos and better var names

* fix C shape cal

* make style

* remove unused imports

* cleanup

* add back patch_size

* initial dit doc

* typo

* Update docs/source/api/pipelines/dit.mdx

Co-authored-by: Suraj Patil <surajp815@gmail.com>

* added copyright license headers

* added example usage and toc

* fix variable names asserts

* remove comment

* added docs

* fix typo

* upstream changes

* set proper device for drop_ids

* added initial dit pipeline test

* update docs

* fix imports

* make fix-copies

* isort

* fix imports

* get rid of more magic numbers

* fix code when guidance is off

* remove block_kwargs

* cleanup script

* removed to_2tuple

* use FeedForward class instead of another MLP

* style

* work on mergint DiTBlock with BasicTransformerBlock

* added missing final_dropout and args to BasicTransformerBlock

* use norm from block

* fix arg

* remove unused arg

* fix call to class_embedder

* use timesteps

* make style

* attn_output gets multiplied

* removed commented code

* use Transformer2D

* use self.is_input_patches

* fix flags

* fixed conversion to use Transformer2DModel

* fixes for pipeline

* remove dit.py

* fix timesteps device

* use randn_tensor and fix fp16 inf.

* timesteps_emb already the right dtype

* fix dit test class

* fix test and style

* fix norm2 usage in vq-diffusion

* added author names to pipeline and lmagenet labels link

* fix tests

* use norm_type as string

* rename dit to transformer

* fix name

* fix test

* set  norm_type = "layer" by default

* fix tests

* do not skip common tests

* Update src/diffusers/models/attention.py

Co-authored-by: Suraj Patil <surajp815@gmail.com>

* revert AdaLayerNorm API

* fix norm_type name

* make sure all components are in eval mode

* revert norm2 API

* compact

* finish deprecation

* add slow tests

* remove @

* refactor some stuff

* upload

* Update src/diffusers/pipelines/dit/pipeline_dit.py

* finish more

* finish docs

* improve docs

* finish docs

Co-authored-by: Suraj Patil <surajp815@gmail.com>
Co-authored-by: William Berman <WLBberman@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2023-01-17 23:09:29 +01:00
..
__init__.py Fix conversion script 2022-07-15 17:00:41 +00:00
change_naming_configs_and_checkpoints.py Style the `scripts` directory (#250) 2022-08-25 15:46:09 +02:00
conversion_ldm_uncond.py Style the `scripts` directory (#250) 2022-08-25 15:46:09 +02:00
convert_dance_diffusion_to_diffusers.py [Dance Diffusion] Add dance diffusion (#803) 2022-10-25 18:39:25 +02:00
convert_ddpm_original_checkpoint_to_diffusers.py Fix typos and add Typo check GitHub Action (#483) 2022-09-16 15:36:51 +02:00
convert_diffusers_to_original_stable_diffusion.py [Conversion] Support convert diffusers to safetensors (#1996) 2023-01-16 12:58:01 +01:00
convert_dit_to_diffusers.py DiT Pipeline (#1806) 2023-01-17 23:09:29 +01:00
convert_kakao_brain_unclip_to_diffusers.py [Deterministic torch randn] Allow tensors to be generated on CPU (#1902) 2023-01-03 18:22:40 +01:00
convert_ldm_original_checkpoint_to_diffusers.py Fix layer names convert LDM script (#1206) 2022-11-09 12:08:30 +01:00
convert_models_diffuser_to_diffusers.py Add UNet 1d for RL model for planning + colab (#105) 2022-11-14 13:48:48 -08:00
convert_ncsnpp_original_checkpoint_to_diffusers.py Style the `scripts` directory (#250) 2022-08-25 15:46:09 +02:00
convert_original_stable_diffusion_to_diffusers.py [Conversion] Improve safetensors (#1989) 2023-01-16 14:26:56 +01:00
convert_stable_diffusion_checkpoint_to_onnx.py Make repo structure consistent (#1862) 2022-12-30 11:51:08 +01:00
convert_unclip_txt2img_to_image_variation.py unCLIP image variation (#1781) 2022-12-28 14:17:09 +01:00
convert_versatile_diffusion_to_diffusers.py Correct help text for scheduler_type flag in scripts. (#1749) 2022-12-19 11:27:23 +01:00
convert_vq_diffusion_to_diffusers.py vq diffusion classifier free sampling (#1294) 2022-11-16 17:51:43 +01:00
generate_logits.py Fix typos and add Typo check GitHub Action (#483) 2022-09-16 15:36:51 +02:00