-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[docs] General updates #5378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[docs] General updates #5378
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,16 +12,74 @@ specific language governing permissions and limitations under the License. | |
|
|
||
| # Pipelines | ||
|
|
||
| Pipelines provide a simple way to run state-of-the-art diffusion models in inference by bundling all of the necessary components (multiple independently-trained models, schedulers, and processors) into a single end-to-end class. Pipelines are flexible and they can be adapted to use different scheduler or even model components. | ||
| Pipelines provide a simple way to run state-of-the-art diffusion models in inference by bundling all of the necessary components (multiple independently-trained models, schedulers, and processors) into a single end-to-end class. Pipelines are flexible and they can be adapted to use different schedulers or even model components. | ||
|
|
||
| All pipelines are built from the base [`DiffusionPipeline`] class which provides basic functionality for loading, downloading, and saving all the components. | ||
| All pipelines are built from the base [`DiffusionPipeline`] class which provides basic functionality for loading, downloading, and saving all the components. Specific pipeline types (for example [`StableDiffusionPipeline`]) loaded with [`~DiffusionPipeline.from_pretrained`] are automatically detected and the pipeline components are loaded and passed to the `__init__` function of the pipeline. | ||
|
|
||
| <Tip warning={true}> | ||
|
|
||
| Pipelines do not offer any training functionality. You'll notice PyTorch's autograd is disabled by decorating the [`~DiffusionPipeline.__call__`] method with a [`torch.no_grad`](https://pytorch.org/docs/stable/generated/torch.no_grad.html) decorator because pipelines should not be used for training. If you're interested in training, please take a look at the [Training](../traininig/overview) guides instead! | ||
| You shouldn't use the [`DiffusionPipeline`] class for training. Individual components (for example, [`UNet2DModel`] and [`UNet2DConditionModel`]) of diffusion pipelines are usually trained individually, so we suggest directly working with them instead. | ||
|
|
||
| <br> | ||
|
|
||
| Pipelines do not offer any training functionality. You'll notice PyTorch's autograd is disabled by decorating the [`~DiffusionPipeline.__call__`] method with a [`torch.no_grad`](https://pytorch.org/docs/stable/generated/torch.no_grad.html) decorator because pipelines should not be used for training. If you're interested in training, please take a look at the [Training](../../training/overview) guides instead! | ||
|
|
||
| </Tip> | ||
|
|
||
| The table below lists all the pipelines currently available in 🤗 Diffusers and the tasks they support. Click on a pipeline to view its abstract and published paper. | ||
|
|
||
| | Pipeline | Tasks | | ||
| |---|---| | ||
| | [AltDiffusion](alt_diffusion) | image2image | | ||
| | [Attend-and-Excite](attend_and_excite) | text2image | | ||
| | [Audio Diffusion](audio_diffusion) | image2audio | | ||
| | [AudioLDM](audioldm) | text2audio | | ||
| | [AudioLDM2](audioldm2) | text2audio | | ||
| | [BLIP Diffusion](blip_diffusion) | text2image | | ||
| | [Consistency Models](consistency_models) | unconditional image generation | | ||
| | [ControlNet](controlnet) | text2image, image2image, inpainting | | ||
| | [ControlNet with Stable Diffusion XL](controlnet_sdxl) | text2image | | ||
| | [Cycle Diffusion](cycle_diffusion) | image2image | | ||
| | [Dance Diffusion](dance_diffusion) | unconditional audio generation | | ||
| | [DDIM](ddim) | unconditional image generation | | ||
| | [DDPM](ddpm) | unconditional image generation | | ||
| | [DeepFloyd IF](deepfloyd_if) | text2image, image2image, inpainting, super-resolution | | ||
| | [DiffEdit](diffedit) | inpainting | | ||
| | [DiT](dit) | text2image | | ||
| | [GLIGEN](gligen) | text2image | | ||
| | [InstructPix2Pix](pix2pix) | image editing | | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like we're missing DeepFloyd's IF.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DeepFloyd IF should be on line 42 :) |
||
| | [Kandinsky](kandinsky) | text2image, image2image, inpainting, interpolation | | ||
| | [Kandinsky 2.2](kandinsky_v22) | text2image, image2image, inpainting | | ||
| | [Latent Diffusion](latent_diffusion) | text2image, super-resolution | | ||
| | [LDM3D](ldm3d_diffusion) | text2image, text-to-3D | | ||
| | [MultiDiffusion](panorama) | text2image | | ||
| | [MusicLDM](musicldm) | text2audio | | ||
| | [PaintByExample](paint_by_example) | inpainting | | ||
| | [ParaDiGMS](paradigms) | text2image | | ||
| | [Pix2Pix Zero](pix2pix_zero) | image editing | | ||
| | [PNDM](pndm) | unconditional image generation | | ||
| | [RePaint](repaint) | inpainting | | ||
| | [ScoreSdeVe](score_sde_ve) | unconditional image generation | | ||
| | [Self-Attention Guidance](self_attention_guidance) | text2image | | ||
| | [Semantic Guidance](semantic_stable_diffusion) | text2image | | ||
| | [Shap-E](shap_e) | text-to-3D, image-to-3D | | ||
| | [Spectrogram Diffusion](spectrogram_diffusion) | | | ||
| | [Stable Diffusion](stable_diffusion/overview) | text2image, image2image, depth2image, inpainting, image variation, latent upscaler, super-resolution | | ||
| | [Stable Diffusion Model Editing](model_editing) | model editing | | ||
| | [Stable Diffusion XL](stable_diffusion_xl) | text2image, image2image, inpainting | | ||
| | [Stable unCLIP](stable_unclip) | text2image, image variation | | ||
| | [KarrasVe](karras_ve) | unconditional image generation | | ||
| | [T2I Adapter](adapter) | text2image | | ||
| | [Text2Video](text_to_video) | text2video, video2video | | ||
| | [Text2Video Zero](text_to_video_zero) | text2video | | ||
| | [UnCLIP](unclip) | text2image, image variation | | ||
| | [Unconditional Latent Diffusion](latent_diffusion_uncond) | unconditional image generation | | ||
| | [UniDiffuser](unidiffuser) | text2image, image2text, image variation, text variation, unconditional image generation, unconditional audio generation | | ||
| | [Value-guided planning](value_guided_sampling) | value guided sampling | | ||
| | [Versatile Diffusion](versatile_diffusion) | text2image, image variation | | ||
| | [VQ Diffusion](vq_diffusion) | text2image | | ||
| | [Wuerstchen](wuerstchen) | text2image | | ||
|
|
||
| ## DiffusionPipeline | ||
|
|
||
| [[autodoc]] DiffusionPipeline | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.