qr2ai/outline 🔢🖼️📝❓✓ → 🖼️
About
From Sketch to Reality: Transforming Outlines into Lifelike Images

Example Output
Prompt:
"Modern skyscraper, glass facade, urban skyline, clear day."
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
- Random seed. Enter 0 to randomize the seed.
- image
- Input image for img2img or inpaint mode
- width
- Width of output image
- height
- Height of output image
- prompt
- Input prompt
- sampler
- The sampling method
- blur_size
- Gaussian blur kernel size (must be an odd number).
- use_canny
- Whether to combine with canny detector for better details
- lora_input
- Comma-separated list of LoRA models from Hugging Face or local paths. Leave empty to skip LoRA.
- lora_scale
- Comma-separated list of scales for each LoRA model. Must match the number of LoRAs. Leave empty if no LoRA is used.
- kernel_size
- Kernel size for morphological operations (must be an odd number).
- num_outputs
- Number of images to output.
- sketch_type
- Choose the type of sketch detector
- suffix_prompt
- Additional prompt
- guidance_scale
- Scale for classifier-free guidance
- weight_primary
- Weight for the primary sketch in the combination (e.g., PidiNet in PidiNetCanny).
- generate_square
- Whether to generate a square image (assert height == width)
- negative_prompt
- Input Negative Prompt
- weight_secondary
- Weight for the secondary sketch in the combination (e.g., Canny in PidiNetCanny).
- erosion_iterations
- Number of iterations for erosion.
- dilation_iterations
- Number of iterations for dilation.
- num_inference_steps
- Number of denoising steps
- adapter_conditioning_scale
- Scale for adapter module
Output Schema
Output
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