Nodes/ComfyUI-BFSNodes/BFS Keyframe Marks
ComfyUI Node

BFS Keyframe Marks

BFS Keyframe Marks: the tracked person's mask at every keyframe, and the keyframe frames marked for an image edit.

By alisson-anjos·Created 8 months ago·Updated a day ago· 137
BFS Keyframe Marks
  • guide_video
  • masks
  • marked_frames
  • masks
  • source_frames
  • report
◄keyframe_spec—►
◄mark_color#FF00FF►
◄mark_opacity0.30►
◄grow_pixels0►
◄threshold0.50►
CategoryBFS/MiniMax H3

Inputs (7)

NameTypeDefaultDescription
guide_videoIMAGEThe guide frames the track was made on (same frames as the Planner's guide).
masksMASKThe person to replace: one mask per guide frame, or one per keyframe (Segment Picker batch_masks on the Planner's source_frames).
keyframe_specSTRINGBFS Keyframe Planner keyframe_spec: which frames are keyframes.
mark_colorSTRING#FF00FFTint of the person in marked_frames (hex).
mark_opacityFLOAT0.300–1How strongly the person is tinted (0.3 = the Colored Mark default).
grow_pixelsINT0-64–64Grow (positive) or shrink (negative) each mask before tinting, e.g. to cover hair.
thresholdFLOAT0.500–1Mask values above this count as the person.

Outputs (4)

NameTypeDescription
marked_framesIMAGEThe keyframe frames with the person tinted, one per keyframe (in keyframe_spec order).
masksMASKThe person's mask at each keyframe.
source_framesIMAGEThe untouched keyframe frames.
reportSTRINGJSON: per keyframe its frame, time, mask area and whether the mask is empty.