lucataco / style-aligned

GoogleAI: Style Aligned Image Generation via Shared Attention

  • Public
  • 1.2K runs
  • A100 (80GB)
  • GitHub
  • Paper
  • License
Iterate in playground

Input

*string
Shift + Return to add a new line

Input prompts, separated by newlines

*string
Shift + Return to add a new line

Input style prompt. If using an image for style transfer, this should describe the style of that image

string
Shift + Return to add a new line

Input negative prompt

Default: "low-resolution"

file

Input image for style transfer

string
Shift + Return to add a new line

Subject (not style) of image used for style transfer. Ignored if image not set.

Default: "None"

number
(minimum: 0.01, maximum: 10)

Shared score shift (Actual value will take log of this). Higher value induces higher fidelity, set 1 for no shift

Default: 2

number
(minimum: 0, maximum: 1)

Shared score scale. Higher value induces higher, set 1 for no rescale

Default: 1

number
(minimum: 1.1, maximum: 20)

Guidance scale

Default: 7

integer
(minimum: 256, maximum: 2048)

Output image width. Will be rounded to nearest 64

Default: 768

integer
(minimum: 256, maximum: 2048)

Output image height. Will be rounded to nearest 64

Default: 768

integer
(minimum: 10, maximum: 150)

Number of inference steps

Default: 50

integer

Random seed. Leave blank to randomize the seed

Output

outputoutputoutputoutput
Generated in

This output was created using a different version of the model, lucataco/style-aligned:a9086389.

Run time and cost

This model costs approximately $0.069 to run on Replicate, or 14 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 50 seconds. The predict time for this model varies significantly based on the inputs.

Readme

Implementation of https://github.com/google/style-aligned/ for SDXL

Changelog

12/11/23 - Added input images for style transfer

Project Github Page

@article{hertz2023StyleAligned,
  title={Style Aligned Image Generation via Shared Attention},
  author={Hertz, Amir and Voynov, Andrey and Fruchter, Shlomi and Cohen-Or, Daniel},
  booktitle={arXiv preprint arxiv:2312.02133},
  year={2023}
}