ComfyUI > Nodes > ComfyUI-TinyBreaker > 💪TB | Load Partial VAE

ComfyUI Node: 💪TB | Load Partial VAE

Class Name

LoadPartialVAE __TinyBreaker

Category
💪TinyBreaker/loaders
Author
martin-rizzo (Account age: 1928days)
Extension
ComfyUI-TinyBreaker
Latest Updated
2025-05-04
Github Stars
0.03K

How to Install ComfyUI-TinyBreaker

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

💪TB | Load Partial VAE Description

Facilitates partial loading of VAE components for testing and experimentation, optimizing resource usage.

💪TB | Load Partial VAE:

The LoadPartialVAE __TinyBreaker node is designed to facilitate the partial loading of a Variational AutoEncoder (VAE), specifically targeting either the encoder or the decoder components. This functionality is particularly useful for testing and experimentation purposes, allowing you to focus on specific parts of the VAE architecture without the need to load the entire model. By enabling selective loading, this node helps in optimizing resource usage and provides flexibility in testing different configurations of the VAE. This can be especially beneficial when working with large models or when you want to isolate the effects of individual components on the overall performance of the VAE.

💪TB | Load Partial VAE Input Parameters:

vae_name

The vae_name parameter specifies the name of the VAE model you wish to load. This parameter is crucial as it determines which VAE model's components will be partially loaded. The available options for this parameter are derived from the list of VAE filenames present in the designated directory. Selecting the correct VAE name ensures that the node loads the intended model for your testing purposes.

mode

The mode parameter dictates which part of the VAE will be loaded. It offers three options: "encoder only," "decoder only," and "both." The "encoder only" mode will load only the encoder part of the VAE, removing the decoder from the state dictionary. Conversely, the "decoder only" mode will load only the decoder, excluding the encoder. The "both" mode will load the entire VAE without removing any components. The default setting for this parameter is "both," which means the entire VAE is loaded unless specified otherwise. This parameter allows you to tailor the loading process to your specific testing needs, providing flexibility in how the VAE is utilized.

💪TB | Load Partial VAE Output Parameters:

VAE

The output of this node is a VAE object, which represents the partially loaded Variational AutoEncoder based on the specified mode. This output is significant as it allows you to work with a customized version of the VAE, focusing on either the encoder, the decoder, or both, depending on your selection. The VAE object can then be used in subsequent processes or analyses, providing insights into the performance and characteristics of the specific components loaded.

💪TB | Load Partial VAE Usage Tips:

  • To optimize memory usage, consider loading only the necessary component of the VAE by selecting "encoder only" or "decoder only" modes, especially when working with limited resources.
  • Use the "both" mode when you need to test the full functionality of the VAE without any component restrictions, ensuring a comprehensive evaluation of the model.
  • Regularly update the list of available VAEs in the directory to ensure you have access to the latest models for testing and experimentation.

💪TB | Load Partial VAE Common Errors and Solutions:

FileNotFoundError: VAE file not found

  • Explanation: This error occurs when the specified vae_name does not correspond to any file in the VAE directory.
  • Solution: Ensure that the vae_name is correctly specified and that the corresponding VAE file exists in the directory. Check for any typos or discrepancies in the name.

KeyError: Component not found in state_dict

  • Explanation: This error arises when the specified component to be removed (encoder or decoder) is not present in the state dictionary of the VAE.
  • Solution: Verify that the VAE model you are attempting to load contains both encoder and decoder components. If the model is incomplete, consider using a different VAE or adjusting the mode parameter accordingly.

💪TB | Load Partial VAE Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-TinyBreaker
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 Playground, enabling artists to harness the latest AI tools to create incredible art.