andreasjansson/twinpainting 🖼️🔢📝 → 🖼️

▶️ 326 runs 📅 Jan 2023 ⚙️ Cog 0.6.1
image-inpainting mask-guided text-to-image

About

Turn two prompts into one image

Example Output

Output

Example outputExample outputExample outputExample outputExample output

Performance Metrics

8.11s Prediction Time
8.16s Total Time
All Input Parameters
{
  "mask": "https://replicate.delivery/pbxt/I9YrWg5znrQ4H8pfYvCdtPWHIKs4CGmXb4WTfcJvTzZEjEFa/batman.png",
  "max_border": "0.64",
  "min_border": 0.25,
  "guidance_scale": 7.5,
  "background_prompt": "brick wall",
  "foreground_prompt": "graffiti",
  "border_blur_radius": "10",
  "num_inference_steps": 25,
  "final_guidance_scale": 2
}
Input Parameters
mask (required) Type: string
Black and white image. White pixels will be generated based on 'background_prompt' and black pixels use 'foreground_prompt'. Will be resized to 512x512 pixels
seed Type: integer
Random seed. Leave blank to randomize the seed
max_border Type: numberDefault: 0.9Range: 0 - 1
Upper threshold for blurred border to use for inpainting mask
min_border Type: numberDefault: 0.25Range: 0 - 1
Lower threshold for blurred border to use for inpainting mask
guidance_scale Type: numberDefault: 7.5Range: 1 - 20
Scale for classifier-free guidance, applies to background_prompt and foreground_prompt
background_prompt (required) Type: string
Prompt used for the white pixels of 'mask'
foreground_prompt Type: string
Prompt used for the black pixels of 'mask'
border_blur_radius Type: numberDefault: 15Range: 1 - 100
Blur radius for border between foreground and background that will be inpainted
num_inference_steps Type: integerDefault: 25Range: 1 - 500
Number of denoising steps
final_guidance_scale Type: numberDefault: 2Range: 1 - 20
Guidance scale for final masking step
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 23560
  0%|          | 0/26 [00:00<?, ?it/s]
  4%|▍         | 1/26 [00:00<00:03,  7.66it/s]
 12%|█▏        | 3/26 [00:00<00:02,  9.78it/s]
 19%|█▉        | 5/26 [00:00<00:02, 10.43it/s]
 27%|██▋       | 7/26 [00:00<00:01, 10.71it/s]
 35%|███▍      | 9/26 [00:00<00:01, 10.88it/s]
 42%|████▏     | 11/26 [00:01<00:01, 10.97it/s]
 50%|█████     | 13/26 [00:01<00:01, 11.02it/s]
 58%|█████▊    | 15/26 [00:01<00:00, 11.05it/s]
 65%|██████▌   | 17/26 [00:01<00:00, 11.07it/s]
 73%|███████▎  | 19/26 [00:01<00:00, 11.09it/s]
 81%|████████  | 21/26 [00:01<00:00, 11.11it/s]
 88%|████████▊ | 23/26 [00:02<00:00, 11.10it/s]
 96%|█████████▌| 25/26 [00:02<00:00, 11.11it/s]
100%|██████████| 26/26 [00:02<00:00, 10.91it/s]
  0%|          | 0/26 [00:00<?, ?it/s]
  4%|▍         | 1/26 [00:00<00:02,  8.73it/s]
 12%|█▏        | 3/26 [00:00<00:02, 10.39it/s]
 19%|█▉        | 5/26 [00:00<00:01, 10.76it/s]
 27%|██▋       | 7/26 [00:00<00:01, 10.92it/s]
 35%|███▍      | 9/26 [00:00<00:01, 11.00it/s]
 42%|████▏     | 11/26 [00:01<00:01, 11.05it/s]
 50%|█████     | 13/26 [00:01<00:01, 11.08it/s]
 58%|█████▊    | 15/26 [00:01<00:00, 11.11it/s]
 65%|██████▌   | 17/26 [00:01<00:00, 11.12it/s]
 73%|███████▎  | 19/26 [00:01<00:00, 11.12it/s]
 81%|████████  | 21/26 [00:01<00:00, 11.14it/s]
 88%|████████▊ | 23/26 [00:02<00:00, 11.15it/s]
 96%|█████████▌| 25/26 [00:02<00:00, 11.15it/s]
100%|██████████| 26/26 [00:02<00:00, 11.03it/s]
  0%|          | 0/31 [00:00<?, ?it/s]
  6%|▋         | 2/31 [00:00<00:01, 14.54it/s]
 13%|█▎        | 4/31 [00:00<00:01, 15.89it/s]
 19%|█▉        | 6/31 [00:00<00:01, 16.35it/s]
 26%|██▌       | 8/31 [00:00<00:01, 16.57it/s]
 32%|███▏      | 10/31 [00:00<00:01, 16.70it/s]
 39%|███▊      | 12/31 [00:00<00:01, 16.70it/s]
 45%|████▌     | 14/31 [00:00<00:01, 16.80it/s]
 52%|█████▏    | 16/31 [00:00<00:00, 16.69it/s]
 58%|█████▊    | 18/31 [00:01<00:00, 16.75it/s]
 65%|██████▍   | 20/31 [00:01<00:00, 16.73it/s]
 71%|███████   | 22/31 [00:01<00:00, 16.64it/s]
 77%|███████▋  | 24/31 [00:01<00:00, 16.61it/s]
 84%|████████▍ | 26/31 [00:01<00:00, 16.52it/s]
 90%|█████████ | 28/31 [00:01<00:00, 16.58it/s]
 97%|█████████▋| 30/31 [00:01<00:00, 16.63it/s]
100%|██████████| 31/31 [00:01<00:00, 16.58it/s]
Version Details
Version ID
c38155597f1da4bb6fd4d9bbd51e9f4d7ace362e88132c1b13fc95f7a6c9d97b
Version Created
January 17, 2023
Run on Replicate →