simbrams/ri 🔢🖼️✓📝❓ → 🖼️

▶️ 808.3K runs 📅 May 2024 ⚙️ Cog 0.9.8
image-inpainting

About

Realistic Inpainting with ControlNET (M-LSD + SEG)

Example Output

Prompt:

"RAW photo of a desert in the Sahara with a road"

Output

Example output

Performance Metrics

11.39s Prediction Time
11.43s Total Time
All Input Parameters
{
  "mask": "https://replicate.delivery/pbxt/Kr4zOeVczJ77u6tLhq1ot1AwkVDNiYaSBOQPQVnQ9GsCE1qF/download%20%2864%29.png",
  "debug": false,
  "image": "https://replicate.delivery/pbxt/Kr4zOwBtTGD37lNectXL4pHOwsrEnHeKRK0pZdi0KeDqxxdx/download%20%283%29.jpeg",
  "steps": 20,
  "prompt": "RAW photo of a desert in the Sahara with a road",
  "strength": 0.95,
  "blur_mask": true,
  "scheduler": "MultistepDPM-Solver-Default",
  "image_size": 960,
  "keep_alive": false,
  "blur_radius": 10,
  "guidance_scale": 7.5,
  "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
  "preserve_elements": true
}
Input Parameters
eta Type: numberDefault: 0
eta
mask (required) Type: string
Mask image
seed Type: integer
Leave blank to randomize
debug Type: booleanDefault: false
Debug mode
image (required) Type: string
Input image
steps Type: integerDefault: 20Range: 0 - 100
num_inference_steps
prompt Type: stringDefault: a tabby cat, high resolution, sitting on a park bench
strength Type: numberDefault: 0.8Range: 0 - 1
strength/weight
blur_mask Type: booleanDefault: true
Blur the mask
do_resize Type: booleanDefault: false
Resize the image
merge_m_s Type: booleanDefault: true
scheduler Default: MultistepDPM-Solver
Choose a scheduler
image_size Type: integerDefault: 960Range: 512 - ∞
Image size
keep_alive Type: booleanDefault: false
Keep model alive
blur_radius Type: integerDefault: 10Range: 0 - 50
Blur radius
only_objects Type: booleanDefault: false
Modify only the objects
seg_strength Type: number
seg_strength
mlsd_strength Type: number
mlsd_strength
tile_strength Type: number
tile_strength
canny_strength Type: number
canny_strength
guidance_scale Type: numberDefault: 7.5Range: 0 - 30
guidance_scale
upscale_factor Type: integerDefault: 2Range: 1 - 4
upscale_factor
dilation_factor Type: integerDefault: 0Range: 0 - 20
Mask dilation factor (0 for no dilation)
negative_prompt Type: stringDefault: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck
preserve_elements Type: booleanDefault: true
preserve_elements
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 30219
  0%|          | 0/19 [00:00<?, ?it/s]
  5%|▌         | 1/19 [00:00<00:05,  3.10it/s]
 11%|█         | 2/19 [00:00<00:04,  3.94it/s]
 16%|█▌        | 3/19 [00:00<00:03,  4.32it/s]
 21%|██        | 4/19 [00:00<00:03,  4.52it/s]
 26%|██▋       | 5/19 [00:01<00:03,  4.64it/s]
 32%|███▏      | 6/19 [00:01<00:02,  4.72it/s]
 37%|███▋      | 7/19 [00:01<00:02,  4.77it/s]
 42%|████▏     | 8/19 [00:01<00:02,  4.80it/s]
 47%|████▋     | 9/19 [00:01<00:02,  4.82it/s]
 53%|█████▎    | 10/19 [00:02<00:01,  4.83it/s]
 58%|█████▊    | 11/19 [00:02<00:01,  4.84it/s]
 63%|██████▎   | 12/19 [00:02<00:01,  4.85it/s]
 68%|██████▊   | 13/19 [00:02<00:01,  4.85it/s]
 74%|███████▎  | 14/19 [00:02<00:01,  4.86it/s]
 79%|███████▉  | 15/19 [00:03<00:00,  4.86it/s]
 84%|████████▍ | 16/19 [00:03<00:00,  4.86it/s]
 89%|████████▉ | 17/19 [00:03<00:00,  4.86it/s]
 95%|█████████▍| 18/19 [00:03<00:00,  4.86it/s]
100%|██████████| 19/19 [00:03<00:00,  5.53it/s]
100%|██████████| 19/19 [00:03<00:00,  4.82it/s]
Version Details
Version ID
1713fdec48707483a50e950ae63212c59293e6abff8abd1834c911b75b881d70
Version Created
July 26, 2025
Run on Replicate →