ehsanakh's picture
Create README.md
b4433b4
|
raw
history blame
No virus
4.7 kB
metadata
license: other
license_name: playground-v2-community
license_link: >-
  https://huggingface.co/playgroundai/playground-v2-1024px-aesthetic/blob/main/LICENSE.md
tags:
  - text-to-image
  - playground

Playground v2 – 1024px Aesthetic Model

This repository contains a model that generates highly aesthetic images of resolution 1024x1024. You can use the model with Hugging Face 🧨 Diffusers.

< Insert teaser images here >

Playground v2 is a diffusion-based text-to-image generative model. The model was trained from scratch by the research team at Playground.

Playground v2’s images are favored 2.5 times more than those produced by Stable Diffusion XL, according to Playground’s user study.

We are thrilled to release all intermediate checkpoints at different training stages, including evaluation metrics, to the community. We hope this will foster more foundation model research in pixels.

Lastly, we introduce a new benchmark, MJHQ-30K, for automatic evaluation of a model’s aesthetic quality.

Model Description

Using the model with 🧨 Diffusers

Install diffusers >= 0.19.0 and some dependencies:

pip install invisible_watermark transformers accelerate safetensors

To use the model, run:

from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained(
    "playgroundai/playground-v2-1024px-aesthetic",
    torch_dtype=torch.float16,
    use_safetensors=True,
    use_watermark=False,
    variant="fp16"
)
pipe.to("cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image  = pipe(prompt=prompt).images[0]

User Study

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.

< [Aleks] show a screenshot of the Playground UI here? [Daiqing] I think it is fine to just explain>

MJHQ-30K Benchmark

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 curate the high-quality dataset from Midjourney with 10 common categories, each category with 3K 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 256x256.)

We release this benchmark to the public and encourage the community to adopt it for benchmarking their models’ aesthetic quality.

Base Models for all resolution

Model FID Clip Score *SDXL-1-0-refiner 13.04 32.62

playground-v2-256px-base 9.83 31.90 playground-v2-512px-base 9.55 32.08 playground-v2-1024px-base 9.97 31.90

Apart from playground-v2-1024px-aesthetic, we release all 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.)