yuni-eng / controlnet-sdxl

Create variations of an uploaded image. Please see README for more details

  • Public
  • 1.1K runs
  • L40S
  • GitHub
  • License

Input

image
file

Input image to create in different art medium

string
Shift + Return to add a new line

Choose art medium to generate in that style. For example: a photo of, a acrylic paint of, an anime drawing of, a caricature of, a cartoon of, a drawing of, a graphitti of, an illustration of, a line art of, an oil painting of, a pencil sketch of

Default: ""

string
Shift + Return to add a new line

Specify things to not see in the output

Default: "poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face, blurry, draft, grainy"

integer

Width of output image. Maximum size is 1024x768 or 768x1024 because of memory limits

Default: 768

integer

Height of output image. Maximum size is 1024x768 or 768x1024 because of memory limits

Default: 768

integer
(minimum: 1, maximum: 4)

Number of images to output. > 2 might generate out-of-memory errors.

Default: 1

integer

Random seed. Set to 0 to randomize the seed. If you need tweaks to a generated image, reuse the same seed number from output logs.

Default: 0

integer
(minimum: 1, maximum: 500)

Number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference

Default: 100

number

A higher guidance scale value generate images closely to the text prompt at the expense of lower image quality. Guidance scale is enabled when guidance_scale > 1.

Default: 7.5

Output

output
Generated in

Run time and cost

This model costs approximately $0.013 to run on Replicate, or 76 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 14 seconds.

Readme

Create variations of an uploaded image. The model uses ControleNet Canny + SDXL.

Usage Instructions:

1) Start with an image on a black-and-white background. If you do not have a base image, you can use our coloring page generator here: https://replicate.com/yuni-eng/coloring. Use this model to generate your desired black and white colored image

2) Upload the base image in this model

3) prompt for art medium variations or generate images in different color palettes.

References:

1) Adopted from: https://github.com/lucataco/cog-sdxl-controlnet

2) Some inspirations on how to generate creative outputs: https://karimjedda.com/beautiful-data-visualizations-powered-by-generative-ai/