|
--- |
|
language: |
|
- en |
|
library_name: diffusers |
|
--- |
|
|
|
<center> |
|
|
|
<img width="600px" style="margin: 0 auto;" src="https://storage.googleapis.com/pai-marketing/external_misc/playground-v1-hf.jpg" /> |
|
|
|
<h1 style="margin-top: 30px;"> Playground v1 </h1> |
|
|
|
A model from [Playground](https://playground.com). |
|
</center> |
|
|
|
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](https://playground.com), no updates expected |
|
|
|
## Run Playground v1 |
|
|
|
First, install dependencies: |
|
|
|
```bash |
|
pip install diffusers torch accelerate transformers |
|
``` |
|
|
|
Run the model: |
|
|
|
```python |
|
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") |
|
``` |
|
|