mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-29 08:58:53 -03:00
27 lines
694 B
Python
27 lines
694 B
Python
class LoraStackCombinerLM:
|
|
NAME = "Lora Stack Combiner (LoraManager)"
|
|
CATEGORY = "Lora Manager/stackers"
|
|
|
|
@classmethod
|
|
def INPUT_TYPES(cls):
|
|
return {
|
|
"required": {
|
|
"lora_stack_a": ("LORA_STACK",),
|
|
"lora_stack_b": ("LORA_STACK",),
|
|
},
|
|
}
|
|
|
|
RETURN_TYPES = ("LORA_STACK",)
|
|
RETURN_NAMES = ("LORA_STACK",)
|
|
FUNCTION = "combine_stacks"
|
|
|
|
def combine_stacks(self, lora_stack_a, lora_stack_b):
|
|
combined_stack = []
|
|
|
|
if lora_stack_a:
|
|
combined_stack.extend(lora_stack_a)
|
|
if lora_stack_b:
|
|
combined_stack.extend(lora_stack_b)
|
|
|
|
return (combined_stack,)
|