Wan Video Multi-LoRA Select (CRT):
The WanVideoLoraSelectMultiImproved node is designed to facilitate the selection and configuration of multiple LoRA (Low-Rank Adaptation) models for video processing tasks. This node allows you to specify a batch configuration of LoRA models, enabling the dynamic adjustment of their strengths and the selection of specific models to be applied. By parsing a configuration string, the node efficiently organizes the LoRA models into high and low stacks based on their specified strengths, ensuring that only enabled models are considered. This functionality is particularly beneficial for AI artists who wish to experiment with different LoRA configurations to achieve desired visual effects in video outputs. The node's ability to handle multiple LoRA models simultaneously and its support for merging and low-memory loading options make it a versatile tool for optimizing video processing workflows.
Wan Video Multi-LoRA Select (CRT) Input Parameters:
lora_batch_config
The lora_batch_config parameter is a string that specifies the configuration of LoRA models to be used. It follows a specific format: high,hstr,low,lstr,on|...§true, where each segment represents a LoRA model's high and low names, their respective strengths, and whether they are enabled. This parameter is crucial as it determines which LoRA models are included in the processing and their respective strengths, directly impacting the final video output. There are no explicit minimum, maximum, or default values, but the format must be adhered to for successful parsing.
merge_loras
The merge_loras parameter is a boolean that indicates whether the LoRA models should be merged. When set to true, the node attempts to merge the LoRA models, which can optimize memory usage and potentially improve processing efficiency. If set to false, the models are processed individually. This parameter is important for managing memory and processing resources, especially when dealing with large or numerous LoRA models.
low_mem_load
The low_mem_load parameter is a boolean that specifies whether to load LoRA models in a low-memory mode. This is particularly useful when working with limited system resources, as it reduces the memory footprint of the models. However, it may also affect the performance or quality of the output. This parameter is automatically set to false if merge_loras is false, as unmerged models do not require low-memory loading.
blocks
The blocks parameter is a dictionary that allows you to specify additional configuration options for the LoRA models, such as selected_blocks and layer_filter. These options provide further control over which parts of the LoRA models are applied, enabling more granular customization of the video processing. This parameter is optional and can be left empty if no additional configuration is needed.
Wan Video Multi-LoRA Select (CRT) Output Parameters:
high_lora_stack
The high_lora_stack is a list of dictionaries, each representing a high-strength LoRA model that has been configured and enabled. Each dictionary contains details such as the model's path, strength, name, and additional configuration options. This output is essential for understanding which high-strength LoRA models are being applied to the video and how they are configured.
low_lora_stack
The low_lora_stack is similar to the high_lora_stack, but it contains low-strength LoRA models. Each entry in the list provides the same level of detail as the high stack, allowing you to see which low-strength models are in use and their configurations. This output is important for balancing the effects of different LoRA models in the video processing pipeline.
Wan Video Multi-LoRA Select (CRT) Usage Tips:
- Ensure that the
lora_batch_configstring is correctly formatted to avoid parsing errors and ensure that the desired LoRA models are selected and configured properly. - Use the
merge_lorasoption to optimize memory usage when working with multiple LoRA models, especially if system resources are limited. - Experiment with different strengths for high and low LoRA models to achieve the desired visual effects in your video outputs.
Wan Video Multi-LoRA Select (CRT) Common Errors and Solutions:
Invalid configuration format
- Explanation: The
lora_batch_configstring does not follow the expected format, leading to parsing errors. - Solution: Double-check the format of the configuration string to ensure it matches the required pattern:
high,hstr,low,lstr,on|...§true.
LoRA model not found
- Explanation: A specified LoRA model name does not correspond to an existing file path.
- Solution: Verify that the LoRA model names in the configuration string are correct and that the corresponding files are located in the expected directory.
Memory overload
- Explanation: The system runs out of memory when loading multiple LoRA models simultaneously.
- Solution: Enable the
low_mem_loadoption or reduce the number of LoRA models being processed to manage memory usage more effectively.
