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 > ComfyTV > Grid Split

ComfyUI Node: Grid Split

Class Name

ComfyTV.GridSplitStage

Category
ComfyTV/Image
Author
jtydhr88 (Account age: 5469days)
Extension
ComfyTV
Latest Updated
2026-06-11
Github Stars
0.06K

How to Install ComfyTV

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

Grid Split Description

Facilitates image segmentation by splitting images into grid segments based on specified rows and columns.

Grid Split:

The ComfyTV.GridSplitStage node is designed to facilitate the division of an image into a grid of smaller images, effectively splitting the original image into multiple segments based on specified rows and columns. This node is particularly useful for tasks that require image segmentation, such as creating image mosaics or preparing images for batch processing. By allowing you to define the number of rows and columns, the node provides flexibility in how the image is divided, enabling you to tailor the output to your specific needs. The node's primary function is to take an input image and split it into a grid, outputting each segment as a separate image. This capability is essential for workflows that involve detailed image analysis or manipulation, where working with smaller image sections can enhance performance and precision.

Grid Split Input Parameters:

force_run_token

This parameter is used to ensure that the node executes even if there are no changes in the input parameters. It acts as a trigger to force the node to run, which can be useful in scenarios where the node's execution is conditional or dependent on external factors.

project_id

The project_id parameter identifies the specific project context in which the node is being executed. This is important for organizing and managing different projects within the ComfyTV environment, ensuring that the node's operations are correctly associated with the intended project.

parent_output_id

This parameter specifies the ID of the parent node's output that is being used as input for this node. It helps in maintaining the flow of data between nodes, ensuring that the correct output from a previous node is used in the current node's execution.

rows

The rows parameter determines the number of horizontal divisions in the grid. It defines how many rows the image will be split into, with a minimum value of 1 and a maximum of 10. The default value is 2. Adjusting this parameter affects the height of each grid segment, allowing for customization based on the desired level of detail or segmentation.

cols

Similar to the rows parameter, cols specifies the number of vertical divisions in the grid. It defines how many columns the image will be split into, with a minimum value of 1 and a maximum of 10. The default value is 2. This parameter influences the width of each grid segment, providing control over the segmentation's granularity.

image

The image parameter is the input image that will be split into a grid. It is optional, meaning that the node can execute without an image input, although no meaningful output will be generated in such cases. Providing an image is essential for the node to perform its primary function of grid splitting.

selected_index

This parameter is used to specify which segment of the grid should be highlighted or selected for further processing. It allows you to focus on a particular section of the split image, which can be useful for detailed analysis or manipulation of specific grid segments.

Grid Split Output Parameters:

images

The images output parameter provides a list of the segmented images resulting from the grid split operation. Each element in the list corresponds to a segment of the original image, divided according to the specified rows and columns. This output is crucial for workflows that require individual access to each segment for further processing or analysis.

image

The image output parameter returns the original image that was input into the node. This can be useful for reference or comparison purposes, allowing you to easily access the unaltered image alongside its segmented counterparts.

Grid Split Usage Tips:

  • To achieve a finer segmentation of your image, increase the number of rows and columns. This will result in smaller grid segments, which can be beneficial for detailed image analysis or when preparing images for machine learning tasks.
  • Use the selected_index parameter to focus on specific segments of the grid for further processing. This can help streamline workflows by allowing you to isolate and manipulate only the parts of the image that are of interest.

Grid Split Common Errors and Solutions:

Image not provided

  • Explanation: The node requires an image input to perform the grid split operation. If no image is provided, the node cannot execute its primary function.
  • Solution: Ensure that an image is supplied to the image input parameter before executing the node.

Invalid row or column value

  • Explanation: The rows and cols parameters must be within the specified range (1 to 10). Values outside this range will result in an error.
  • Solution: Check the values of the rows and cols parameters and ensure they are within the allowed range. Adjust them accordingly to meet the node's requirements.

Grid Split Related Nodes

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

Grid Split