fofr / latent-consistency-model
Super-fast, 0.6s per image. LCM with img2img, large batching and canny controlnet
- Price: $0.0004 per second of GPU time, billed from prepaid credit. Failed runs are free.
- License: MIT
- Source: https://github.com/fofr/cog-lcm
- Collection: Edit images
- Status: available now
Run fofr/latent-consistency-model with the API
curl -s https://binerai.biner.dev/v1/predictions \
-H "Authorization: Bearer $BINERAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"fofr/latent-consistency-model","input":{}}'
Then poll GET https://binerai.biner.dev/v1/predictions/:id or pass a webhook URL. Full reference: API docs.
Input
| Field | Type | Description |
|---|---|---|
seed | integer | Random seed. Leave blank to randomize the seed |
image | string | Input image for img2img |
width | integer, default 768 | Width of output image. Lower if out of memory |
height | integer, default 768 | Height of output image. Lower if out of memory |
prompt | string, default "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k" | For multiple prompts, enter each on a new line. |
num_images | integer, default 1 | Number of images per prompt |
control_image | string | Image for controlnet conditioning |
guidance_scale | number, default 8 | Scale for classifier-free guidance |
archive_outputs | boolean, default false | Option to archive the output images |
prompt_strength | number, default 0.8 | Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image |
sizing_strategy | string, default "width/height" | Decide how to resize images – use width/height, resize based on input image or control image |
lcm_origin_steps | integer, default 50 | |
canny_low_threshold | number, default 100 | Canny low threshold |
num_inference_steps | integer, default 8 | Number of denoising steps. Recommend 1 to 8 steps. |
canny_high_threshold | number, default 200 | Canny high threshold |
control_guidance_end | number, default 1 | Controlnet end |
control_guidance_start | number, default 0 | Controlnet start |
disable_safety_checker | boolean, default false | Disable safety checker for generated images. This feature is only available through the API |
controlnet_conditioning_scale | number, default 2 | Controlnet conditioning scale |
Examples
Example runs from Replicate.
- Self-portrait oil painting, a beautiful cyborg with golden hair, 8k output
- Self-portrait oil painting, a beautiful cyborg with golden hair, 8k Self-portrait oil painting, a beautiful cyborg with purple hair, 8k Self-portrait oil painting, a beautiful cyborg with ginger hair, 8k Self-portrait oil painting, a beautiful cyborg with green hair, 8k output output output output
- detailed output output output output
- A landscape painting output
- Self-portrait oil painting, a beautiful cyborg with golden hair, 8k output
Description via replicate.