diffusers/tests/pipelines
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
..
altdiffusion [SD Img2Img] resize source images to multiple of 8 instead of 32 (#1571) 2023-01-13 16:02:22 +01:00
audio_diffusion Add condtional generation to AudioDiffusionPipeline (#1826) 2023-01-03 14:09:14 +01:00
dance_diffusion Make sure all pipelines can run with batched input (#1669) 2022-12-13 12:50:15 +01:00
ddim Make sure all pipelines can run with batched input (#1669) 2022-12-13 12:50:15 +01:00
ddpm Bump to 0.12.0.dev0 (#1771) 2022-12-19 18:44:08 +01:00
dit DiT Pipeline (#1806) 2023-01-17 23:09:29 +01:00
karras_ve Fix slow tests (#1983) 2023-01-12 18:24:51 +01:00
latent_diffusion Fix/update the LDM pipeline and tests (#1743) 2022-12-18 11:49:53 +01:00
paint_by_example Improve reproduceability 2/3 (#1906) 2023-01-04 23:51:17 +01:00
pndm Standardize fast pipeline tests with PipelineTestMixin (#1526) 2022-12-06 18:35:30 +01:00
repaint Nightly integration tests (#1664) 2022-12-16 18:51:11 +01:00
score_sde_ve Standardize fast pipeline tests with PipelineTestMixin (#1526) 2022-12-06 18:35:30 +01:00
stable_diffusion [SD Img2Img] resize source images to multiple of 8 instead of 32 (#1571) 2023-01-13 16:02:22 +01:00
stable_diffusion_2 [Flax] Add Flax inpainting impl (#1966) 2023-01-17 10:42:04 +01:00
stable_diffusion_safe Standardize fast pipeline tests with PipelineTestMixin (#1526) 2022-12-06 18:35:30 +01:00
unclip Use pipeline tests mixin for UnCLIP pipeline tests + unCLIP MPS fixes (#1908) 2023-01-16 15:21:58 +01:00
versatile_diffusion Standardize fast pipeline tests with PipelineTestMixin (#1526) 2022-12-06 18:35:30 +01:00
vq_diffusion Standardize fast pipeline tests with PipelineTestMixin (#1526) 2022-12-06 18:35:30 +01:00
__init__.py Reorganize pipeline tests (#963) 2022-10-24 16:34:01 +02:00