cjwbw / stable-diffusion-v2-inpainting

stable-diffusion-v2-inpainting

  • Public
  • 160.1K runs
  • A100 (80GB)
Iterate in playground

Input

string
Shift + Return to add a new line

Input prompt

Default: "a photo of an astronaut riding a horse on mars"

*file
Preview
image

Inital image to generate variations of. Supproting images size with 512x512

*file
Preview
mask

Black and white image to use as mask for inpainting over the image provided. Black pixels are inpainted and white pixels are preserved

number

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

Default: 0.8

integer
(minimum: 1, maximum: 8)

Number of images to output. Higher number of outputs may OOM.

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

Run time and cost

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