Documentation Index
Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
Use this file to discover all available pages before exploring further.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Overview
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 works by running the model several times with slightly different image alignments and blending the results together, which helps cancel out the grid-like artifacts that can appear at patch boundaries.Inputs
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
model | MODEL | Yes | - | The HiDream-O1 model to apply seam smoothing to. |
start_percent | FLOAT | Yes | 0.0 to 1.0 (step: 0.01) | The sampling progress (0=start, 1=end) at which the smoothing effect turns ON (default: 0.8). |
end_percent | FLOAT | Yes | 0.0 to 1.0 (step: 0.01) | The sampling progress at which the smoothing effect turns OFF (default: 1.0). |
pattern | COMBO | Yes | "single_shift""symmetric" | The layout of the shifted grid positions. single_shift: one pass at the natural patch grid plus others offset. symmetric: all passes are off-grid, with shifts split around the origin (default: "single_shift"). |
passes | COMBO | Yes | "2""4""ramp_2_4""ramp_2_4_8" | The number of passes (model runs) per gated step. 2 or 4 are fixed counts. ramp_2_4 and ramp_2_4_8 increase the pass count as sampling approaches the end, providing more smoothing where seams are most visible (default: "2"). |
blend | COMBO | Yes | "average""window""median" | The method used to combine the results from each pass. average: equal-weight mean of all passes. window: uses a Hann window to give more weight to the center of each pass, reducing boundary artifacts. median: takes the per-pixel median, which can reject outlier passes caused by wraparound (default: "average"). |
strength | FLOAT | Yes | 0.0 to 1.0 (step: 0.01) | Controls the interpolation between the original model output (0.0) and the fully smoothed result (1.0) (default: 1.0). |
- The smoothing effect will not be applied if
strengthis 0.0 or less, or ifend_percentis less than or equal tostart_percent. - The
passesparameter’s ramp options (ramp_2_4,ramp_2_4_8) are only meaningful whenstart_percentandend_percentdefine a range, as the number of passes increases as sampling progresses through that range.
Outputs
| Output Name | Data Type | Description |
|---|---|---|
model | MODEL | The modified model with the seam smoothing wrapper applied. |
Source fingerprint (SHA-256):
f4d1a617d88f880dcae3afda25699333df023d7b4ec13a22a73512713d6ef18c