Nodes/Ruucm's ComfyUI Nodes/Gaze Offset Calculator
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.

By ruucm·Created 2 years ago·Updated 5 months ago· 3
Gaze Offset Calculator
  • sample_image
  • source_image
  • pupil_x
  • pupil_y
strength1.5
Categoryface/gaze

Inputs (3)

NameTypeDefaultDescription
sample_imageIMAGE
source_imageIMAGE
strengthFLOAT1.50–5Multiplier 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)

NameTypeDescription
pupil_xFLOAT
pupil_yFLOAT