stability-ai/stable-diffusion-inpainting 🖼️🔢❓📝✓ → 🖼️

▶️ 20.7M runs 📅 Dec 2022 ⚙️ Cog 0.9.4 🔗 GitHub ⚖️ License
image-editing image-inpainting

About

Fill in masked parts of images with Stable Diffusion

Example Output

Prompt:

"Face of a yellow cat, high resolution, sitting on a park bench"

Output

Example output

Performance Metrics

2.71s Prediction Time
2.75s Total Time
All Input Parameters
{
  "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png",
  "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png",
  "prompt": "Face of a yellow cat, high resolution, sitting on a park bench",
  "num_outputs": 1,
  "guidance_scale": 7.5,
  "prompt_strength": 0.8,
  "num_inference_steps": 25
}
Input Parameters
mask (required) Type: string
Black and white image to use as mask for inpainting over the image provided. White pixels are inpainted and black pixels are preserved.
seed Type: integer
Random seed. Leave blank to randomize the seed
image (required) Type: string
Initial image to generate variations of. Will be resized to height x width
width Default: 512
Width of generated image in pixels. Needs to be a multiple of 64
height Default: 512
Height of generated image in pixels. Needs to be a multiple of 64
prompt Type: stringDefault: a vision of paradise. unreal engine
Input prompt
scheduler Default: DPMSolverMultistep
Choose a scheduler.
num_outputs Type: integerDefault: 1Range: 1 - 4
Number of images to generate.
guidance_scale Type: numberDefault: 7.5Range: 1 - 20
Scale for classifier-free guidance
negative_prompt Type: string
Specify things to not see in the output
num_inference_steps Type: integerDefault: 50Range: 1 - 500
Number of denoising steps
disable_safety_checker Type: booleanDefault: false
Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 62372
  0%|          | 0/26 [00:00<?, ?it/s]
  8%|▊         | 2/26 [00:00<00:01, 14.22it/s]
 15%|█▌        | 4/26 [00:00<00:01, 15.62it/s]
 23%|██▎       | 6/26 [00:00<00:01, 15.98it/s]
 31%|███       | 8/26 [00:00<00:01, 16.07it/s]
 38%|███▊      | 10/26 [00:00<00:00, 16.14it/s]
 46%|████▌     | 12/26 [00:00<00:00, 16.29it/s]
 54%|█████▍    | 14/26 [00:00<00:00, 16.39it/s]
 62%|██████▏   | 16/26 [00:00<00:00, 16.40it/s]
 69%|██████▉   | 18/26 [00:01<00:00, 16.42it/s]
 77%|███████▋  | 20/26 [00:01<00:00, 16.49it/s]
 85%|████████▍ | 22/26 [00:01<00:00, 16.31it/s]
 92%|█████████▏| 24/26 [00:01<00:00, 16.37it/s]
100%|██████████| 26/26 [00:01<00:00, 16.47it/s]
100%|██████████| 26/26 [00:01<00:00, 16.26it/s]
Version Details
Version ID
95b7223104132402a9ae91cc677285bc5eb997834bd2349fa486f53910fd68b3
Version Created
February 14, 2024
Run on Replicate →