Pipelines provide a unified, high-level API to run complex diffusion models in inference. Diffusion systems typically consist of multiple independently trained components (e.g., Autoencoders, Unet, Text Encoders, Schedulers, and Safety Checkers) that must work together. Pipelines encapsulate these components, handling the pre-processing, model forwarding, and post-processing required for an end-to-end workflow.
Key Characteristics:
- Fidelity: They load officially published weights to yield outputs consistent with original research papers.
- Simplicity: They offer a simple user interface for inference.
- Inference Only: Pipelines are designed for inference and have PyTorch's autograd disabled via
torch.no_grad. They are not intended for training functionality.