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.7 KiB
JSON
56 lines
1.7 KiB
JSON
{
|
|
"version": "1.0.0",
|
|
"patterns": [
|
|
{
|
|
"id": "vae_decode_failed",
|
|
"regex": "VAE decode.*failed|Error during VAE decode|VAEDecode.*error",
|
|
"error_key": "VAE_DECODE_FAILED",
|
|
"has_groups": false,
|
|
"priority": 80,
|
|
"category": "framework",
|
|
"tags": ["vae", "decode", "latent"],
|
|
"notes": "VAE latent decode operation failed"
|
|
},
|
|
{
|
|
"id": "vae_encode_failed",
|
|
"regex": "VAE encode.*failed|Error during VAE encode|VAEEncode.*error",
|
|
"error_key": "VAE_ENCODE_FAILED",
|
|
"has_groups": false,
|
|
"priority": 80,
|
|
"category": "framework",
|
|
"tags": ["vae", "encode", "image"],
|
|
"notes": "VAE image encode operation failed"
|
|
},
|
|
{
|
|
"id": "vae_tiling_error",
|
|
"regex": "VAE tiling.*error|VAE tile size.*invalid|tiled_size.*too",
|
|
"error_key": "VAE_TILING_ERROR",
|
|
"has_groups": false,
|
|
"priority": 70,
|
|
"category": "workflow",
|
|
"tags": ["vae", "tiling", "size"],
|
|
"notes": "VAE tiling size configuration error"
|
|
},
|
|
{
|
|
"id": "vae_fp16_issue",
|
|
"regex": "VAE.*fp16.*error|VAE precision.*mismatch|VAE.*half precision",
|
|
"error_key": "VAE_FP16_ISSUE",
|
|
"has_groups": false,
|
|
"priority": 85,
|
|
"category": "data_type",
|
|
"tags": ["vae", "precision", "fp16"],
|
|
"notes": "VAE precision issue, likely fp16/fp32 mismatch"
|
|
},
|
|
{
|
|
"id": "vae_batch_size_error",
|
|
"regex": "VAE batch size.*too large|VAE.*out of memory.*batch",
|
|
"error_key": "VAE_BATCH_SIZE_ERROR",
|
|
"has_groups": false,
|
|
"priority": 75,
|
|
"category": "memory",
|
|
"tags": ["vae", "batch", "memory"],
|
|
"notes": "VAE batch size too large for available memory"
|
|
}
|
|
]
|
|
}
|