2.5 KiB
2.5 KiB
Cache File Structure:
The .cache.json file uses a simple key-value structure:
{
"model_filename": "concept_name",
"another_model_filename": "concept_name"
}
Manual Corrections
Common Detection Issues:
-
Lightning Models
- Often detected as "SDXL"
- Should be corrected to "Lightning"
- Example correction:
"modelXL_Lightning4Steps": "Lightning", "realisticXL_Lightning6Steps": "Lightning" -
Hyper Models
- May be detected as "SDXL"
- Should be corrected to "Hyper"
- Example correction:
"hyperSDXL_v1": "Hyper", "hyperSuperModel_v2": "Hyper" -
Flux Models
- Some variants may be undetected, because symlinked
- Should be labeled as "Flux"
- Example correction:
"fluxV3_quality": "Flux", "fluxV2_speed": "Flux"
Editing Process:
- Open
.cache.jsonin any text editor or IDE - Locate the incorrect model mapping by keywords
symlinkandunknownto found undetected / failed models - Change the concept value to the correct type (case sensitive, you can selec only these:
SD1,SD2,SDXL,SD3,StableCascade,Turbo,Flux,KwaiKolors,Hunyuan,Playground,Pony,LCM,Lightning,Hyper,PixartSigma) - Save the file
- Restart ComfyUI to apply changes
Supported Concept Values:
Use these exact strings for concept values:
- "SD1"
- "SD2"
- "SDXL"
- "SD3"
- "StableCascade"
- "Turbo"
- "Flux"
- "KwaiKolors"
- "Hunyuan"
- "Playground"
- "Pony"
- "LCM"
- "Lightning"
- "Hyper"
- "PixartSigma"
Best Practices:
-
Backup Original File
- Keep a backup of the original
.cache.jsonif already exist - Useful for reference or recovery backed up
- Keep a backup of the original
-
Naming Patterns
- Lightning models often include "Lightning" or "xSteps" in filename
- Hyper models typically include "Hyper" in name
- Flux models usually contain "Flux" in name
-
Validation
- Ensure correct JSON formatting
- Verify quotation marks and commas
- Test workflow after changes
-
Documentation
- Keep notes of manual corrections
- Document special cases for future reference
Troubleshooting:
- If the workflow fails to load after editing, check JSON syntax
- Verify concept names match exactly (case-sensitive)
- Ensure no trailing commas in JSON
- Restart ComfyUI after any changes
Remember: Correct concept detection is crucial for optimal model performance and appropriate sampler settings.