Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/lllyasviel/Fooocus/llms.txt

Use this file to discover all available pages before exploring further.

Fooocus exposes five performance presets that trade image quality against generation speed. Each preset fixes the number of denoising steps for both text-to-image and upscale/variation (UOV) workflows, and — for the three fastest modes — automatically loads a distillation LoRA that is specifically trained to produce coherent images in very few steps. Choosing the right mode is one of the quickest ways to tune the balance between waiting time and output quality.

Performance Modes at a Glance

ModeDisplay NameSteps (txt2img)Steps (UOV)LoRA FileRestricted Features
QUALITYQuality6036No
SPEEDSpeed3018No
EXTREME_SPEEDExtreme Speed88sdxl_lcm_lora.safetensorsYes
LIGHTNINGLightning44sdxl_lightning_4step_lora.safetensorsYes
HYPER_SDHyper-SD44sdxl_hyper_sd_4step_lora.safetensorsYes
Extreme Speed, Lightning, and Hyper-SD are restricted modes. Certain advanced features (such as refiner swap and some ControlNet options) are unavailable when these modes are active, because the distillation LoRAs are designed for unconditional fast sampling and do not interact well with those pipelines.

Quality

The highest-fidelity option. Runs 60 steps for standard generation and 36 steps for upscale/variation tasks. No extra LoRA is loaded. Best for final renders where generation time is not a concern.

Speed

The default mode in most presets. Runs 30 steps (txt2img) and 18 steps (UOV). No extra LoRA is loaded. A practical balance between quality and throughput for everyday use.

Extreme Speed (LCM)

Uses the LCM (Latent Consistency Model) distillation LoRA (sdxl_lcm_lora.safetensors) to produce images in just 8 steps. The LCM LoRA is automatically downloaded from Hugging Face on first use. Suitable for rapid prototyping and iterating on composition.

Lightning

Uses the SDXL Lightning 4-step distillation LoRA (sdxl_lightning_4step_lora.safetensors). Generates in only 4 steps. Lightning-distilled models are trained with a different objective than LCM and tend to produce sharper but sometimes less coherent outputs at very low CFG scales.

Hyper-SD

Uses the Hyper-SD 4-step LoRA (sdxl_hyper_sd_4step_lora.safetensors). Also 4 steps. Hyper-SD focuses on high-fidelity preservation at reduced step counts and can produce results competitive with full-step sampling.

Samplers

Fooocus exposes the full ComfyUI k-sampler family plus two extra samplers. The sampler controls the numerical solver used to integrate the diffusion ODE during denoising.

K-Samplers

These samplers correspond to the standard ComfyUI/k-diffusion sampler names. The table shows the Fooocus internal key and the equivalent Civitai / A1111 display name where available.
Fooocus KeyCivitai / A1111 Name
eulerEuler
euler_ancestralEuler a
heunHeun
heunpp2
dpm_2DPM2
dpm_2_ancestralDPM2 a
lmsLMS
dpm_fastDPM fast
dpm_adaptiveDPM adaptive
dpmpp_2s_ancestralDPM++ 2S a
dpmpp_sdeDPM++ SDE
dpmpp_sde_gpuDPM++ SDE
dpmpp_2mDPM++ 2M
dpmpp_2m_sdeDPM++ 2M SDE
dpmpp_2m_sde_gpuDPM++ 2M SDE
dpmpp_3m_sde
dpmpp_3m_sde_gpu
ddpm
lcmLCM
tcdTCD
restartRestart

Extra Samplers

Fooocus KeyCivitai / A1111 Name
ddimDDIM
uni_pcUniPC
uni_pc_bh2
The DPM++ family (dpmpp_2m, dpmpp_2m_sde, dpmpp_2m_sde_gpu, etc.) is particularly well-suited for SDXL. SDXL can occasionally produce overly smooth textures, and DPM++ samplers tend to introduce fine-grained detail that counterbalances this, resulting in output that reads as natural to human perception. The default sampler in most Fooocus presets is dpmpp_2m_sde_gpu.

Schedulers

The scheduler determines how noise levels are spaced across the denoising steps. Fooocus supports the following scheduler names:
SchedulerNotes
normalStandard linear noise schedule
karrasKarras et al. noise schedule — default in most presets
exponentialExponential noise spacing
sgm_uniformSGM uniform spacing
simpleSimplified schedule
ddim_uniformDDIM-style uniform schedule
lcmLCM-specific schedule, used with Extreme Speed mode
turboTurbo schedule for fast models
align_your_stepsAlign Your Steps optimized schedule
tcdTCD schedule
edm_playground_v2.5EDM schedule tuned for Playground v2.5

Civitai Sampler Compatibility

When importing prompts or generation parameters from Civitai, be aware that some samplers do not use the Karras noise schedule even when the karras scheduler is selected. The following samplers bypass Karras regardless of the scheduler setting:
euler, euler_ancestral, heun, dpm_fast, dpm_adaptive, ddim, uni_pc
This mirrors the behavior of Automatic1111, so metadata exported from A1111 will reproduce correctly in Fooocus.

Build docs developers (and LLMs) love