catacolabs / sdxl-ad-inpaint

Product advertising image generator using SDXL

  • Public
  • 379K runs
  • L40S
  • GitHub
  • License

Input

image
*file

Remove background from this image

string

What percentage of the image width to fill with product

Default: "Original"

*string
Shift + Return to add a new line

Describe the new setting for your product

string
Shift + Return to add a new line

Describe what you do not want in your setting

Default: "low quality, out of frame, illustration, 3d, sepia, painting, cartoons, sketch, watermark, text, Logo, advertisement"

string

Possible SDXL image sizes

Default: "1024, 1024"

string

scheduler

Default: "K_EULER"

integer

Inference Steps

Default: 40

number

Guidance Scale

Default: 7.5

number
(minimum: 0.3, maximum: 0.9)

controlnet conditioning scale for generalization

Default: 0.9

integer
(minimum: 0, maximum: 40)

Number of steps to refine

Default: 10

boolean

Applies the original product image to the final result

Default: true

integer

Empty or 0 for a random image

Output

output
Generated in
Report

Run time and cost

This model costs approximately $0.032 to run on Replicate, or 31 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 33 seconds. The predict time for this model varies significantly based on the inputs.

Readme

About

This is a custom model, and is my attempt at tackling the challenge of: creating an Ad Image generator

How It Works

Based on SDXL and ControlNet to create a background setting for your product image

If your input image does not have the product images centered, turn off “apply_img”

Support Me

Follow my work on Twitter! @lucataco93