ComfyUI > Nodes > Shrug-Prompter: Unified VLM Integration for ComfyUI > VLM Image Passthrough (Zero Copy)

ComfyUI Node: VLM Image Passthrough (Zero Copy)

Class Name

VLMImagePassthrough

Category
VLM/Processing
Author
fblissjr (Account age: 4014days)
Extension
Shrug-Prompter: Unified VLM Integration for ComfyUI
Latest Updated
2025-09-30
Github Stars
0.02K

How to Install Shrug-Prompter: Unified VLM Integration for ComfyUI

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

VLM Image Passthrough (Zero Copy) Description

VLMImagePassthrough enables efficient, unaltered image transfer in VLM pipelines using zero-copy.

VLM Image Passthrough (Zero Copy):

The VLMImagePassthrough node is designed to facilitate the seamless transfer of image data within a Visual Language Model (VLM) processing pipeline without altering or duplicating the original images. This node is particularly useful when you need to pass images through the system without any processing, ensuring that the original data remains intact and unmodified. By employing a zero-copy mechanism, the node efficiently handles image data by returning references to the original images, thus optimizing memory usage and processing speed. This approach is beneficial in scenarios where maintaining the integrity of the original image data is crucial, such as when performing operations that require the original image quality or when working with large datasets where memory efficiency is a priority.

VLM Image Passthrough (Zero Copy) Input Parameters:

images

The images parameter is the primary input for the VLMImagePassthrough node. It accepts image data in the form of a tensor, which is a multi-dimensional array commonly used in machine learning and image processing tasks. This parameter is crucial as it determines the images that will be passed through the node without any modification. The function of this parameter is to provide the node with the image data that needs to be transferred to the next stage in the pipeline. There are no specific minimum, maximum, or default values for this parameter, as it is designed to handle any image data provided to it. The impact of this parameter on the node's execution is direct, as it dictates the content that will be returned by the node.

VLM Image Passthrough (Zero Copy) Output Parameters:

images

The images output parameter provides a reference to the original input images. This output is crucial for maintaining the integrity of the image data as it ensures that the original images are passed through the node without any alterations. This parameter is particularly important when the subsequent processing stages require access to the unmodified images.

original

The original output parameter is essentially a duplicate reference to the input images, serving the same purpose as the images output. By providing two references to the original images, the node ensures that the data can be accessed in multiple contexts or by different components within the processing pipeline without the need for additional copying or memory allocation.

count

The count output parameter indicates the number of images being processed. This is determined by the shape of the input tensor, specifically the first dimension, which typically represents the batch size in image processing tasks. The count parameter is useful for understanding the scale of the data being handled and can be used to inform subsequent processing steps that may depend on the number of images.

VLM Image Passthrough (Zero Copy) Usage Tips:

  • Use the VLMImagePassthrough node when you need to pass images through a pipeline without any processing, ensuring that the original image quality and data integrity are preserved.
  • This node is particularly useful in scenarios where memory efficiency is a priority, as it employs a zero-copy mechanism to handle image data.

VLM Image Passthrough (Zero Copy) Common Errors and Solutions:

AttributeError: 'Tensor' object has no attribute 'shape'

  • Explanation: This error occurs when the input provided to the node is not a tensor or does not have the expected shape attribute.
  • Solution: Ensure that the input images are provided as a tensor with the correct dimensions. If necessary, convert the input data to a tensor format before passing it to the node.

TypeError: 'NoneType' object is not subscriptable

  • Explanation: This error may arise if the input images are not properly initialized or if the input is None.
  • Solution: Verify that the input images are correctly loaded and initialized before passing them to the node. Check for any issues in the data loading or preprocessing steps that might result in a None input.

VLM Image Passthrough (Zero Copy) Related Nodes

Go back to the extension to check out more related nodes.
Shrug-Prompter: Unified VLM Integration for ComfyUI
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.

VLM Image Passthrough (Zero Copy)