Tags: motionbirefnetmattingalpharunpod-serverlessvolume-backed
Inputs (7)#
The typed parameter surface callers bind when they request this workflow. Enum options and numeric bounds are the values the workflow document declares.
source_videovideorequiredmask_videovideoedge_featherintegerdefault 0min 0max 64edge_erodeintegerdefault 0min -20max 20sensitivityfloatdefault 1.0min 0.0max 1.0output_fpsfloatdefault 16.0min 1.0max 60.0crffloatdefault 20.0min 0.0max 63.0ComfyUI node graph (7)#
The executable ComfyUI prompt graph: 7 nodes across 7 distinct node classes, wired by 6 data dependencies. Nodes tinted green come from a custom node pack this workflow declares; the rest are ComfyUI core / baked-community classes.
Nodes (7)#
1LoadVideocorefile = {{source_video}} tmplVIDEO2GetVideoComponentscorevideo = ◂ node 1 · out[0]IMAGEAUDIOFLOATCOMBOCOMBO3BiRefNetRMBGcoreimage = ◂ node 2 · out[0]model = BiRefNet-HR-mattingsensitivity = {{sensitivity}} tmplmask_blur = {{edge_feather}} tmplmask_offset = {{edge_erode}} tmplinvert_output = falserefine_foreground = truebackground = AlphaIMAGEMASKIMAGE4SaveWEBMcoreimages = ◂ node 3 · out[0]filename_prefix = birefnet-rgbacodec = vp9fps = {{output_fps}} tmplcrf = {{crf}} tmpl5MaskToImagecoremask = ◂ node 3 · out[1]IMAGE6CreateVideocoreimages = ◂ node 5 · out[0]fps = {{output_fps}} tmplVIDEO7SaveVideocorevideo = ◂ node 6 · out[0]filename_prefix = birefnet-matteformat = mp4Parameter banks (2)#
The prompt / configuration lookup tables this workflow keys into from its inputs — the vocabulary that turns a style / palette / preset selection into graph parameters.
post_render (1)#
mask_restrict{"input": "mask_video", "source_class": "BiRefNetRMBG", "matte_output": 1, "rgba_output": 0, "matte_consumer_class": "MaskToImage", "matte_consumer_input": "mask", "rgba_consumer_class": "SaveWEBM", "rgba_consumer_input": "images"}requires_families (1)#
birefnetModels & dependencies#
Custom node packs (1)#
The non-core ComfyUI node classes this graph requires; the RunPod worker image the workflow runs on must bake or install a pack that provides every one of them.
ComfyUI-RMBGModels required (1)#
BiRefNet-HR-matting.safetensorsOutput contract#
What a successful run of this workflow returns.
primary{"type": "video", "format": "webm", "codec": "vp9", "fps_source": "declared", "audio": false, "alpha": true, "description": "RGBA clip with the matted subject over transparency."}secondary{"type": "video", "format": "mp4", "codec": "h264", "fps_source": "declared", "audio": false, "alpha": false, "description": "Grayscale matte, one frame per source frame."}Taxonomy & routing#
How the control plane classifies this workflow — from the committed workflow-taxonomy-registry.json. It drives the consistency / control surface the agentic director can exercise over the workflow.
assetFamilyfilm-vfx-element-libraryoutputPackageProfilevideo-master-profilecontrolModalitiesmodel-locktemporal-lockcontrolnet-segmentationconsistencyDimensionsidentitymotionnotesBiRefNet HR matting per frame. Filed under film-vfx-element-library because an RGBA element over transparency is what it produces -- it is a plate for compositing, not a finished clip. The optional restrict branch intersects the matte with a SAM 3 track, which is why controlnet-segmentation appears.