ComfyUI > Nodes > ComfyUI-FLOAT_Optimized > Load FLOAT Encoder (VA)

ComfyUI Node: Load FLOAT Encoder (VA)

Class Name

LoadFloatEncoderModel

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 FLOAT Encoder (VA) Description

Loads encoder weights from `.safetensors`, infers architecture, and checks key integrity for AI models.

Load FLOAT Encoder (VA):

The LoadFloatEncoderModel node is designed to load the weights for the encoder part of a motion autoencoder from a .safetensors file. This node is particularly useful for AI artists who are working with image analysis and need to prepare their models by inferring the architecture, such as input size and latent dimensions, from the loaded weights. By automating the inference of the model's architecture, this node simplifies the process of setting up the encoder for further tasks, ensuring that the model is ready for efficient image processing. The node also provides feedback on any missing or unexpected keys during the loading process, which helps in maintaining the integrity and compatibility of the model weights.

Load FLOAT Encoder (VA) Input Parameters:

encoder_file

The encoder_file parameter specifies the filename of the .safetensors file containing the encoder weights. This file is crucial as it holds the pre-trained weights that the node will load to configure the encoder model. The default value for this parameter is "encoder.safetensors", and it should be located in the specified directory path. Providing the correct file ensures that the model is loaded with the appropriate weights, which directly impacts the accuracy and performance of the encoder.

target_device

The target_device parameter determines the device on which the encoder model will be loaded and executed. This can be set to either "cpu" or "cuda" depending on the available hardware and the desired performance. Loading the model on a GPU ("cuda") can significantly speed up the processing time, especially for large models or datasets. However, if a GPU is not available, setting this parameter to "cpu" will ensure compatibility and functionality.

cudnn_benchmark

The cudnn_benchmark parameter is a boolean flag that, when set to True, enables the cuDNN benchmark mode. This mode allows the model to select the best set of algorithms for the hardware it is running on, potentially improving performance. However, it may introduce variability in the execution time, so it should be used when performance is a priority and consistent execution time is not critical.

Load FLOAT Encoder (VA) Output Parameters:

inferred_input_size

The inferred_input_size output parameter represents the input size of the encoder model as inferred from the loaded weights. This value is crucial for understanding the dimensions of the data that the model expects, ensuring that the input data is correctly formatted and compatible with the model's architecture.

dim_w

The dim_w output parameter indicates the latent dimension of the encoder model related to the appearance network. This dimension is part of the model's architecture and affects how the input data is encoded into a latent space, influencing the model's ability to capture and represent the appearance features of the input data.

dim_m

The dim_m output parameter specifies the latent dimension related to the motion network of the encoder model. This dimension is essential for encoding motion features from the input data, allowing the model to effectively capture and represent dynamic aspects of the input.

encoder_model

The encoder_model output parameter is the fully configured encoder model loaded with the specified weights and ready for use. This model can be directly utilized for image analysis tasks, leveraging the pre-trained weights to perform encoding operations efficiently.

Load FLOAT Encoder (VA) Usage Tips:

  • Ensure that the encoder_file is correctly specified and located in the expected directory to avoid file not found errors.
  • Utilize the target_device parameter to leverage GPU acceleration if available, which can significantly enhance performance for large-scale tasks.
  • Enable cudnn_benchmark when running on a GPU to potentially improve performance by selecting optimal algorithms for the hardware.

Load FLOAT Encoder (VA) Common Errors and Solutions:

Encoder weights file not found: <weights_path>

  • Explanation: This error occurs when the specified encoder weights file cannot be located at the given path.
  • Solution: Verify that the encoder_file parameter is correctly set and that the file exists in the specified directory. Ensure that the path is accessible and correctly formatted.

Error loading weights file <weights_path>: <error_message>

  • Explanation: This error indicates a problem encountered while attempting to load the weights file, possibly due to file corruption or incompatibility.
  • Solution: Check the integrity of the weights file and ensure it is not corrupted. If the file is valid, ensure that the loading function is compatible with the file format and try reloading the file.

Load FLOAT Encoder (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.

Load FLOAT Encoder (VA)