From 87bfbc320d569e5e08e99a43024f1100de5beae3 Mon Sep 17 00:00:00 2001 From: Steven Liu <59462357+stevhliu@users.noreply.github.com> Date: Thu, 25 Jan 2024 09:37:28 -0800 Subject: [PATCH] [docs] UViT2D (#6643) * uvit2d * fix * fix? * add correct paper * fix paths * update abstract --- docs/source/en/_toctree.yml | 2 ++ docs/source/en/api/models/uvit2d.md | 39 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 docs/source/en/api/models/uvit2d.md diff --git a/docs/source/en/_toctree.yml b/docs/source/en/_toctree.yml index acca4b148c58..9647d92754dc 100644 --- a/docs/source/en/_toctree.yml +++ b/docs/source/en/_toctree.yml @@ -228,6 +228,8 @@ title: UNet3DConditionModel - local: api/models/unet-motion title: UNetMotionModel + - local: api/models/uvit2d + title: UViT2DModel - local: api/models/vq title: VQModel - local: api/models/autoencoderkl diff --git a/docs/source/en/api/models/uvit2d.md b/docs/source/en/api/models/uvit2d.md new file mode 100644 index 000000000000..abea0fdc38c3 --- /dev/null +++ b/docs/source/en/api/models/uvit2d.md @@ -0,0 +1,39 @@ + + +# UVit2DModel + +The [U-ViT](https://hf.co/papers/2301.11093) model is a vision transformer (ViT) based UNet. This model incorporates elements from ViT (considers all inputs such as time, conditions and noisy image patches as tokens) and a UNet (long skip connections between the shallow and deep layers). The skip connection is important for predicting pixel-level features. An additional 3x3 convolutional block is applied prior to the final output to improve image quality. + +The abstract from the paper is: + +*Currently, applying diffusion models in pixel space of high resolution images is difficult. Instead, existing approaches focus on diffusion in lower dimensional spaces (latent diffusion), or have multiple super-resolution levels of generation referred to as cascades. The downside is that these approaches add additional complexity to the diffusion framework. This paper aims to improve denoising diffusion for high resolution images while keeping the model as simple as possible. The paper is centered around the research question: How can one train a standard denoising diffusion models on high resolution images, and still obtain performance comparable to these alternate approaches? The four main findings are: 1) the noise schedule should be adjusted for high resolution images, 2) It is sufficient to scale only a particular part of the architecture, 3) dropout should be added at specific locations in the architecture, and 4) downsampling is an effective strategy to avoid high resolution feature maps. Combining these simple yet effective techniques, we achieve state-of-the-art on image generation among diffusion models without sampling modifiers on ImageNet.* + +## UVit2DModel + +[[autodoc]] UVit2DModel + +## UVit2DConvEmbed + +[[autodoc]] models.unets.uvit_2d.UVit2DConvEmbed + +## UVitBlock + +[[autodoc]] models.unets.uvit_2d.UVitBlock + +## ConvNextBlock + +[[autodoc]] models.unets.uvit_2d.ConvNextBlock + +## ConvMlmLayer + +[[autodoc]] models.unets.uvit_2d.ConvMlmLayer