zf-kbot/inpaint-and-guess-prompt 🔢🖼️📝❓ → ❓

▶️ 741.0K runs 📅 Feb 2025 ⚙️ Cog 0.12.0
image-inpainting image-to-text

Performance

4.7sTypical run time
741.0KTotal runs

About

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

Example Output

Prompt:

"white hair"

Output

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

Performance Metrics

4.65s Prediction Time
4.66s Total Time
All Input Parameters
{
  "cfg": 5,
  "mask": "https://replicate.delivery/pbxt/MYJY7ENusmrLv2bdygK666ZsxI5xlFTjbIlTx3SEKSlM7oGe/45988b42-c522-4732-a122-cde32497caca-mask.jpg",
  "seed": 0,
  "image": "https://replicate.delivery/pbxt/MYJY7k5z525kc9Ichp76uuU6WX8CwXeQQ3cDiFp9QGLLbK3J/mom_1.jpg",
  "steps": 20,
  "prompt": "white hair",
  "sampler": "euler_ancestral",
  "fine_edge": "disable",
  "grow_size": 1,
  "scheduler": "karras",
  "predict_type": "standard",
  "edge_strength": 0.55,
  "color_strength": 0.55,
  "negative_prompt": "",
  "inpaint_strength": 1
}
Input Parameters
cfg Type: numberDefault: 5Range: 0 - 20
CFG
mask (required) Type: string
Mask Image
seed Type: integerDefault: 0
Random seed
image (required) Type: string
Input Image
steps Type: integerDefault: 20Range: 1 - 50
Steps
prompt Type: stringDefault:
Prompt
sampler Default: euler_ancestral
Sampler
fine_edge Default: disable
Fine Edge
grow_size Type: integerDefault: 1Range: 1 - 4
Grow Size
scheduler Default: karras
Scheduler
predict_type Default: standard
Predict Type
edge_strength Type: numberDefault: 0.55Range: 0 - 5
Edge Strength
color_strength Type: numberDefault: 0.55Range: 0 - 5
Color Strength
negative_prompt Type: stringDefault:
Negative Prompt
inpaint_strength Type: numberDefault: 1Range: 0 - 5
Inpaint Strength
Output Schema

Output

Type: object

Example Execution Logs
standard mode
Requested to load SD1ClipModel
Loading 1 new model
Apply edge controlnet
Base model type: SD1.5
BrushNet image.shape = torch.Size([1, 1024, 1024, 3]) mask.shape = torch.Size([1, 1024, 1024])
BrushNet CL: image_latents shape = torch.Size([1, 4, 128, 128]) interpolated_mask shape = torch.Size([1, 1, 128, 128])
Requested to load BaseModel
Loading 1 new model
BrushNet inference: do_classifier_free_guidance is True
BrushNet inference, step = 0: image batch = 1, got 2 latents, starting from 0
BrushNet inference: sample torch.Size([2, 4, 128, 128]) , CL torch.Size([2, 5, 128, 128]) dtype torch.float16
  0%|          | 0/20 [00:00<?, ?it/s]
  5%|▌         | 1/20 [00:00<00:02,  6.53it/s]
 10%|█         | 2/20 [00:00<00:02,  6.49it/s]
 15%|█▌        | 3/20 [00:00<00:02,  6.49it/s]
 20%|██        | 4/20 [00:00<00:02,  6.47it/s]
 25%|██▌       | 5/20 [00:00<00:02,  6.47it/s]
 30%|███       | 6/20 [00:00<00:02,  6.47it/s]
 35%|███▌      | 7/20 [00:01<00:02,  6.46it/s]
 40%|████      | 8/20 [00:01<00:01,  6.44it/s]
 45%|████▌     | 9/20 [00:01<00:01,  6.45it/s]
 50%|█████     | 10/20 [00:01<00:01,  6.45it/s]
 55%|█████▌    | 11/20 [00:01<00:01,  6.45it/s]
 60%|██████    | 12/20 [00:01<00:01,  6.45it/s]
 65%|██████▌   | 13/20 [00:02<00:01,  6.45it/s]
 70%|███████   | 14/20 [00:02<00:00,  6.44it/s]
 75%|███████▌  | 15/20 [00:02<00:00,  6.45it/s]
 80%|████████  | 16/20 [00:02<00:00,  6.44it/s]
 85%|████████▌ | 17/20 [00:02<00:00,  6.44it/s]
 90%|█████████ | 18/20 [00:02<00:00,  6.44it/s]
 95%|█████████▌| 19/20 [00:02<00:00,  6.45it/s]
100%|██████████| 20/20 [00:03<00:00,  6.44it/s]
100%|██████████| 20/20 [00:03<00:00,  6.45it/s]
Version Details
Version ID
c3044b0dd1f7abe4f5f095039ab46b85d5e1d55f3837594261a472b2dc311dbb
Version Created
February 19, 2025
Run on Replicate →