fofr/latent-consistency-model 🔢🖼️📝✓❓ → 🖼️
About
Super-fast, 0.6s per image. LCM with img2img, large batching and canny controlnet

Example Output
Prompt:
"Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"
Output

Performance Metrics
0.85s
Prediction Time
1.29s
Total Time
All Input Parameters
{ "image": "https://replicate.delivery/pbxt/JlG0Efd2ubBp9yGnlOi7I9Se2rXnJSrPFogLf0YieKgjnWN6/download-6.png", "width": 768, "height": 768, "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "num_images": 1, "guidance_scale": 8, "archive_outputs": false, "prompt_strength": 0.45, "sizing_strategy": "width/height", "lcm_origin_steps": 50, "canny_low_threshold": 100, "num_inference_steps": 4, "canny_high_threshold": 200, "control_guidance_end": 1, "control_guidance_start": 0, "controlnet_conditioning_scale": 2 }
Input Parameters
- seed
- Random seed. Leave blank to randomize the seed
- image
- Input image for img2img
- width
- Width of output image. Lower if out of memory
- height
- Height of output image. Lower if out of memory
- prompt
- For multiple prompts, enter each on a new line.
- num_images
- Number of images per prompt
- control_image
- Image for controlnet conditioning
- guidance_scale
- Scale for classifier-free guidance
- archive_outputs
- Option to archive the output images
- prompt_strength
- Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image
- sizing_strategy
- Decide how to resize images – use width/height, resize based on input image or control image
- lcm_origin_steps
- canny_low_threshold
- Canny low threshold
- num_inference_steps
- Number of denoising steps. Recommend 1 to 8 steps.
- canny_high_threshold
- Canny high threshold
- control_guidance_end
- Controlnet end
- control_guidance_start
- Controlnet start
- disable_safety_checker
- Disable safety checker for generated images. This feature is only available through the API
- controlnet_conditioning_scale
- Controlnet conditioning scale
Output Schema
Output
Example Execution Logs
Using seed: 38477 Found 1 prompt: - Self-portrait oil painting, a beautiful cyborg with golden hair, 8k Making 1 image Using given dimensions img2img mode 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 17.91it/s] 100%|██████████| 4/4 [00:00<00:00, 17.82it/s] 100%|██████████| 4/4 [00:00<00:00, 17.81it/s]
Version Details
- Version ID
683d19dc312f7a9f0428b04429a9ccefd28dbf7785fef083ad5cf991b65f406f
- Version Created
- January 10, 2024