This repository contains a model that generates highly aesthetic images of resolution 1024x1024. You can use the model with Hugging Face 🧨 Diffusers.
Playground v2
is a diffusion-based text-to-image generative model. The model was trained from scratch by the research team at
Playground
.
Images generated by Playground v2 are favored
2.5
times more than those produced by Stable Diffusion XL, according to Playground’s
user study
.
We are thrilled to release
intermediate checkpoints
at different training stages, including evaluation metrics, to the community. We hope this will encourage further research into foundational models for image generation.
Lastly, we introduce a new benchmark,
MJHQ-30K
, for automatic evaluation of a model’s aesthetic quality.
Summary:
This model generates images based on text prompts. It is a Latent Diffusion Model that uses two fixed, pre-trained text encoders (
OpenCLIP-ViT/G
and
CLIP-ViT/L
). It follows the same architecture as
Stable Diffusion XL
.
Using the model with 🧨 Diffusers
Install diffusers >= 0.24.0 and some dependencies:
pip install transformers accelerate safetensors
To use the model, run the following snippet.
Note
: It is recommend to use
guidance_scale=3.0
.
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained(
"playgroundai/playground-v2-1024px-aesthetic",
torch_dtype=torch.float16,
use_safetensors=True,
add_watermarker=False,
variant="fp16"
)
pipe.to("cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt=prompt, guidance_scale=3.0).images[0]
According to user studies conducted by Playground, involving over 2,600 prompts and thousands of users, the images generated by Playground v2 are favored
2.5
times more than those produced by
Stable Diffusion XL
.
We report user preference metrics on
PartiPrompts
, following standard practice, and on an internal prompt dataset curated by the Playground team. The “Internal 1K” prompt dataset is diverse and covers various categories and tasks.
During the user study, we give users instructions to evaluate image pairs based on both (1) their aesthetic preference and (2) the image-text alignment.
We introduce a new benchmark,
MJHQ-30K
, for automatic evaluation of a model’s aesthetic quality. The benchmark computes FID on a high-quality dataset to gauge aesthetic quality.
We have curated a high-quality dataset from Midjourney, featuring 10 common categories, with each category containing 3,000 samples. Following common practice, we use aesthetic score and CLIP score to ensure high image quality and high image-text alignment. Furthermore, we take extra care to make the data diverse within each category.
For Playground v2, we report both the overall FID and per-category FID. All FID metrics are computed at resolution 1024x1024. Our benchmark results show that our model outperforms SDXL-1-0-refiner in overall FID and all category FIDs, especially in people and fashion categories. This is in line with the results of the user study, which indicates a correlation between human preference and FID score on the MJHQ-30K benchmark.
We release this benchmark to the public and encourage the community to adopt it for benchmarking their models’ aesthetic quality.
Apart from
playground-v2-1024px-aesthetic
, we release intermediate checkpoints at different training stages to the community in order to foster foundation model research in pixels. Here, we report the FID score and CLIP score on the MSCOCO14 evaluation set for the reference purposes. (Note that our reported numbers may differ from the numbers reported in SDXL’s published results, as our prompt list may be different.)
How to cite us
@misc{playground-v2,
url={[https://huggingface.co/playgroundai/playground-v2-1024px-aesthetic](https://huggingface.co/playgroundai/playground-v2-1024px-aesthetic)},
title={Playground v2},
author={Li, Daiqing and Kamko, Aleks and Sabet, Ali and Akhgari, Ehsan and Xu, Linmiao and Doshi, Suhail}
}
Runs of JCTN playground-v2-1024px-aesthetic on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About playground-v2-1024px-aesthetic huggingface.co Model
More playground-v2-1024px-aesthetic license Visit here:
playground-v2-1024px-aesthetic huggingface.co is an AI model on huggingface.co that provides playground-v2-1024px-aesthetic's model effect (), which can be used instantly with this JCTN playground-v2-1024px-aesthetic model. huggingface.co supports a free trial of the playground-v2-1024px-aesthetic model, and also provides paid use of the playground-v2-1024px-aesthetic. Support call playground-v2-1024px-aesthetic model through api, including Node.js, Python, http.
playground-v2-1024px-aesthetic huggingface.co is an online trial and call api platform, which integrates playground-v2-1024px-aesthetic's modeling effects, including api services, and provides a free online trial of playground-v2-1024px-aesthetic, you can try playground-v2-1024px-aesthetic online for free by clicking the link below.
JCTN playground-v2-1024px-aesthetic online free url in huggingface.co:
playground-v2-1024px-aesthetic is an open source model from GitHub that offers a free installation service, and any user can find playground-v2-1024px-aesthetic on GitHub to install. At the same time, huggingface.co provides the effect of playground-v2-1024px-aesthetic install, users can directly use playground-v2-1024px-aesthetic installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
playground-v2-1024px-aesthetic install url in huggingface.co: