Files
Oliver Switzer 49ba00ec3d feat: add WANLoRAHighLowSplitterNode for prompt splitting
Introduced a new node to split prompts into HIGH and LOW variants based on LoRA tags using Ollama. This includes:
- Implementation of the WANLoRAHighLowSplitterNode class with methods for tag extraction and classification.
- Updated __init__.py to include the new node in the module.
- Enhanced settings.json to allow for additional permissions.
- Removed deprecated settings.local.json file.
- Added unit tests to validate the functionality of the new splitter node.

This feature improves the handling of WAN 2.2 prompts by providing a structured way to manage LoRA tag variations.

🤖 Generated with [Claude Code](https://claude.ai/code)
2025-09-20 00:10:03 -04:00

35 lines
1.3 KiB
Python

try:
from .nodes.lora_visualizer_node import LoRAVisualizerNode
from .nodes.prompt_splitter_node import PromptSplitterNode
from .nodes.prompt_composer_node import PromptComposerNode
from .nodes.wan_lora_high_low_splitter import WANLoRAHighLowSplitterNode
except ImportError:
# Fallback for when this module is imported directly (e.g., during testing)
import sys
import os
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, current_dir)
from nodes.lora_visualizer_node import LoRAVisualizerNode
from nodes.prompt_splitter_node import PromptSplitterNode
from nodes.prompt_composer_node import PromptComposerNode
from nodes.wan_lora_high_low_splitter import WANLoRAHighLowSplitterNode
NODE_CLASS_MAPPINGS = {
"LoRAVisualizer": LoRAVisualizerNode,
"PromptSplitter": PromptSplitterNode,
"PromptComposer": PromptComposerNode,
"WANLoRAHighLowSplitter": WANLoRAHighLowSplitterNode,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"LoRAVisualizer": "LoRA Visualizer",
"PromptSplitter": "Prompt Splitter",
"PromptComposer": "LoRA Prompt Composer",
"WANLoRAHighLowSplitter": "WAN LoRA High/Low Splitter",
}
WEB_DIRECTORY = "./js"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]