Nodes/ComfyUI_KubaNodes/kubakub align to source
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).

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
kubakub align to source
  • images
  • source
  • images
  • report
◄fitmove and scale►
◄frameseach on its own►
Categorykubakub/2d/post

Inputs (4)

NameTypeDefaultDescription
imagesIMAGEThe edited pictures (one, or the frames of a clip).
sourceIMAGEWhat 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.
fitCOMBOmove and scalemove and scale: shift, scale and a little shear (what image models do). move only: a shift, when the size is known to be right.
framesoptCOMBOeach on its ownFor 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)

NameTypeDescription
imagesIMAGEThe pictures on the source, at its size.
reportSTRINGPer picture: how far it sat off, or why it was left as it is.