Files
dseditor-ComfyUI-ListHelper/__init__.py
T
dseditor 2f415dcb61 新增圖片人物特徵自動提取功能
- 新增 {EXTRACT_FROM_IMAGE} 佔位符支援
- 新增 Prompt/extract_person_features.md 特徵提取指令
- 新增 DesignPrompt/photomagazine_with_image.md 模板
- 新增 person_feature_extractor.py 節點(備用方案)
- 更新 __init__.py 註冊新節點
- 新增 IMAGE_FEATURE_EXTRACTION.md 使用說明
- 支援 LLM 自動分析圖片並填入特徵
2026-01-04 16:18:46 +08:00

23 lines
1.1 KiB
Python

from .nodes import NODE_CLASS_MAPPINGS as NODES_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as NODES_DISPLAY_MAPPINGS
# Import Chinese tools nodes
try:
from .chinese_tools import NODE_CLASS_MAPPINGS as CHINESE_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as CHINESE_DISPLAY_MAPPINGS
# Merge the mappings
NODE_CLASS_MAPPINGS = {**NODES_MAPPINGS, **CHINESE_MAPPINGS}
NODE_DISPLAY_NAME_MAPPINGS = {**NODES_DISPLAY_MAPPINGS, **CHINESE_DISPLAY_MAPPINGS}
except Exception as e:
print(f"⚠️ Failed to load Chinese tools nodes: {e}")
NODE_CLASS_MAPPINGS = NODES_MAPPINGS
NODE_DISPLAY_NAME_MAPPINGS = NODES_DISPLAY_MAPPINGS
# Import person feature extractor nodes
try:
from .person_feature_extractor import NODE_CLASS_MAPPINGS as FEATURE_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as FEATURE_DISPLAY_MAPPINGS
# Merge the mappings
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **FEATURE_MAPPINGS}
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **FEATURE_DISPLAY_MAPPINGS}
except Exception as e:
print(f"⚠️ Failed to load person feature extractor nodes: {e}")
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']