ComfyUI > Nodes > content_aware_tiles > Random Wang Boundaries (from Image)

ComfyUI Node: Random Wang Boundaries (from Image)

Class Name

RandomWangBoundaries

Category
tiles
Author
samsartor (Account age: 5064days)
Extension
content_aware_tiles
Latest Updated
2026-01-27
Github Stars
0.02K

How to Install content_aware_tiles

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

Random Wang Boundaries (from Image) Description

Generates seamless Wang tiles from an image for creating complex, non-repetitive patterns.

Random Wang Boundaries (from Image):

The RandomWangBoundaries node is designed to generate Wang tiles from an input image, offering a unique approach to creating seamless and varied tile patterns. This node is particularly useful for artists and designers looking to create complex, non-repetitive textures and patterns from a single image source. By leveraging the concept of Wang tiles, which are square tiles with colored edges that must match when placed adjacent to each other, this node allows for the creation of intricate designs without visible seams. The node provides flexibility in terms of color variations and resolution, enabling users to tailor the output to their specific artistic needs. Its primary function is to cut the input image into smaller sections and then process these sections to ensure that the edges align correctly according to the Wang tile rules, thus facilitating the creation of a cohesive and aesthetically pleasing tileset.

Random Wang Boundaries (from Image) Input Parameters:

image

The image parameter is the primary input for the node, representing the source image from which the Wang tiles will be generated. This parameter is crucial as it determines the visual content and texture of the resulting tiles. The image should be provided in a format compatible with the node, typically as a tensor, and serves as the foundation for the tile generation process.

mode

The mode parameter specifies the method used for generating the tile boundaries. It offers two options: "ortho constrained" and "arbitrary". The "ortho constrained" mode ensures that the tiles are generated with orthogonal constraints, which can be useful for creating more structured and grid-like patterns. The "arbitrary" mode allows for more freedom in tile generation, potentially resulting in more organic and varied patterns. This parameter influences the overall style and structure of the generated tiles.

colors

The colors parameter defines the number of distinct colors used for the tile edges. This parameter is essential for determining the complexity and variety of the tile patterns. A higher number of colors allows for more intricate and diverse tile arrangements, while a lower number of colors results in simpler patterns. The parameter accepts integer values with a default of 3, a minimum of 1, and a maximum of 10.

candidates

The candidates parameter specifies the number of candidate tiles to generate. This parameter affects the diversity of the output by determining how many variations of tiles are produced. A higher number of candidates can provide more options for creating unique patterns, while a lower number focuses on a more limited set of tiles. The default value is 1.

resolution

The resolution parameter sets the resolution of the generated tiles. This parameter is crucial for defining the level of detail in the tiles, with higher resolutions providing more detailed and refined patterns. The resolution is specified as an integer, with a default value of 256, allowing users to balance between detail and computational efficiency.

Random Wang Boundaries (from Image) Output Parameters:

IMAGE

The IMAGE output represents the generated Wang tiles, which are derived from the input image. This output is crucial as it provides the visual content that can be used in various artistic and design applications. The tiles are designed to seamlessly fit together, allowing for the creation of continuous patterns without visible seams.

MASK

The MASK output provides a mask that indicates the boundaries of the generated tiles. This mask is useful for understanding how the tiles are arranged and can be used in further processing or compositing tasks. It helps in identifying the edges and ensuring that the tiles align correctly when used in a larger composition.

TILESET

The TILESET output contains metadata about the generated tiles, including information about the tile kind, colors, resolution, and candidates. This output is essential for managing and organizing the tiles, providing a structured way to handle the generated patterns and ensuring that they can be easily integrated into larger projects.

Random Wang Boundaries (from Image) Usage Tips:

  • Experiment with different colors values to achieve varying levels of pattern complexity and visual interest in your tiles.
  • Use the mode parameter to switch between structured and organic tile patterns, depending on the desired aesthetic for your project.
  • Adjust the resolution to balance between detail and performance, especially when working with large images or generating a high number of candidate tiles.

Random Wang Boundaries (from Image) Common Errors and Solutions:

"Invalid image format"

  • Explanation: The input image is not in the expected format or tensor type.
  • Solution: Ensure that the image is correctly formatted as a tensor and compatible with the node's requirements.

"Resolution too high"

  • Explanation: The specified resolution exceeds the node's processing capabilities.
  • Solution: Reduce the resolution parameter to a value that is manageable for your system's resources.

"Insufficient candidates"

  • Explanation: The number of candidates is set too low to generate the desired variety of tiles.
  • Solution: Increase the candidates parameter to produce more tile variations and enhance pattern diversity.

Random Wang Boundaries (from Image) Related Nodes

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

Random Wang Boundaries (from Image)