ComfyUI Node
kubakub align to source
Puts an edited picture back onto the picture it was made from. An image model that repaints a whole facade returns it a few pixels moved or scaled; on a building that shows. Finds the small shift and scale on the edges both pictures share and undoes it. When the two have too little in common, or the fit is not certain, the picture is returned as it is and the report says why. Not needed after the region sampler (it pastes inside masks).
kubakub align to source
- images
- source
- images
- report
◄fitmove and scale►
◄frameseach on its own►
Categorykubakub/2d/post
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The edited pictures (one, or the frames of a clip). | |
| source | IMAGE | What they were made from: the clay, the matrix, the render. One picture for all, or one per image. Another size is fine: the result has the size of the source. | |
| fit | COMBO | move and scale | move and scale: shift, scale and a little shear (what image models do). move only: a shift, when the size is known to be right. |
| framesopt | COMBO | each on its own | For a batch. one fit for all: the first picture is fitted and every frame gets the same correction (a clip that drifted as a whole stays steady). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | The pictures on the source, at its size. |
| report | STRING | Per picture: how far it sat off, or why it was left as it is. |