ComfyUI Extension: comfyui-segs-profile
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A tiny ComfyUI custom node that detects whether a face is in profile using SEGS eye detections.
Looking for a different extension?
Custom Nodes (0)
README
comfyui-segs-profile
A tiny ComfyUI custom node that detects whether a face is in profile using SEGS eye detections.
It expects a single SEGS input that may contain segments labeled left_eye and right_eye
(as produced by many SEGS/Impact pipelines). It picks the largest segment for each eye,
computes the area ratio, and returns a boolean is_profile.
If one of the eyes is missing, the node returns is_profile = True and eye_ratio = 0.0.
Node
Name in ComfyUI: SEGS Is Profile (eye_ratio)
Inputs
segs(SEGS): should contain segments with labelsleft_eyeandright_eye(if detected)threshold(FLOAT): default2.0
is_profile = eye_ratio > threshold
Outputs
is_profile(BOOLEAN)eye_ratio(FLOAT)debug(STRING) – convenient for previewing values
Algorithm
- Extract segments list from
SEGS - Pick the largest
left_eyeandright_eyeby bbox area - Compute
area = (x2-x1) * (y2-y1) - If one eye is missing:
is_profile=True,eye_ratio=0.0 - Else:
eye_ratio = max(area_left, area_right) / (min(area_left, area_right) + eps) - Compare with
threshold
Installation
Option A: as a git subfolder (recommended)
Clone into ComfyUI custom_nodes:
cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/tabisheva/comfyui-segs-profile.git
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.