← sources

SameFace, a new ComfyUI node pack, measures it and moves it back.

source: reddit (reddit:comfyui)published 2026-10-30 03:45ingested 2026-10-31 02:40

retained text

A **#OpenSourceHiggsfield** challenge entry

# Problem it trying to solve

Image editing restore, colourise and restyle faces well enough that the result still looks like the same person, but the shape of the face often shifts a little: an eye higher, a jaw wider.

In the demo, Lincoln's head came out 3.7% wider for its height.

# what it can do

SameFace measures that before and after face drift and repairs it:

* RAFT optical flow follows a few hundred points of the face from the original into the edit, inside a Grounded SAM 2 face mask
* the move, scale and turn of the whole face are taken out; what is left is drift, in % of face size, with a shift map, a histogram and a grid of where it is
* a thin-plate spline warp moves the features back, and the repair is measured again: here 0.83% -> 0.010%, at the noise floor

# Give it a try

One node, SameFace Simple, does it all; the advanced nodes split each step out. Open source (Apache-2.0), open weights only, runs locally.

Install from ComfyUI Manager (search "SameFace"), or: [https://github.com/fixed-42/comfyui-sameface](https://github.com/fixed-42/comfyui-sameface).

*Sample workflow in repo*

document fetched 2026-10-31 00:44 · canonical https://reddit.com/r/comfyui/comments/1xj5461/sameface_a_new_comfyui_node_pack_measures_it_and