🔀 Smart Tile Merger:
The ArchAi3D_Smart_Tile_Merger is a sophisticated node designed to seamlessly merge processed image tiles using a technique known as normalized weight blending. This method is particularly effective in eliminating seam artifacts that often occur when combining multiple image tiles, ensuring that the weights in overlapping regions sum to 1.0. This node is especially beneficial for AI artists working with large images that need to be processed in smaller segments or tiles. By using this node, you can achieve a smooth and continuous image without the dark or bright seams that can detract from the overall quality. The node supports various blending modes, including linear and smooth, and is compatible with SEGS from the Smart Tile Detailer, allowing for configurable overlap and blur settings. This makes it a versatile tool for enhancing the quality of upscaled images in a user-friendly manner.
🔀 Smart Tile Merger Input Parameters:
seg_list
The seg_list parameter is a collection of segments or tiles that have been processed and are ready to be merged. Each segment contains information such as the cropped image, bounding box, and optional mask. This parameter is crucial as it provides the node with the necessary data to perform the merging operation. The quality and characteristics of the final merged image heavily depend on the input segments provided in this list.
tiles_x
The tiles_x parameter specifies the number of tiles along the horizontal axis. It is used to determine the position of each tile and to identify edge tiles, which is important for applying the correct blending masks. This parameter impacts how the node calculates the blending for tiles at the edges of the image.
tiles_y
Similar to tiles_x, the tiles_y parameter indicates the number of tiles along the vertical axis. It helps in determining the vertical position of each tile and is essential for applying appropriate blending techniques to edge tiles. This parameter ensures that the vertical seams are handled correctly.
blend_mode
The blend_mode parameter allows you to choose the blending technique used to merge the tiles. Options include "use_seg_mask," "linear," "smooth," and "normalized." Each mode offers a different approach to blending, affecting the smoothness and transition between tiles. The default mode is "normalized," which relies on weight normalization to eliminate seams.
overlap
The overlap parameter defines the amount of overlap between adjacent tiles. This overlap is crucial for blending as it provides the area where the blending masks are applied. A larger overlap can result in smoother transitions but may require more processing time.
blur_radius
The blur_radius parameter is used when the "smooth" blend mode is selected. It determines the radius of the Gaussian blur applied to the blending masks, affecting the smoothness of the transition between tiles. A higher blur radius results in a softer blend.
🔀 Smart Tile Merger Output Parameters:
image
The image output parameter is the final merged image resulting from the combination of all input tiles. This image is free from seam artifacts due to the normalized weight blending technique employed by the node. The output image maintains the quality and detail of the original tiles while presenting a seamless and continuous visual experience.
🔀 Smart Tile Merger Usage Tips:
- Ensure that the
seg_listcontains all necessary segments with correct bounding boxes and optional masks to achieve the best merging results. - Experiment with different
blend_modesettings to find the optimal blending technique for your specific image processing needs. - Adjust the
overlapparameter to balance between processing time and the smoothness of transitions between tiles. - Use the
blur_radiusparameter in the "smooth" blend mode to control the softness of the blend, especially in images with complex textures.
🔀 Smart Tile Merger Common Errors and Solutions:
Warning: SEG {i} has no cropped_image, skipping
- Explanation: This warning indicates that a segment in the
seg_listdoes not contain a cropped image, and therefore, it is being skipped in the merging process. - Solution: Ensure that all segments in the
seg_listhave valid cropped images before passing them to the node.
Weight range: {weight_accum.min():.3f} - {weight_accum.max():.3f}
- Explanation: This message provides information about the range of weights used in the blending process. If the range is not as expected, it may indicate issues with the blending masks or overlap settings.
- Solution: Verify the blending masks and overlap settings to ensure they are correctly configured for your image processing task. Adjust the
blend_modeandoverlapparameters if necessary.
