Introduce auto-balance measurement and per-modality adaLN scaling for MiniMax H3.
- Add gain.py to measure LoRA perturbation (rel, factor) and cache results; expose measure_file/measure_state_dict.
- Add modality.py to scale adaLN rows by {video,text,audio} and describe/apply those changes.
- Add server route /h3_power_lora_stack/balance (h3lora/server.py) and register it in __init__.py to support the UI button.
- Integrate measurement and modality scaling into apply_stack and report LoRA rel/factor suggestions.
- Add H3AdalnModality node and adaln_modality input in nodes.py.
- Update web UI (web/h3_power_lora_stack.js) with auto-balance/restore buttons, server call, badges, and client-side behavior.
- Document features and rationale in README.md.
These changes keep measurements cached and never boost measured LoRAs (factor clamped ≤1).
11 lines
381 B
Python
11 lines
381 B
Python
"""ComfyUI-H3-PowerLoraStack: stacked multi-LoRA loading for MiniMax H3."""
|
|
|
|
from .h3lora import server as _server
|
|
from .h3lora.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
_server.register() # /h3_power_lora_stack/balance, for the auto-balance button
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|