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

▶️ 1.0M runs 📅 Dec 2022 ⚙️ Cog 0.6.1 🔗 GitHub ⚖️ License
image-editing image-to-image

About

Generate a new image from an input image with Stable Diffusion

Example Output

Prompt:

"A fantasy landscape, trending on artstation"

Output

Example output

Performance Metrics

3.50s Prediction Time
3.53s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/HtKMvJSvuGWDn2B35mM396QGzcrgCNkcgSko8JxtXux4aX9H/sketch-mountains-input.jpeg",
  "width": 512,
  "height": 512,
  "prompt": "A fantasy landscape, trending on artstation",
  "scheduler": "DPMSolverMultistep",
  "num_outputs": 1,
  "guidance_scale": 7.5,
  "prompt_strength": 0.8,
  "num_inference_steps": "25"
}
Input Parameters
seed Type: integer
Random seed. Leave blank to randomize the seed
image (required) Type: string
Inital image to generate variations of.
prompt Type: stringDefault: A fantasy landscape, trending on artstation
Input prompt
scheduler Default: DPMSolverMultistep
Choose a scheduler.
num_outputs Type: integerDefault: 1Range: 1 - 8
Number of images to output. Higher number of outputs may OOM.
guidance_scale Type: numberDefault: 7.5Range: 1 - 20
Scale for classifier-free guidance
negative_prompt Type: string
The prompt NOT to guide the image generation. Ignored when not using guidance
prompt_strength Type: numberDefault: 0.8
Prompt strength when providing the image. 1.0 corresponds to full destruction of information in init image
num_inference_steps Type: integerDefault: 25Range: 1 - 500
Number of denoising steps
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 53915
  0%|          | 0/20 [00:00<?, ?it/s]
  5%|▌         | 1/20 [00:00<00:02,  8.32it/s]
 10%|█         | 2/20 [00:00<00:01,  9.21it/s]
 20%|██        | 4/20 [00:00<00:01, 10.05it/s]
 30%|███       | 6/20 [00:00<00:01, 10.31it/s]
 40%|████      | 8/20 [00:00<00:01, 10.43it/s]
 50%|█████     | 10/20 [00:00<00:00, 10.50it/s]
 60%|██████    | 12/20 [00:01<00:00, 10.53it/s]
 70%|███████   | 14/20 [00:01<00:00, 10.56it/s]
 80%|████████  | 16/20 [00:01<00:00, 10.58it/s]
 90%|█████████ | 18/20 [00:01<00:00, 10.59it/s]
100%|██████████| 20/20 [00:01<00:00, 10.59it/s]
100%|██████████| 20/20 [00:01<00:00, 10.43it/s]
Version Details
Version ID
15a3689ee13b0d2616e98820eca31d4c3abcd36672df6afce5cb6feb1d66087d
Version Created
December 17, 2022
Run on Replicate →