fofr / style-transfer

Transfer the style of one image to another

  • Public
  • 837.9K runs
  • L40S
  • GitHub
  • License

Input

*file
Preview
style_image

Copy the style from this image

file

An optional image to copy structure from. Output images will use the same aspect ratio.

string
Shift + Return to add a new line

Prompt for the image

Default: "An astronaut riding a unicorn"

string
Shift + Return to add a new line

Things you do not want to see in your image

Default: ""

integer

Width of the output image (ignored if structure image given)

Default: 1024

integer

Height of the output image (ignored if structure image given)

Default: 1024

string

Model to use for the generation

Default: "fast"

integer
(minimum: 1, maximum: 10)

Number of images to generate

Default: 1

number
(minimum: 0, maximum: 2)

Strength of the depth controlnet

Default: 1

number
(minimum: 0, maximum: 1)

How much of the original image (and colors) to preserve (0 is all, 1 is none, 0.65 is a good balance)

Default: 0.65

string

Format of the output images

Default: "webp"

integer
(minimum: 0, maximum: 100)

Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.

Default: 80

integer

Set a seed for reproducibility. Random by default.

Output

output
Generated in

Run time and cost

This model costs approximately $0.0041 to run on Replicate, or 243 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 L40S GPU hardware. Predictions typically complete within 5 seconds.