wolverinn/realistic-background 🔢🖼️📝❓ → ❓

▶️ 139.0K runs 📅 Sep 2023 ⚙️ Cog 0.9.20 🔗 GitHub ⚖️ License
background-replacement controlnet image-editing image-generation stable-diffusion

About

replace background with Stable Diffusion and ControlNet

Example Output

Prompt:

"RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street"

Output

{"images":["https://replicate.delivery/pbxt/xibd2uijtJaDGZXfNzjWQxU5WRw4VX70umqzeZLlgeJUeuPNB/f5d81b84-5d70-11ef-9093-460568269919.png","https://replicate.delivery/pbxt/Wa1x6BeVQ2S5AaaRSwiD1L1f5CgoJQeym4fWHFXsYWGs8uPNB/f5fec158-5d70-11ef-9093-460568269919.png"],"payload":{"info":"{"prompt": "RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street", "all_prompts": ["RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street", "RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street"], "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation", "all_negative_prompts": ["(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation", "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation"], "seed": 3447393137, "all_seeds": [3447393137, 3447393138], "subseed": 1674732274, "all_subseeds": [1674732274, 1674732275], "subseed_strength": 0, "width": 800, "height": 800, "sampler_name": "DPM++ 2M SDE", "cfg_scale": 7.0, "steps": 25, "batch_size": 2, "restore_faces": false, "face_restoration_model": null, "sd_model_name": "realisticVisionV51_v51VAE", "sd_model_hash": "15012c538f", "sd_vae_name": null, "sd_vae_hash": null, "seed_resize_from_w": -1, "seed_resize_from_h": -1, "denoising_strength": 0.75, "extra_generation_params": {"Denoising strength": 0.75, "Mask mode": "Inpaint not masked", "Mask blur": 2, "Inpaint area": "Only masked", "Masked area padding": 4, "Masked content": "latent noise", "Schedule type": "Karras"}, "index_of_first_image": 0, "infotexts": ["RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street
Negative prompt: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation
Steps: 25, Sampler: DPM++ 2M SDE, Schedule type: Karras, CFG scale: 7.0, Seed: 3447393137, Size: 800x800, Model hash: 15012c538f, Model: realisticVisionV51_v51VAE, Denoising strength: 0.75, Mask mode: Inpaint not masked, Mask blur: 2, Inpaint area: Only masked, Masked area padding: 4, Masked content: latent noise, Version: 1.10.1", "RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street
Negative prompt: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation
Steps: 25, Sampler: DPM++ 2M SDE, Schedule type: Karras, CFG scale: 7.0, Seed: 3447393138, Size: 800x800, Model hash: 15012c538f, Model: realisticVisionV51_v51VAE, Denoising strength: 0.75, Mask mode: Inpaint not masked, Mask blur: 2, Inpaint area: Only masked, Masked area padding: 4, Masked content: latent noise, Version: 1.10.1"], "styles": [], "job_timestamp": "20240818144831", "clip_skip": 1, "is_using_inpainting_conditioning": false, "version": "1.10.1"}"}}

Performance Metrics

17.43s Prediction Time
17.55s Total Time
All Input Parameters
{
  "seed": -1,
  "image": "https://replicate.delivery/pbxt/JV7RFNswGhUqe6jQqPBfZDJAAadBqgzPuRStQjY5JsMiucvT/1.jpeg",
  "steps": 25,
  "prompt": "RAW photo, car, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, neon city street",
  "cfg_scale": 7,
  "max_width": 1024,
  "scheduler": "Karras",
  "max_height": 1024,
  "batch_count": 2,
  "sampler_name": "DPM++ 2M SDE",
  "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
  "denoising_strength": 0.75,
  "only_masked_padding_pixels": 4
}
Input Parameters
seed Type: integerDefault: -1
seed
image (required) Type: string
Image to replace background
steps Type: integerDefault: 20
steps
prompt Type: stringDefault: RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
prompt en
cfg_scale Type: integerDefault: 7
cfg scale
max_width Type: integerDefault: 1024
max width
scheduler Default: Karras
scheduler
max_height Type: integerDefault: 1024
max height
batch_count Type: integerDefault: 1
generate count
sampler_name Default: DPM++ 2M SDE
sampler name
negative_prompt Type: stringDefault: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation
negative prompt
denoising_strength Type: numberDefault: 0.75
denoising strength
only_masked_padding_pixels Type: integerDefault: 4
only masked padding,pixels
Output Schema
images Type: arrayItems: string
Images
payload Type: object
Payload
Example Execution Logs
2024-08-18 14:48:31,424 - ControlNet - WARNING - Deprecated alias 'input_image' detected. This field will be removed on 2024-06-01Please use 'image' instead.
2024-08-18 14:48:31,429 - ControlNet - WARNING - Deprecated alias 'input_image' detected. This field will be removed on 2024-06-01Please use 'image' instead.
  0%|          | 0/19 [00:00<?, ?it/s]
Total progress:   0%|          | 0/19 [00:00<?, ?it/s]
  5%|▌         | 1/19 [00:00<00:07,  2.50it/s]
Total progress:  11%|█         | 2/19 [00:00<00:03,  4.60it/s]
 11%|█         | 2/19 [00:00<00:07,  2.28it/s]
Total progress:  16%|█▌        | 3/19 [00:00<00:04,  3.24it/s]
 16%|█▌        | 3/19 [00:01<00:06,  2.30it/s]
Total progress:  21%|██        | 4/19 [00:01<00:05,  2.81it/s]
 21%|██        | 4/19 [00:01<00:06,  2.38it/s]
Total progress:  26%|██▋       | 5/19 [00:01<00:05,  2.61it/s]
 26%|██▋       | 5/19 [00:02<00:05,  2.35it/s]
Total progress:  32%|███▏      | 6/19 [00:02<00:05,  2.50it/s]
 32%|███▏      | 6/19 [00:02<00:05,  2.31it/s]
Total progress:  37%|███▋      | 7/19 [00:02<00:04,  2.43it/s]
 37%|███▋      | 7/19 [00:03<00:05,  2.30it/s]
Total progress:  42%|████▏     | 8/19 [00:03<00:04,  2.39it/s]
 42%|████▏     | 8/19 [00:03<00:04,  2.31it/s]
Total progress:  47%|████▋     | 9/19 [00:03<00:04,  2.36it/s]
 47%|████▋     | 9/19 [00:03<00:04,  2.30it/s]
Total progress:  53%|█████▎    | 10/19 [00:03<00:03,  2.34it/s]
 53%|█████▎    | 10/19 [00:04<00:03,  2.30it/s]
Total progress:  58%|█████▊    | 11/19 [00:04<00:03,  2.33it/s]
 58%|█████▊    | 11/19 [00:04<00:03,  2.31it/s]
Total progress:  63%|██████▎   | 12/19 [00:04<00:03,  2.32it/s]
 63%|██████▎   | 12/19 [00:05<00:03,  2.29it/s]
Total progress:  68%|██████▊   | 13/19 [00:05<00:02,  2.31it/s]
 68%|██████▊   | 13/19 [00:05<00:02,  2.30it/s]
Total progress:  74%|███████▎  | 14/19 [00:05<00:02,  2.31it/s]
 74%|███████▎  | 14/19 [00:06<00:02,  2.30it/s]
Total progress:  79%|███████▉  | 15/19 [00:06<00:01,  2.30it/s]
 79%|███████▉  | 15/19 [00:06<00:01,  2.30it/s]
Total progress:  84%|████████▍ | 16/19 [00:06<00:01,  2.30it/s]
 84%|████████▍ | 16/19 [00:06<00:01,  2.30it/s]
Total progress:  89%|████████▉ | 17/19 [00:06<00:00,  2.30it/s]
 89%|████████▉ | 17/19 [00:07<00:00,  2.30it/s]
Total progress:  95%|█████████▍| 18/19 [00:07<00:00,  2.30it/s]
 95%|█████████▍| 18/19 [00:07<00:00,  2.33it/s]
100%|██████████| 19/19 [00:08<00:00,  2.34it/s]
100%|██████████| 19/19 [00:08<00:00,  2.32it/s]
Total progress: 100%|██████████| 19/19 [00:07<00:00,  2.30it/s]
Total progress: 100%|██████████| 19/19 [00:08<00:00,  2.30it/s]
Total progress: 100%|██████████| 19/19 [00:08<00:00,  2.21it/s]
Version Details
Version ID
1fbd2b79f5cc40346dece1f1bba461c4239e012497b479ade7a493979b493ca4
Version Created
August 25, 2024
Run on Replicate →