mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
- Implemented the WanVideo Lora Select node in Python with input handling for low memory loading and LORA syntax processing. - Updated the JavaScript side to register the new node and manage its widget interactions. - Enhanced constants files to include the new node type and its corresponding ID. - Modified existing Lora Loader and Stacker references to accommodate the new node in various workflows and UI components. - Added example workflow JSON for the new node to demonstrate its usage.
28 lines
950 B
Python
28 lines
950 B
Python
from .py.lora_manager import LoraManager
|
|
from .py.nodes.lora_loader import LoraManagerLoader
|
|
from .py.nodes.trigger_word_toggle import TriggerWordToggle
|
|
from .py.nodes.lora_stacker import LoraStacker
|
|
from .py.nodes.save_image import SaveImage
|
|
from .py.nodes.debug_metadata import DebugMetadata
|
|
from .py.nodes.wanvideo_lora_select import WanVideoLoraSelect
|
|
# Import metadata collector to install hooks on startup
|
|
from .py.metadata_collector import init as init_metadata_collector
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
LoraManagerLoader.NAME: LoraManagerLoader,
|
|
TriggerWordToggle.NAME: TriggerWordToggle,
|
|
LoraStacker.NAME: LoraStacker,
|
|
SaveImage.NAME: SaveImage,
|
|
DebugMetadata.NAME: DebugMetadata,
|
|
WanVideoLoraSelect.NAME: WanVideoLoraSelect
|
|
}
|
|
|
|
WEB_DIRECTORY = "./web/comfyui"
|
|
|
|
# Initialize metadata collector
|
|
init_metadata_collector()
|
|
|
|
# Register routes on import
|
|
LoraManager.add_routes()
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'WEB_DIRECTORY']
|