astrbot_plugin_imagestudio/engines/fast_character_flow.py

50 行
1.4 KiB
Python

"""Fast character workflow templates."""
from __future__ import annotations
from typing import Any
FAST_CHARACTER_STEPS: tuple[dict[str, Any], ...] = (
{
"node_key": "quick_avatar",
"title": "Quick avatar",
"step_name": "quick_avatar",
"description": "Square avatar with stable face, hair, eyes, and expression.",
"sort_order": 10,
},
{
"node_key": "quick_bust",
"title": "Quick bust",
"step_name": "quick_bust",
"description": "Half-body character reference with clothing and posture.",
"sort_order": 20,
},
{
"node_key": "quick_stand",
"title": "Quick standing illustration",
"step_name": "quick_stand",
"description": "Full-body standing character illustration and proportions.",
"sort_order": 30,
},
{
"node_key": "quick_sheet",
"title": "Quick design sheet",
"step_name": "quick_sheet",
"description": "Character design sheet with multiple views and detail callouts.",
"sort_order": 40,
},
)
def fast_character_node_templates() -> list[dict[str, Any]]:
return [
{
**step,
"node_type": "generation",
"status": "draft",
"branch_name": "main",
"metadata": {"template": "character_fast_v2", "quick_character_target": step["node_key"]},
}
for step in FAST_CHARACTER_STEPS
]