roblester / editorial-cartoon

An SDXL model Finetuned for style on a bespoke dataset of Stylized Illustrations

  • Public
  • 1.3K runs
  • L40S
  • SDXL fine-tune

Input

string
Shift + Return to add a new line

Input prompt

Default: "An astronaut riding a rainbow unicorn"

string
Shift + Return to add a new line

Input Negative Prompt

Default: ""

file

Input image for img2img or inpaint mode

file

Input mask for inpaint mode. Black areas will be preserved, white areas will be inpainted.

integer

Width of output image

Default: 1024

integer

Height of output image

Default: 1024

integer
(minimum: 1, maximum: 4)

Number of images to output.

Default: 1

string

scheduler

Default: "K_EULER"

integer
(minimum: 1, maximum: 500)

Number of denoising steps

Default: 50

number
(minimum: 1, maximum: 50)

Scale for classifier-free guidance

Default: 7.5

number
(minimum: 0, maximum: 1)

Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image

Default: 0.8

integer

Random seed. Leave blank to randomize the seed

string

Which refine style to use

Default: "no_refiner"

number
(minimum: 0, maximum: 1)

For expert_ensemble_refiner, the fraction of noise to use

Default: 0.8

integer

For base_image_refiner, the number of steps to refine, defaults to num_inference_steps

boolean

Applies a watermark to enable determining if an image is generated in downstream applications. If you have other provisions for generating or deploying images safely, you can use this to disable watermarking.

Default: true

number
(minimum: 0, maximum: 1)

LoRA additive scale. Only applicable on trained models.

Default: 0.6

boolean

This model’s safety checker can’t be disabled when running on the website. Learn more about platform safety on Replicate.

Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)

Default: false

Output

output
Generated in

Run time and cost

This model costs approximately $0.030 to run on Replicate, or 33 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 31 seconds.

Readme

Usage Tips: INCLUDE β€œillustration in the style of TOK” in your prompt to trigger the finetuned LoRA model and get the application of the style.

Using image inputs can help ground the model with a representation of the scene you are trying to create, but you should also include a written description in the prompt. If you want the output to more closely resemble the input image, bring down the #prompt_strength value. (note: you will compromise some of the stylistic influence of the finetuned model by bringing down the prompt strength)

Finetuning done using a custom synthetic dataset of 24 images

Made by Robert Lester: https://www.robertlestercreative.com/