STAGE 3: F12 Pattern Expansion Complete Changes: 1. Added 7 community pattern JSON files (35 patterns total) - patterns/community/controlnet.json (8 ControlNet patterns) - patterns/community/lora.json (6 LoRA patterns) - patterns/community/vae.json (5 VAE patterns) - patterns/community/animatediff.json (4 AnimateDiff patterns) - patterns/community/ipadapter.json (4 IPAdapter patterns) - patterns/community/facerestore.json (3 FaceRestore patterns) - patterns/community/misc.json (5 misc patterns) 2. Updated ERROR_KEYS in i18n.py - Added 35 new error keys - Total patterns: 57 (22 builtin + 35 community) 3. Added translations for all new patterns - English (en): Complete ✅ - 繁體中文 (zh_TW): Complete ✅ - 简体中文 (zh_CN): Complete ✅ - Other languages (ja, de, fr, it, es, ko): Fallback to English Pattern Categories: - ControlNet: 8 patterns (model loading, preprocessing, sizing) - LoRA: 6 patterns (loading, compatibility, memory) - VAE: 5 patterns (encoding/decoding, precision, tiling) - AnimateDiff: 4 patterns (model, frames, context, memory) - IPAdapter: 4 patterns (model, encoding, compatibility) - FaceRestore: 3 patterns (model, detection, memory) - Miscellaneous: 5 patterns (checkpoint, image format, sampler, scheduler, CLIP) Testing: - ✅ All 9 PatternLoader unit tests pass - ✅ 57 patterns load successfully - ✅ Pattern matching works correctly - ✅ Translations verified for en/zh_TW/zh_CN
56 lines
1.8 KiB
JSON
56 lines
1.8 KiB
JSON
{
|
|
"version": "1.0.0",
|
|
"patterns": [
|
|
{
|
|
"id": "checkpoint_corrupted",
|
|
"regex": "Checkpoint.*corrupted|checkpoint.*invalid|Error loading checkpoint",
|
|
"error_key": "CHECKPOINT_CORRUPTED",
|
|
"has_groups": false,
|
|
"priority": 85,
|
|
"category": "model_loading",
|
|
"tags": ["checkpoint", "corrupted", "model"],
|
|
"notes": "Model checkpoint file corrupted or invalid"
|
|
},
|
|
{
|
|
"id": "image_format_unsupported",
|
|
"regex": "Unsupported image format|Image format.*not supported|cannot identify image file",
|
|
"error_key": "IMAGE_FORMAT_UNSUPPORTED",
|
|
"has_groups": false,
|
|
"priority": 70,
|
|
"category": "data_type",
|
|
"tags": ["image", "format", "file"],
|
|
"notes": "Image file format not supported"
|
|
},
|
|
{
|
|
"id": "sampler_not_found",
|
|
"regex": "Sampler.*not found|Unknown sampler|sampler_name.*invalid",
|
|
"error_key": "SAMPLER_NOT_FOUND",
|
|
"has_groups": false,
|
|
"priority": 75,
|
|
"category": "workflow",
|
|
"tags": ["sampler", "missing", "workflow"],
|
|
"notes": "Specified sampler not found or invalid"
|
|
},
|
|
{
|
|
"id": "scheduler_error",
|
|
"regex": "Scheduler.*error|Invalid scheduler|scheduler.*configuration",
|
|
"error_key": "SCHEDULER_ERROR",
|
|
"has_groups": false,
|
|
"priority": 70,
|
|
"category": "workflow",
|
|
"tags": ["scheduler", "configuration", "workflow"],
|
|
"notes": "Scheduler configuration error"
|
|
},
|
|
{
|
|
"id": "clip_encoding_error",
|
|
"regex": "CLIP.*encoding failed|text_encode.*failed|CLIPTextEncode.*error",
|
|
"error_key": "CLIP_ENCODING_ERROR",
|
|
"has_groups": false,
|
|
"priority": 80,
|
|
"category": "framework",
|
|
"tags": ["clip", "encoding", "text"],
|
|
"notes": "CLIP text encoding failed"
|
|
}
|
|
]
|
|
}
|