Instructions to use Aminrabi/diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Aminrabi/diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Aminrabi/diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Pipelines
The [DiffusionPipeline] is the quickest way to load any pretrained diffusion pipeline from the Hub for inference.
You shouldn't use the [DiffusionPipeline] class for training or finetuning a diffusion model. Individual
components (for example, [UNet2DModel] and [UNet2DConditionModel]) of diffusion pipelines are usually trained individually, so we suggest directly working with them instead.
The pipeline type (for example [StableDiffusionPipeline]) of any diffusion pipeline loaded with [~DiffusionPipeline.from_pretrained] is automatically
detected and pipeline components are loaded and passed to the __init__ function of the pipeline.
Any pipeline object can be saved locally with [~DiffusionPipeline.save_pretrained].
DiffusionPipeline
[[autodoc]] DiffusionPipeline - all - call - device - to - components