andreasjansson / stable-diffusion-wip

(development branch) Inpainting for Stable Diffusion

  • Public
  • 13.4K runs
  • A100 (80GB)

Input

string
Shift + Return to add a new line

Input prompt

Default: ""

integer

Width of output image

Default: 512

integer

Height of output image

Default: 512

file
Preview
init_image

Inital image to generate variations of. Will be resized to the specified width and height

file
Preview
mask

Black and white image to use as mask for inpainting over init_image. Black pixels are inpainted and white pixels are preserved. Experimental feature, tends to work better with prompt strength of 0.5-0.7

number

Prompt strength when using init image. 1.0 corresponds to full destruction of information in init image

Default: 0.8

integer

Number of images to output

Default: 1

integer
(minimum: 1, maximum: 500)

Number of denoising steps

Default: 50

number
(minimum: 1, maximum: 20)

Scale for classifier-free guidance

Default: 7.5

integer

Random seed. Leave blank to randomize the seed

Output

output
Generated in

This example was created by a different version, andreasjansson/stable-diffusion-wip:b605bc2c.

Run time and cost

This model costs approximately $0.015 to run on Replicate, or 66 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 A100 (80GB) GPU hardware. Predictions typically complete within 11 seconds. The predict time for this model varies significantly based on the inputs.