Instructions to use playgroundai/playground-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use playgroundai/playground-v1 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-v1", 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
Playground v1
A model from Playground.
Playground v1 is a latent diffusion model that improves the overall HDR quality to get more stunning images.
Status: no longer active on playground.com, no updates expected
Run Playground v1
First, install dependencies:
pip install diffusers torch accelerate transformers
Run the model:
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained("playgroundai/playground-v1")
if torch.cuda.is_available():
pipe.to("cuda")
prompt = "An Astronaut in a jungle, photorealistic"
image = pipe(prompt=prompt).images[0]
image.save("playground-v1.png")
- Downloads last month
- 12