ComfyUI Node
Color Shift Fix (Swwan)
Color Shift Fix - 视频 inpaint 色差修复 原理: - 以遮罩外未修改区域为参考,逐帧拟合每通道仿射变换 (gain/offset) - 迭代修剪最小二乘,自动剔除内容变化像素(被抹除的水印/底栏) - 参数时序滑动平均,防止视频颜色闪烁 推荐配置: - smooth_window: 9(约 0.4s @24fps;画面切换快的视频可调小) - trim_percentile: 70 - strength: 1.0 注意: - reference_images 必须与 images 内容对齐(同一裁剪区的原始帧) - mask 缺省时用整帧做参考拟合
Color Shift Fix (Swwan)
- images
- reference_images
- mask
- image
◄strength1.00►
◄smooth_window9►
◄trim_percentile70►
◄deviceGPU►
CategorySwwan/Image
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| reference_images | IMAGE | — | |
| strength | FLOAT | 1.000–1 | — |
| smooth_window | INT | 91–99 | — |
| trim_percentile | FLOAT | 7050–95 | — |
| device | COMBO | GPU | 2 options: CPU, GPU |
| maskopt | MASK | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |