Text-to-Image Task
How to define a text-to-image task
{
"version": "2.0.0",
"base_model": {
"name": "stabilityai/sdxl-turbo"
},
"prompt": "best quality, ultra high res, photorealistic++++, 1girl, desert, full shot, dark stillsuit, "
"stillsuit mask up, gloves, solo, highly detailed eyes,"
"hyper-detailed, high quality visuals, dim Lighting, ultra-realistic, sharply focused, octane render,"
"8k UHD",
"negative_prompt": "no moon++, buried in sand, bare hands, figerless gloves, "
"blue stillsuit, barefoot, weapon, vegetation, clouds, glowing eyes++, helmet, "
"bare handed, no gloves, double mask, simplified, abstract, unrealistic, impressionistic, "
"low resolution,",
"task_config": {
"num_images": 9,
"steps": 1,
"cfg": 0
},
"lora": {
"model": "https://civitai.com/api/download/models/178048"
},
"controlnet": {
"model": "diffusers/controlnet-canny-sdxl-1.0",
"image_dataurl": "data:image/png;base64,12FE1373...",
"preprocess": {
"method": "canny"
},
"weight": 70
},
"scheduler": {
"method": "EulerAncestralDiscreteScheduler",
"args": {
"timestep_spacing": "trailing"
}
}
}Acceleration of the Image Generation
SDXL Turbo
1. Use the SDXL Turbo model as the base model:
2. Set the timestep_spacing scheduler argument:
timestep_spacing scheduler argument:3. Set cfg to zero, and set steps to 1-4:
cfg to zero, and set steps to 1-4:Latent Consistency Models (LCM)
Base Model
Huggingface Model ID
File Download URL
LoRA Model
Controlnet
Image Preprocessing
Method
Arguments
Prompt
Prompt Weighting
Textual Inversion
VAE
SDXL Refiner
Task Config
Last updated