Instructions to use playgroundai/playground-v2.5-1024px-aesthetic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use playgroundai/playground-v2.5-1024px-aesthetic with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("playgroundai/playground-v2.5-1024px-aesthetic", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
diffusers support
#2
by valhalla - opened
This PR make some changes to the config to be able to load the pipeline directly from diffusers.
from diffusers import StableDiffusionXLPipeline
device = "cuda"
model_id = "playgroundai/playground-v2.5-1024px-aesthetic"
pipe = StableDiffusionXLPipeline.from_pretrained(
model_id, torch_dtype=torch.float16, variant="fp16",
).to(device)
images = pipe("...", num_inference_steps=25, guidance_scale=5, generator=generator).images
valhalla changed pull request status to open
thanks a lot!
ehsanakh changed pull request status to merged