> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# HiDreamO1PatchSeamSmoothing - ComfyUI Built-in Node Documentation

> This node reduces visible seams in images generated by the HiDream-O1 model by averaging the model's output across multiple shifted patch-grid positions during the later part of th

This node reduces visible seams in images generated by the HiDream-O1 model by averaging the model's output across multiple shifted patch-grid positions during the later part of the sampling process. It runs the model several times with slightly different image alignments and blends the results together, which helps cancel out the grid-like artifacts that can appear at patch boundaries.

## Inputs

| Parameter       | Description                                                                                                                                                                                          | Data Type | Required | Range                                                  |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------------------------------ |
| `model`         | The model to apply seam smoothing to.                                                                                                                                                                | MODEL     | Yes      | -                                                      |
| `start_percent` | Sampling progress (0=start, 1=end) at which the blend turns ON. default: 0.8                                                                                                                         | FLOAT     | Yes      | 0.0 to 1.0 (step: 0.01)                                |
| `end_percent`   | Sampling progress at which the blend turns OFF. default: 1.0                                                                                                                                         | FLOAT     | Yes      | 0.0 to 1.0 (step: 0.01)                                |
| `pattern`       | Shift layout. `single_shift`: one pass at the natural patch grid + others offset. `symmetric`: all passes off-grid, shifts split around origin. default: "single\_shift"                             | COMBO     | Yes      | `"single_shift"`<br />`"symmetric"`                    |
| `passes`        | Number of passes per gated step. `2`/`4` = fixed. `ramp_*`: pass count increases as sampling approaches end (more smoothing where seams are most visible). default: "2"                              | COMBO     | Yes      | `"2"`<br />`"4"`<br />`"ramp_2_4"`<br />`"ramp_2_4_8"` |
| `blend`         | `average`: equal-weight mean. `window`: Hann-windowed weighting favoring each pass away from its patch boundaries. `median`: per-pixel median, rejects wraparound-outlier passes. default: "average" | COMBO     | Yes      | `"average"`<br />`"window"`<br />`"median"`            |
| `strength`      | Interpolation between the natural-grid prediction (0) and the averaged result (1). default: 1.0                                                                                                      | FLOAT     | Yes      | 0.0 to 1.0 (step: 0.01)                                |

**Note on Parameter Constraints:**

* The smoothing effect is not applied if `strength` is 0.0 or less, or if `end_percent` is less than or equal to `start_percent`. In those cases the node returns the model unchanged.
* The `passes` parameter's ramp options (`ramp_2_4`, `ramp_2_4_8`) are only meaningful when `end_percent` is greater than `start_percent`, because the number of passes increases as sampling progresses through that range.

## Outputs

| Output Name | Description                                                 | Data Type |
| ----------- | ----------------------------------------------------------- | --------- |
| `model`     | The modified model with the seam smoothing wrapper applied. | MODEL     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/HiDreamO1PatchSeamSmoothing/en.md)

***

**Source fingerprint (SHA-256):** `02a2256fbf1868cc033a00f15066e9a896a7685ecdca0564ceec5b5b618b6a3c`
