qr2ai/outline 🔢🖼️📝❓✓ → 🖼️

▶️ 57.2K runs 📅 Nov 2023 ⚙️ Cog 0.8.6
image-to-image sketch-to-image

About

From Sketch to Reality: Transforming Outlines into Lifelike Images

Example Output

Prompt:

"Modern skyscraper, glass facade, urban skyline, clear day."

Output

Example output

Performance Metrics

9.28s Prediction Time
14.92s Total Time
All Input Parameters
{
  "seed": 0,
  "image": "https://replicate.delivery/pbxt/Lcg9dtkX66pSWfULefLA7UMExDQoonK9lmdA9y1R6kbEF9Q6/outline.png",
  "width": 1024,
  "height": 1024,
  "prompt": "Modern skyscraper, glass facade, urban skyline, clear day.",
  "sampler": "Euler a",
  "blur_size": 3,
  "use_canny": false,
  "lora_input": "",
  "lora_scale": "",
  "kernel_size": 3,
  "num_outputs": 1,
  "sketch_type": "HedPidNet",
  "suffix_prompt": "Futuristic Concept, Cutting-Edge Technology, Historical Landmark, Timeless Aesthetics, sharp focus, 8k, uhd, file grain, masterpiece",
  "guidance_scale": 7.5,
  "weight_primary": 0.7,
  "generate_square": false,
  "negative_prompt": "deformed, animation, anime, cartoon, comic, cropped, out of frame, low res, draft, cgi, low quality render, thumbnail",
  "weight_secondary": 0.6,
  "erosion_iterations": 2,
  "dilation_iterations": 1,
  "num_inference_steps": 35,
  "adapter_conditioning_scale": 0.9
}
Input Parameters
seed Type: integerDefault: 0
Random seed. Enter 0 to randomize the seed.
image Type: string
Input image for img2img or inpaint mode
width Type: integerDefault: 1920
Width of output image
height Type: integerDefault: 1088
Height of output image
prompt Type: stringDefault: An acrylic painting featuring flowing, elegant strokes, set against a swirling backdrop of deep charcoal, slate gray, and ethereal white. Accents of radiant gold and soft amber cascade across the canvas, highlighted by delicate specks of luminescent gold dust.
Input prompt
sampler Default: Euler a
The sampling method
blur_size Type: integerDefault: 3
Gaussian blur kernel size (must be an odd number).
use_canny Type: booleanDefault: false
Whether to combine with canny detector for better details
lora_input Type: stringDefault:
Comma-separated list of LoRA models from Hugging Face or local paths. Leave empty to skip LoRA.
lora_scale Type: stringDefault:
Comma-separated list of scales for each LoRA model. Must match the number of LoRAs. Leave empty if no LoRA is used.
kernel_size Type: integerDefault: 3
Kernel size for morphological operations (must be an odd number).
num_outputs Type: integerDefault: 1Range: 1 - 4
Number of images to output.
sketch_type Default: HedPidNet
Choose the type of sketch detector
suffix_prompt Type: stringDefault: Imagine the harmonious blend of graceful forms and cosmic elegance, where each curve and line tells a story amidst the celestial backdrop, captured in a luxurious interplay of dark and light hues.
Additional prompt
guidance_scale Type: numberDefault: 12Range: 1 - 50
Scale for classifier-free guidance
weight_primary Type: numberDefault: 0.7
Weight for the primary sketch in the combination (e.g., PidiNet in PidiNetCanny).
generate_square Type: booleanDefault: false
Whether to generate a square image (assert height == width)
negative_prompt Type: stringDefault: worst quality, low quality, low resolution, blurry, ugly, disfigured, uncrafted, filled ring, packed ring, cross, star, distorted, stagnant, watermark
Input Negative Prompt
weight_secondary Type: numberDefault: 0.6
Weight for the secondary sketch in the combination (e.g., Canny in PidiNetCanny).
erosion_iterations Type: integerDefault: 2
Number of iterations for erosion.
dilation_iterations Type: integerDefault: 5
Number of iterations for dilation.
num_inference_steps Type: integerDefault: 35Range: 1 - 500
Number of denoising steps
adapter_conditioning_scale Type: numberDefault: 0.97Range: 0 - 2
Scale for adapter module
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
INFO:root:Image loaded successfully.
INFO:root:HED sketch generated successfully.
INFO:root:PidiNet sketch generated successfully.
INFO:root:Combined HED and PidiNet sketches with weights 0.5384615384615385/0.46153846153846156.
INFO:root:Random seed generated: 707529904
  0%|          | 0/35 [00:00<?, ?it/s]
  3%|▎         | 1/35 [00:00<00:05,  5.67it/s]
  6%|▌         | 2/35 [00:00<00:04,  7.09it/s]
  9%|▊         | 3/35 [00:00<00:04,  7.71it/s]
 11%|█▏        | 4/35 [00:00<00:03,  8.05it/s]
 14%|█▍        | 5/35 [00:00<00:03,  8.25it/s]
 17%|█▋        | 6/35 [00:00<00:03,  8.38it/s]
 20%|██        | 7/35 [00:00<00:03,  8.46it/s]
 23%|██▎       | 8/35 [00:00<00:03,  8.50it/s]
 26%|██▌       | 9/35 [00:01<00:03,  8.52it/s]
 29%|██▊       | 10/35 [00:01<00:02,  8.56it/s]
 31%|███▏      | 11/35 [00:01<00:02,  8.58it/s]
 34%|███▍      | 12/35 [00:01<00:02,  8.60it/s]
 37%|███▋      | 13/35 [00:01<00:02,  8.61it/s]
 40%|████      | 14/35 [00:01<00:02,  8.62it/s]
 43%|████▎     | 15/35 [00:01<00:02,  8.62it/s]
 46%|████▌     | 16/35 [00:01<00:02,  8.63it/s]
 49%|████▊     | 17/35 [00:02<00:02,  8.63it/s]
 51%|█████▏    | 18/35 [00:02<00:01,  8.63it/s]
 54%|█████▍    | 19/35 [00:02<00:01,  8.63it/s]
 57%|█████▋    | 20/35 [00:02<00:01,  8.63it/s]
 60%|██████    | 21/35 [00:02<00:01,  8.63it/s]
 63%|██████▎   | 22/35 [00:02<00:01,  8.64it/s]
 66%|██████▌   | 23/35 [00:02<00:01,  8.64it/s]
 69%|██████▊   | 24/35 [00:02<00:01,  8.64it/s]
 71%|███████▏  | 25/35 [00:02<00:01,  8.64it/s]
 74%|███████▍  | 26/35 [00:03<00:01,  8.64it/s]
 77%|███████▋  | 27/35 [00:03<00:00,  8.64it/s]
 80%|████████  | 28/35 [00:03<00:00,  8.64it/s]
 83%|████████▎ | 29/35 [00:03<00:00,  8.63it/s]
 86%|████████▌ | 30/35 [00:03<00:00,  8.63it/s]
 89%|████████▊ | 31/35 [00:03<00:00,  8.64it/s]
 91%|█████████▏| 32/35 [00:03<00:00,  8.64it/s]
 94%|█████████▍| 33/35 [00:03<00:00,  8.54it/s]
 97%|█████████▋| 34/35 [00:04<00:00,  8.57it/s]
100%|██████████| 35/35 [00:04<00:00,  8.59it/s]
100%|██████████| 35/35 [00:04<00:00,  8.49it/s]
INFO:root:Image generation completed successfully.
Version Details
Version ID
6f713aeb58eb5034ad353de02d7dd56c9efa79f2214e6b89a790dad8ca67ef49
Version Created
November 7, 2024
Run on Replicate →