Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodePacks > VAE Block Inspector (C2C)

ComfyUI Node: VAE Block Inspector (C2C)

Class Name

VAEBlockInspectorMEC

Category
C2C/ModelAnalysis
Author
Code2Collapse (Account age: 1184days)
Extension
ComfyUI-CustomNodePacks
Latest Updated
2026-07-29
Github Stars
0.05K

How to Install ComfyUI-CustomNodePacks

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

VAE Block Inspector (C2C) Description

Diagnostic node for VAE weight analysis, aiding model optimization and performance understanding.

VAE Block Inspector (C2C):

The VAEBlockInspectorMEC is a diagnostic node designed to provide detailed insights into the internal workings of a Variational Autoencoder (VAE) by analyzing the per-block weight statistics. This node is particularly useful for AI artists and developers who wish to understand the structure and performance of their VAE models without altering them. By examining the weights of each block within the VAE, the VAEBlockInspectorMEC helps identify potential issues or areas for optimization, offering a deeper understanding of how different components of the model contribute to its overall functionality. This can be especially beneficial when fine-tuning models or comparing different VAE architectures to determine which might be more effective for specific tasks.

VAE Block Inspector (C2C) Input Parameters:

vae

The vae parameter represents the Variational Autoencoder model that you wish to inspect. This input can be a VAE object or a dictionary containing the model's state dictionary, which includes all the tensors representing the model's weights. The node will extract the relevant weight information from this input to perform its analysis. It is crucial to ensure that the VAE model is correctly loaded and accessible to avoid errors during the inspection process.

anomaly_threshold

The anomaly_threshold parameter is a float value that sets the threshold for identifying anomalies in the weight statistics of the VAE blocks. By default, this value is set to 5.0, but it can be adjusted based on the user's needs. A lower threshold might result in more anomalies being flagged, which can be useful for a more detailed inspection, while a higher threshold might only highlight the most significant deviations. Adjusting this parameter allows users to control the sensitivity of the anomaly detection process.

VAE Block Inspector (C2C) Output Parameters:

block_statistics

The block_statistics output provides a comprehensive report of the weight statistics for each block within the VAE. This includes information such as mean, variance, and any detected anomalies based on the specified threshold. Understanding these statistics can help users identify potential issues with specific blocks, such as weights that are not properly initialized or that have diverged significantly during training.

VAE Block Inspector (C2C) Usage Tips:

  • Ensure that the VAE model is correctly loaded and accessible before using the VAEBlockInspectorMEC to avoid errors related to missing or inaccessible model data.
  • Adjust the anomaly_threshold parameter to fine-tune the sensitivity of the anomaly detection process. This can help in identifying subtle issues that might not be apparent with the default settings.
  • Use the block statistics output to compare different VAE models or configurations, which can provide insights into which architectures might be more effective for your specific use case.

VAE Block Inspector (C2C) Common Errors and Solutions:

VAE input is None.

  • Explanation: This error occurs when the VAE model input is not provided or is set to None.
  • Solution: Ensure that a valid VAE model or state dictionary is passed to the node before execution.

Cannot extract state_dict from <type>

  • Explanation: This error indicates that the node was unable to extract the state dictionary from the provided VAE model.
  • Solution: Verify that the input model is a valid VAE object or a dictionary containing the model's state dictionary. Ensure that the model has a state_dict method or attribute that can be accessed.

VAE Block Inspector (C2C) Related Nodes

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