ComfyUI > Nodes > ComfyUI-RvTools_v2 > WAN_Model Switch

ComfyUI Node: WAN_Model Switch

Class Name

WAN_Model Switch [RvTools]

Category
🫦 RvTools II/ Switches
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

Install this extension via the ComfyUI Manager by searching for ComfyUI-RvTools_v2
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RvTools_v2 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

WAN_Model Switch Description

WAN_Model Switch [RvTools] enables dynamic selection between WAN video models based on input conditions.

WAN_Model Switch [RvTools]:

The WAN_Model Switch [RvTools] is a versatile node designed to facilitate the dynamic selection between different WAN video models within a workflow. Its primary purpose is to allow you to switch between two distinct WAN video models based on specific input conditions, thereby providing flexibility and control over the model selection process. This node is particularly beneficial in scenarios where you need to alternate between models for different tasks or datasets, ensuring that the most appropriate model is utilized for each situation. By incorporating a mechanism to manage VRAM usage, it also helps in optimizing resource allocation, making it a valuable tool for efficient model management in AI art generation workflows.

WAN_Model Switch [RvTools] Input Parameters:

Input

The Input parameter is an integer that determines which WAN video model to select. It accepts values of either 1 or 2, with a default value of 1. This parameter is crucial as it directly influences the node's execution by specifying which model input to activate. Selecting 1 will choose the first model input, while selecting 2 will activate the second model input. This allows for seamless switching between models based on your requirements.

Purge_VRAM

The Purge_VRAM parameter is a boolean that, when set to true, triggers the clearing of VRAM (Video Random Access Memory) to free up resources. Its default value is false. This parameter is particularly useful in scenarios where memory management is critical, as it helps prevent memory overflow by clearing unused data from the GPU. By enabling this option, you can ensure that your system maintains optimal performance, especially when working with large models or datasets.

input1

The input1 parameter is an optional input that accepts a WAN video model. It is one of the two models between which the node can switch. This parameter is essential for providing the first model option that the node can select based on the Input parameter value.

input2

The input2 parameter is another optional input that accepts a WAN video model. Similar to input1, it serves as the second model option available for selection. This parameter allows you to provide an alternative model that the node can switch to, depending on the Input parameter value.

WAN_Model Switch [RvTools] Output Parameters:

model

The model output parameter represents the selected WAN video model based on the input conditions. This output is crucial as it determines which model will be used in subsequent processing steps. By providing the chosen model, this parameter ensures that the workflow continues with the appropriate model, thereby maintaining the integrity and effectiveness of the AI art generation process.

WAN_Model Switch [RvTools] Usage Tips:

  • To optimize performance, consider enabling the Purge_VRAM option when working with large models or datasets to prevent memory overflow and ensure efficient resource management.
  • Use the Input parameter to dynamically switch between models based on specific conditions or requirements, allowing for greater flexibility and adaptability in your workflows.

WAN_Model Switch [RvTools] Common Errors and Solutions:

Error: Model not selected

  • Explanation: This error occurs when neither input1 nor input2 is provided, resulting in no model being available for selection.
  • Solution: Ensure that at least one of the input1 or input2 parameters is populated with a valid WAN video model to enable the node to function correctly.

Error: VRAM purge failed

  • Explanation: This error may arise if the system is unable to clear the VRAM due to hardware limitations or software conflicts.
  • Solution: Verify that your system supports VRAM purging and that there are no conflicting processes. Additionally, ensure that the necessary libraries, such as torch, are correctly installed and configured.

WAN_Model Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RvTools_v2
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

WAN_Model Switch