ComfyUI > Nodes > ComfyUI-FLOAT_Optimized > Load Emotion Recognition Model (VA)

ComfyUI Node: Load Emotion Recognition Model (VA)

Class Name

LoadEmotionRecognitionModel

Category
FLOAT/Very Advanced/Loaders
Author
set-soft (Account age: 3450days)
Extension
ComfyUI-FLOAT_Optimized
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI-FLOAT_Optimized

Install this extension via the ComfyUI Manager by searching for ComfyUI-FLOAT_Optimized
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-FLOAT_Optimized 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

Load Emotion Recognition Model (VA) Description

Facilitates loading a Wav2Vec2-based model for speech emotion recognition in AI projects.

Load Emotion Recognition Model (VA):

The LoadEmotionRecognitionModel node is designed to facilitate the integration of advanced speech emotion recognition capabilities into your AI projects. By leveraging a Wav2Vec2-based model, this node allows you to load a pre-trained speech emotion recognition model along with its feature extractor, enabling the analysis of audio inputs to determine emotional states. This functionality is particularly beneficial for applications that require an understanding of human emotions from speech, such as virtual assistants, interactive media, and emotional analytics. The node outputs a model pipeline and the number of emotion classes, providing a streamlined approach to incorporating emotion recognition into your workflows. Its primary goal is to simplify the process of loading and utilizing sophisticated emotion recognition models, making it accessible even to those without a deep technical background.

Load Emotion Recognition Model (VA) Input Parameters:

model_folder

The model_folder parameter specifies the directory containing the speech emotion recognition model within the ComfyUI/models/audio/ path. This parameter is crucial as it determines which pre-trained model will be loaded for emotion recognition tasks. The available options are dynamically generated based on the models present in the specified directory. This parameter does not have a minimum or maximum value but requires a valid folder name to function correctly. The tooltip for this parameter provides guidance on selecting the appropriate model folder.

target_device

The target_device parameter allows you to specify the computational device on which the emotion recognition model will run. You can choose between CPU and CUDA (GPU) options, with the default being set to the most suitable device available on your system. This parameter impacts the performance and speed of the model's execution, as running on a GPU can significantly accelerate processing times compared to a CPU. The tooltip offers additional information to help you make an informed decision based on your hardware capabilities.

Load Emotion Recognition Model (VA) Output Parameters:

emotion_model_pipe

The emotion_model_pipe output provides a tuple containing the loaded emotion recognition model, its feature extractor, and a configuration dictionary. This output is essential for downstream tasks that require the application of the model to audio data for emotion analysis. The configuration dictionary includes important metadata such as the number of emotion labels, label mappings, and the model's sampling rate, ensuring that you have all the necessary information to effectively utilize the model.

dim_e

The dim_e output represents the number of emotion classes that the model can recognize. This integer value is crucial for understanding the range of emotions that the model is capable of detecting, allowing you to interpret the model's predictions accurately. Knowing the number of emotion classes helps in configuring subsequent processing steps and interpreting the results of the emotion recognition task.

Load Emotion Recognition Model (VA) Usage Tips:

  • Ensure that the model_folder parameter is set to a valid directory containing a compatible emotion recognition model to avoid loading errors.
  • Select the target_device based on your system's capabilities; using a GPU can significantly enhance performance for large-scale or real-time applications.
  • Familiarize yourself with the configuration dictionary provided in the emotion_model_pipe output to understand the model's capabilities and limitations, such as the number of emotion classes and label mappings.

Load Emotion Recognition Model (VA) Common Errors and Solutions:

Error loading Emotion Recognition model from <model_path>: <error_message>

  • Explanation: This error occurs when the node fails to load the specified emotion recognition model from the given path. Possible reasons include an incorrect model_folder path, missing model files, or incompatible model formats.
  • Solution: Verify that the model_folder path is correct and that it contains all necessary model files. Ensure that the model format is compatible with the node's requirements. If the issue persists, check the error message for specific details and consult the documentation for further troubleshooting steps.

Missing num_labels in emotion recognition config

  • Explanation: This error indicates that the configuration file for the emotion recognition model does not specify the number of emotion labels, which is required for the model to function correctly.
  • Solution: Ensure that the model's configuration file includes the num_labels attribute. If the model was custom-trained, verify that the training process included the correct configuration settings. If using a pre-trained model, check for updates or alternative models that include the necessary configuration details.

Load Emotion Recognition Model (VA) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FLOAT_Optimized
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.