Comfyui_TTP_Toolset

Comfyui_TTP_Toolset
★ 961

图像放大切片提示提取减少幻觉TeaCache支持
面向DIT模型的简易放大工作流:将输入图像切片,使用image-interrogator为每片提取提示并逐片高精度放大,有效减少幻觉并正确处理条件,支持Flux、Hunyuan、SD3与TeaCache加速。
💡 将图像切片并基于每片提示进行高质量放大以减少幻觉。
🍴 36 Forks💻 Python🔄 2026-01-08
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/a1f1f564f19c
image
Image Tile Batch Node
Image Assembly Node
Tile Image Size Node
Coordinate Splitter Node
Cond to Batch Node
Condition Merge Node
📄 README

Amazing Upscale Node Workflow for DIT Model

This workflow is designed for simple logic amazing upscale nodes in the DIT model. It supports common applications for Flux, Hunyuan, and SD3. The workflow tiles the initial image into smaller pieces, uses an image-interrogator to extract prompts for each tile, and performs an accurate upscale process. This approach minimizes hallucinations and ensures proper condition handling.

We hope you enjoy using it!

What’s New

TeaCache Sampler Integration for Hunyuan Video

Thanks to the contributions from the TeaCache code repository (ali-vilab/TeaCache) and code references from facok/ComfyUI-TeaCacheHunyuanVideo, we’ve added support for the TeaCache sampler.

  • How to Use:
  • Replace the samplercustomadvanced node in the official workflow with the TeaCache sampler node. Adjust the acceleration rate as needed to start using it.

  • Performance:
  • In testing with an NVIDIA 4090, rendering a 720×480 resolution video with 65 frames took only 55 seconds using a speedup factor of x2.1. This is approximately twice as fast as the original method.

  • Caution:
  • While the TeaCache sampler significantly accelerates processing, it may reduce image quality and dynamic effects. Use with discretion.

  • Precision Support:
  • Supports bf16 and fp8.

    https://github.com/user-attachments/assets/af06b9d3-9c84-4a83-ba90-eb4ec4bb2e99


    Instructions

    1. Image Tile Batch Node

    This node cuts an image into pieces automatically based on your specified width and height. It also records the necessary information for further processing.

    | Parameter | Description |

    |———–|————————————-|

    | Width | The width of each tile. |

    | Height | The height of each tile. |

    | Image | The image to be tiled. |

    Node View:


    2. Image Assembly Node

    This node reassembles image tiles back into a complete image while preventing visible lines between the tiles. It operates in pixel mode.

    | Parameter | Description |

    |————-|—————————————————————|

    | Tiles | Input the tiled image batch. Replace individual tiles if needed. |

    | Position | Paired with the Image Tile Batch Node. |

    | Original Size | Paired with the Image Tile Batch Node. |

    | Grid Size | Paired with the Image Tile Batch Node. |

    | Padding | The padding value used to merge the image pieces. |

    Node View:


    3. Tile Image Size Node

    This node calculates the resolution of each tile based on the original image dimensions and your specified width/height factors.

    | Parameter | Description |

    |——————-|——————————————————————–|

    | Width Factor | Divides the image width into equal parts. |

    | Height Factor | Divides the image height into equal parts. |

    For example: A width factor of 2 and a height factor of 3 will divide the image into 6 equal tiles.

    Node View:


    4. Coordinate Splitter Node

    This node converts position information into coordinates and connects them to the corresponding positions.

    Node View:


    5. Cond to Batch Node

    This node converts condition lists into batches. It is reserved for future functionality expansion and connects to the conditions.

    Node View:


    6. Condition Merge Node

    This node merges all tiled conditions into one and prepares them for building the final image. It connects to the Coordinate Splitter Node and Cond to Batch Node.

    Node View:


    Examples

    Pixel Example (Recommended)

    Latent Example


    ControlNet Tile Integration

    This workflow supports ControlNet Tile for enhanced upscaling. Here’s an example of using tiles with the Hunyuan DIT model:

    | Resource | Link |

    |———-|———————————————————————————————–|

    | Tile Example | Hugging Face Tile |

    | Hunyuan 1.2 | Download Hunyuan 1.2 |

    Workflow Example:


    Star History