ComfyUI Node
Gaze Offset Calculator
Analyzes gaze direction in both images using InsightFace, then calculates the pupil_x/pupil_y values needed by ExpressionEditor to shift the sample's gaze to match the source.
Gaze Offset Calculator
- sample_image
- source_image
- pupil_x
- pupil_y
◄strength1.5►
Categoryface/gaze
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| sample_image | IMAGE | — | |
| source_image | IMAGE | — | |
| strength | FLOAT | 1.50–5 | Multiplier for the calculated offset. 1.0 = exact match attempt. 1.5 = overshoot to compensate for ExpressionEditor saturation. Increase if gaze change is too weak. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| pupil_x | FLOAT | — |
| pupil_y | FLOAT | — |