zf-kbot / inpaint-and-guess-prompt

Use a mask to inpaint the image or generate a prompt based on the mask.

  • Public
  • 42.5K runs
  • L40S

Input

string

Predict Type

Default: "standard"

*file
Preview
image

Input Image

*file
Preview
mask

Mask Image

string
Shift + Return to add a new line

Prompt

Default: ""

string
Shift + Return to add a new line

Negative Prompt

Default: ""

integer
(minimum: 1, maximum: 4)

Grow Size

Default: 1

string

Fine Edge

Default: "disable"

number
(minimum: 0, maximum: 5)

Edge Strength

Default: 0.55

number
(minimum: 0, maximum: 5)

Color Strength

Default: 0.55

number
(minimum: 0, maximum: 5)

Inpaint Strength

Default: 1

integer

Random seed

Default: 0

integer
(minimum: 1, maximum: 50)

Steps

Default: 20

number
(minimum: 0, maximum: 20)

CFG

Default: 5

string

Sampler

Default: "euler_ancestral"

string

Scheduler

Default: "karras"

Output

{ "type": "standard", "image": "https://replicate.delivery/xezq/o42hNGIUs4YIJBrO6PATqdgIYeGirEEHvHXYkDl0RtzzXMJKA/output.png" }
Generated in

Run time and cost

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

Readme

Overview 🌈

This model supports two modes, image inpaint and prompt generation

Using in Website 🖥️

Home: Remaker AI

Web Features: Photo Editor

Getting Started 🚀

Inpaint

  1. “predict_type” param selection “standard” for inpaint mode
  2. Upload your image to “image” param
  3. Upload the mask image to “mask” param
  4. Input the inpaint prompt
  5. Get image!

Guess Prompt

  1. “predict_type” param selection “guess” for guess mode
  2. Upload your image to “image” param
  3. Upload the mask image to “mask” param
  4. Get prompt! (The model will guess the final prompt based on the image position marked by the mask)