Docs
ComfyUI nodes
A ComfyUI node pack over the public API (fastforks.load(...), then a call per image). It adds no models of its own: every dropdown lists fastforks ids of that task.
- fastforks (
integrations/comfyui): every fastforks model, those not cleared for commercial use tagged[non-commercial]. Some models are for non-commercial use only; using each within its licence is your responsibility (see Licences). It installs thefastforkspackage (fastforks-corewith every model family).
The pack's README (integrations/comfyui/README.md) lists its nodes and models, generated from the registry (tools/gen_comfyui_readme.py).
Install
With ComfyUI-Manager or the Comfy registry: comfy node install fastforks, then
restart ComfyUI.
From a clone: a pack is a folder of integrations/, not the repository. Clone the repository outside custom_nodes
(ComfyUI imports every folder there and reports the repository root as IMPORT FAILED) and link the folder in.
git clone https://github.com/kleinicke/fastforks
ln -s "$PWD/fastforks/integrations/comfyui" ComfyUI/custom_nodes/comfyui-fastforks # Linux / macOS
pip install -r ComfyUI/custom_nodes/comfyui-fastforks/requirements.txt # with ComfyUI's Python
Windows (cmd): a directory junction needs no administrator rights or developer mode (a symlink, mklink /D, does);
copying the folder also works but does not follow git pull.
mklink /J ComfyUI\custom_nodes\comfyui-fastforks C:\path\to\fastforks\integrations\comfyui
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\comfyui-fastforks\requirements.txt
requirements.txt installs fastforks>=0.3.0 from PyPI and keeps ComfyUI's torch (it needs torch >= 2.8); use
pip install -e "./fastforks[libs]" instead to run the cloned source (it has every model family). Installing the repository URL with
ComfyUI-Manager's "Install via Git URL" clones the root, which is not a node pack.
Apple silicon: the pack's requirements also install Apple's mlx there (an environment marker; nothing on other
platforms). With it auto runs a model through its MLX port where that is faster than PyTorch MPS, and the mlx
backend works. A source install has it with pip install -e "./fastforks[libs,mlx]". Without mlx every model
still runs on MPS with auto and portable, and mlx fails with the pip line.
Windows: the kernels backend works like on Linux (the DLLs download once, like the weights, and need no C++ toolchain). A
library without a Windows build makes kernels fail for that model and auto run portable, with one warning per model load. Paths stay short: the cache adds at most ~110 characters
to the ComfyUI folder (models\fastforks\blobs\sha256\ab\<sha256>, downloads in a .download.* folder next to it),
so a ComfyUI folder below ~140 characters needs no long-path setting.
Nodes (category fastforks)
| Node | Inputs | Outputs |
|---|---|---|
| Depth | IMAGE | IMAGE: inverse depth scaled to 0-1 per image (near = white); image models only |
| Video depth | IMAGE batch (frames of one clip) | IMAGE batch: Video Depth Anything run as one clip, one 0-1 scale for all frames (no flicker) |
| Normals | IMAGE | IMAGE: normal map (red = right, green = up, blue = towards the camera) |
| Line art / edges | IMAGE | IMAGE: line or edge map, white lines on black (line art, anime line art, AnyLine, HED / PiDiNet soft edges, TEED, M-LSD line segments): the ControlNet hints |
| Remove background | IMAGE, trimap MASK (ViTMatte only) | IMAGE (RGBA), MASK (alpha) |
| Segment (SAM) | IMAGE, points x,y; x,y, box x0,y0,x1,y1, text (SAM 3, CLIPSeg) | MASK |
| Segment like a reference (INSID3) | IMAGE, reference IMAGE batch, one reference MASK per reference (nonzero = the concept) | MASK: what the references mark, found in each image (references embedded once) |
| Detect objects | IMAGE, score threshold, classes (open-vocabulary query or class filter) | MASK, STRING (JSON boxes) |
| Pose | IMAGE, detections (JSON of a Detect node; top-down models) | IMAGE (skeletons on black), STRING (JSON keypoints) |
| Interpolate frames | IMAGE batch, multiplier | IMAGE batch with multiplier - 1 new frames per pair |
| Classify | IMAGE, top k | STRING (classes) |
| Tag (WD tagger) | IMAGE, general / character thresholds (0.35 / 0.75) | STRING: Danbooru tags, most likely first |
| NSFW check | IMAGE | STRING (normal / nsfw per image), FLOAT (highest nsfw probability of the batch) |
| Semantic segmentation | IMAGE, classes for the mask | IMAGE (class colours), MASK (listed classes), STRING (classes found), MASK (one per listed class) |
| Parse clothes / face | as Semantic segmentation (SegFormer b2 clothes, b5 face parsing) | as Semantic segmentation |
| Stereo disparity | left IMAGE, right IMAGE (rectified; with the optional calibration file of the rig also unrectified), output disparity or depth (depth needs the calibration) | IMAGE: disparity (or metric depth shown as inverse depth) scaled to 0-1 per image (near = white) |
| Optical flow | IMAGE batch (frames) | IMAGE (colour wheel, one per pair), FASTFORKS_FLOW (pixels, for Warp) |
| Warp by flow | IMAGE, FASTFORKS_FLOW | IMAGE: image i sampled along flow i (frames[1:] -> frames[:-1]) |
| Video segment (SAM 2 / SAMURAI) | IMAGE batch, points / box on frame 0, samurai | MASK batch |
| Video matte (MatAnyone) | IMAGE batch (frames), MASK of the object on frame 0 | IMAGE batch (RGBA), MASK batch (alpha) |
| Track points | IMAGE batch, grid size or points on frame 0 | IMAGE (tracks drawn on the frames), STRING (JSON tracks) |
| Upscale / restore | IMAGE, tile (input px, 32 px overlap; 0 = one pass; keep it on for HAT / DAT) | IMAGE |
| Inpaint / remove objects (LaMa) | IMAGE, MASK (every nonzero pixel is filled; one mask for all images, or one per image) | IMAGE: the masked region filled, the rest unchanged |
| Restore faces (GFPGAN / CodeFormer) | IMAGE; optional faces: paste_back (each face RetinaFace finds is aligned to facexlib's 512 x 512 template, restored and blended back with facexlib's soft mask), aligned_crops (512 x 512 FFHQ-aligned crops), auto (crops for 512 x 512 images, else paste_back; v0.3.0's detect and paste back / aligned crops still load); optional fidelity (CodeFormer's w, 0.5) | IMAGE |
| Depth completion | Prompt Depth Anything, LingBot-Depth, OMNI-DC, Any2Full: IMAGE, sparse / low-resolution metric depth file (.npy, .npz, .tif, 16-bit .png; unit m or mm, default m) | IMAGE: completed depth scaled to 0-1 |
| Camera calibration | GeoCalib, AnyCalib: IMAGE | STRING (JSON intrinsics, vertical field of view, and roll / pitch where the model gives them) |
| OCR text | PP-OCRv5, PARSeq: IMAGE | STRING (texts), STRING (JSON lines with quads), IMAGE (polygons drawn) |
| Feature map (PCA) | DINOv2 / v3, CLIP, SigLIP2, RADIO, ...: IMAGE, size (shorter side, rounded to the model's patch size) | IMAGE: PCA of the patch features as colours |
| Text query | CLIP / SigLIP 2 text towers: IMAGE batch, text (one query or label per line), mode search (top k images per query) or zero_shot (template) | STRING: JSON ranking (index, score) or label probabilities; IMAGE: the images in the order of the first query |
| Verify faces | LVFace: image_a, image_b (same count, or one image for all of A), threshold | STRING: cosine similarity per pair; STRING: same person per pair; IMAGE: the aligned 112 px face crops |
| Video features | V-JEPA 2: IMAGE batch as one clip (even number of frames), size (shorter side, rounded to 16) | STRING: clip embedding as JSON; IMAGE: PCA of the clip's tokens as colours, one frame per 2 input frames |
| Match images | RoMa, LoMa, LoFTR, ALIKED / DISK + LightGlue, ...: two IMAGE (or two batches, paired), max_matches (dense models), optional focal (pixels, for the pose) | IMAGE (match lines, green = consistent, red = outliers), STRING (JSON points), STRING (homography, JSON), STRING (pose, JSON) |
| Multi-view scene (VGGT / Pi3) | VGGT, Pi3, MapAnything, ...: IMAGE batch (views of one scene), reference_view, export: ply, las, colmap_scene, nerfstudio_scene or none | IMAGE (depth, one scale for all views), STRING (JSON cameras), STRING (path of the export under output/) |
| Structure from motion | folder of photos, retrieval (or none: all pairs) and matcher dropdowns, ransac_px, mapper incremental or global; backend auto / portable / kernels (no MLX path) | STRING (COLMAP model folder under output/), STRING (JSON statistics); needs pycolmap |
| Volume segmentation | TotalSegmentator: path of a .nii / .nii.gz file or a DICOM series folder, preview slice middle or most_labelled | STRING (labels NIfTI path), STRING (JSON label names), IMAGE (one labelled slice); needs nibabel |
| Stitch panorama | ALIKED + LightGlue, LoMa, RoMa, ...: IMAGE batch (photos from one standpoint), projection auto / spherical / cylindrical / planar, blend, pairs all / consecutive / loop, focal_px (0 = estimate) | IMAGE (panorama), MASK (covered pixels), STRING (JSON cameras); photos that overlap too little are left out |
| Stabilize video | NeuFlow v2, RAFT, SEA-RAFT, ...: IMAGE batch (frames of one video), smoothing (frames), max_crop (share of the size), borders crop / black, motion similarity / affine / homography | IMAGE batch (same count and size), MASK batch (borders: 1 = no image), STRING (JSON stats) |
| Measure objects | MoGe-2, Depth Anything 3 metric, Metric3D, ...: IMAGE, optional MASK of the object, between (pixel pairs x1,y1; x2,y2), plane auto / none, erode, focal_px (0 = the model's estimate; needed by models without one) | IMAGE (preview: measured pixels tinted, distances drawn), STRING (JSON, metres) |
| Depth from two photos | stereo model (RAFT-Stereo SceneFlow, ...) and matcher dropdowns: first, second IMAGE (one photo each, taken a step apart, no rig), focal_px (0 = uncalibrated), baseline, save_ply | IMAGE (depth of the first photo, near = white), STRING (JSON cameras), STRING (.ply path under output/, or empty), FILE_3D (model_3d, the same point cloud) |
| Volume click segmentation | nnInteractive (non-commercial weights): path of a .nii / .nii.gz file or a DICOM series folder, points (object voxels z,y,x; z,y,x), optional negative_points (background), preview slice | STRING (mask NIfTI path, 0 / 1 on the input's grid), IMAGE (one slice with the mask); needs nibabel |
| Volume post-processing | no model: path of a NIfTI label file (e.g. Volume segmentation's labels_path), min_ml (islands below it become background), largest, fill_holes, meshes none / stl / ply / obj / glb with smooth; optional label_names (JSON) and volume_path (mean intensity, preview background) | STRING (cleaned labels NIfTI path, or the input path if nothing is cleaned), STRING (JSON statistics), STRING (mesh folder under output/, one file per label in scanner RAS mm), IMAGE (one labelled slice), FILE_3D (model_3d: all labels in one mesh next to the folder, coloured as in the preview); needs nibabel |
| Filter blurry photos | no model: images_folder, keep_fraction (best share kept), min_score (variance of the Laplacian) | STRING (sharp_folder: a new output folder with the kept photos), STRING (scores) |
| Prepare Gaussian splatting dataset | no model: model_path (from Structure from motion), images_folder (the photos it read), downscale (2,4,8) | STRING (dataset_folder), STRING (stats) |
| Gaussian splats from photos | AnySplat (models that predict Gaussians from images alone): IMAGE batch (views of one scene), reference_view, filename_prefix | STRING (3DGS .ply under output/), IMAGE (depth, one scale for all views), FILE_3D (model_3d, the splat file for 3D viewer nodes) |
| Image to 3D mesh (TripoSR) | TripoSR (image-to-3D models): one IMAGE (a single object), optional MASK of the object (or an RGBA image; the object is cut out and centred on grey), resolution (marching cubes grid, default 256), size (0 = keep the model's own scale; else the longest side in unit m / mm), format glb (turned to y up), ply, obj or stl, filename_prefix | STRING (mesh path under output/), FILE_3D (model_3d, for 3D viewer nodes) |
| Multi-view mesh | VGGT, MapAnything, LingBot-Map, ... (models that return depth and cameras): IMAGE batch (views of one scene), reference_view, fusion voxel_size (0: auto), min_agree, tolerance, min_weight, remove_islands, smooth, format glb (turned to y up), ply, obj or stl | IMAGE (depth, one scale for all views), STRING (JSON cameras), STRING (mesh path under output/), FILE_3D (the mesh, for ComfyUI's Preview 3D (Advanced) and Save 3D) |
| Video to 3D scene | the same models: IMAGE batch of video frames or a folder of .png / .jpg frames, keyframe step (0: every frame) and max_gap, model window and overlap, export colmap_scene, nerfstudio_scene or none, mesh none / glb / ply / obj / stl | IMAGE (depth of up to 16 keyframes), STRING (JSON cameras of the keyframes), STRING (scene folder under output/), STRING (mesh path), FILE_3D (the mesh, or empty) |
| Track objects | detector (Grounding DINO, OWLv2, ...) dropdown: IMAGE batch (frames of one video), classes (comma-separated text), score_threshold, hold (frames a lost track is kept), line_width | IMAGE (preview, box and ID per track), STRING (JSON tracks) |
| Retrieve similar images | MegaLoc, BoQ, DINOv2, ...: IMAGE batch (queries), optional gallery IMAGE batch, mode top_k or pairs, k | STRING (index, JSON) |
| Track and segment objects | detector (Grounding DINO, OWLv2, ...) and segmenter (SAM 2.1, ...) dropdowns: IMAGE batch (frames of one video), classes (comma-separated text), score_threshold, hold (frames a lost track is kept), track_id (0 = all) | IMAGE (preview, one colour per track ID), MASK batch (pixels of track_id, or of every track), STRING (JSON tracks) |
| Track poses | person detector and top-down pose model (RTMPose, ViTPose, DWPose, ...) dropdowns: IMAGE batch, score_threshold, One-Euro min_cutoff (Hz; 0 = no smoothing) and beta, fps, keypoint_threshold, line_width (px) | IMAGE (skeletons drawn), STRING (JSON keypoints with track IDs), STRING (OpenPose JSON, one per frame) |
| Anonymize faces | face detector (RetinaFace, YuNet) and optional people detector (none = faces only; RF-DETR Seg covers the person masks, box models the boxes) dropdowns: IMAGE (or batch), method blur / pixelate, blocks, margin (share of the face box), score_threshold, video (track faces through the batch) with hold (frames a missed face stays covered) | IMAGE (anonymized), MASK (covered pixels), STRING (JSON face boxes) |
| Localize photos in an SfM model | retrieval (or none: all model photos) and matcher dropdowns: IMAGE batch (new photos of the scene), model_path (a COLMAP model folder, e.g. Structure from motion's output), images_folder (the model's photos), references, ransac_px, focal_px (0 = the model's camera); no MLX path | STRING (JSON pose per photo) |
| Change detection | matcher and features (DINOv2, ..., or none: colour only) dropdowns: before, after IMAGE (one photo each), align homography (same standpoint or a flat scene) / warp (a moved camera, dense matcher) / none, threshold (0 = Otsu), min_area (share of the image), max_size; no MLX path | MASK (mask: changed regions), MASK (score 0-1), IMAGE (preview: changes tinted and boxed), IMAGE (aligned: the second photo warped onto the first), STRING (JSON boxes) |
| Curate image folder | DINOv2, SigLIP2, ... (one embedding per image): images_folder, duplicate (cosine), neighbours, outlier_z, copy_kept; never deletes or moves the input files; no MLX path | STRING (JSON report), STRING (output folder with curation.json, keep.txt, duplicates.txt, outliers.txt, with copy_kept a keep/ copy) |
| Anomaly inspector | DINOv2 (default), DINOv3 (custom licence): references (normal photos) and images, size, coreset (share of reference patches kept), threshold (0: highest score of a reference against the others; needs two or more references); training-free patch-feature memory bank, no MLX path | MASK (heat map, 0.5 = threshold), MASK (above threshold), IMAGE (heat map blended in red), STRING (JSON scores) |
| Refocus photo | depth model (Depth Anything v2, MoGe-2, ...): IMAGE, focus (a pixel x,y, a nearness 0-1, or empty: the subject or the centre), aperture (blur radius per unit of nearness, share of the image diagonal), highlights (bokeh boost of bright spots), optional subject MASK (kept sharp) | IMAGE (refocused), MASK (nearness: 1 = nearest) |
| Relight photo | normals or depth model (MoGe-2 normal, Lotus, StableNormal, ...): IMAGE, light direction light_x / light_y / light_z (camera axes: x right, y down, z forward; -1 = from the camera), strength, ambient, soft (0 = Lambert, 1 = wrapped half-Lambert), color (r, g, b); no cast shadows | IMAGE (relit), MASK (shading), IMAGE (normals as colours) |
| Parallax clip from a photo | metric depth model (MoGe-2, Depth Anything 3 metric, ...) and inpaint (LaMa) dropdowns: one IMAGE, path orbit / dolly / dolly_zoom, frames, amount (camera move, share of the median depth), fill stretch / inpaint | IMAGE batch (frames), MASK batch (holes: no pixel rendered there), STRING (JSON cameras) |
| Remove video objects | flow (SEA-RAFT, NeuFlow v2, ...), inpaint (LaMa), segmenter (SAM 2.1) and detector (Grounding DINO, ...) dropdowns: IMAGE batch (frames of one video), one of text (classes), box (x1,y1,x2,y2 on frame 0), points (x,y; ... on frame 0) or the MASK input (one mask for frame 0, or one per frame: then no segmenter), dilate (px), max_size (working size, 0 = full) | IMAGE batch (object removed, other pixels unchanged), MASK batch (removed pixels), MASK batch (inpainted: filled by LaMa, the rest copied from other frames) |
| Scan document | OCR model (PP-OCRv5, ...): IMAGE (photos of pages), find_page (BiRefNet lite), dewarp (UVDoc, curved pages), fix_rotation (PP-LCNet, 0/90/180/270), clean none / binarize / denoise (NAFNet), codes (needs pip install tapirscan; Windows ARM has no wheel); one page and one text column per photo (two pages or two columns are read as one), curved pages need dewarp, dense tables / dark backgrounds can be missed by BiRefNet lite (then the photo is read whole); no MLX path | IMAGE (page: rectified and upright, scaled to the first page's size), STRING (text), STRING (scan, JSON) |
| Scan codes | no model (tapirscan on the CPU, pip install tapirscan): IMAGE, formats (common, all, 1D, 2D, retail, common1D), effort, line_width; 1D codes need about 2 px per bar and a sharp photo | IMAGE (preview: codes outlined), STRING (codes, JSON), STRING (first: the first value) |
| Calibrate camera from a chessboard | no model: IMAGE batch (3+ photos of a flat chessboard, tilted, also near the image corners), columns x rows inner corners, square_mm, camera_model opencv / radtan / pinhole / kb4 (fisheye), save_as none / opencv / ros / kalibr, optional images2 (camera 2, same moments: a stereo rig); optional board charuco (OpenCV's ChArUco layout: columns x rows squares, marker_mm, dictionary e.g. 5x5_100; partly visible boards count); views with a misdetected board are left out | IMAGE (preview: board outlined, ChArUco: a box per corner), STRING (calibration, JSON) |
| Merge photos: HDR / focus / burst / clean plate | ALIKED + LightGlue, ... (the aligner): IMAGE batch of one scene, merge exposure fusion / exposure hdr / focus stack / burst / clean plate (3+ photos), align auto / none (tripod), max_size; burst aligns with homographies (the library's optical-flow burst is not in the node) | IMAGE (image), MASK (ghosts / focus confidence / frames merged / clean plate gaps), STRING (info, JSON) |
| Mosaic flat scenes | ALIKED + LightGlue, LoMa, RoMa, ...: IMAGE batch (overlapping photos of a wall, document, map, ground from above), blend multiband / feather, pairs all / consecutive, max_size; a scene with depth from one standpoint is Stitch panorama | IMAGE (mosaic), MASK (covered pixels), STRING (info, JSON) |
| Register point clouds | no model: source_file / target_file (PLY in the input folder, e.g. two Point cloud outputs), mode global (any start pose: FPFH features, consensus, ICP) / icp (clouds already roughly aligned), voxel (metres, 0 = auto), filename_prefix, optional format ply / las / laz (LAS needs laspy) | STRING (transform, JSON), STRING (path, both clouds merged in the target frame, PLY / LAS / LAZ) |
| Hand-eye calibration | no model: poses_file (JSON in the input folder: robot_poses and board_poses, N x 4 x 4 each, same order and unit), mode eye_in_hand / eye_to_hand, refine auto / pose / none | STRING (calibration, JSON) |
| Track camera, RGB-D odometry | keypoint matchers (xfeat, aliked-lightglue, ...): images (frames in order, undistorted), depth_folder (one depth file per frame in the input folder), unit, fx fy cx cy, threshold, max_depth | STRING (trajectory, JSON) |
| Bundle adjustment | no model: bal_file (a Bundle Adjustment in the Large problem, .txt / .bz2, in the input folder), refine_intrinsics, loss huber / l2, iterations | STRING (result, JSON) |
Every node has model, backend and dtype. dtype auto is what fastforks picks for the backend: float32 for
portable, the kernels' own dtype for kernels (often float16), and on a Mac the fastest validated one measured for
auto and mlx (often float16, on plain MPS too); pick float32 for full precision. backend has the same four
entries on every platform, so a workflow saved on one machine validates on another:
backend | Windows / Linux | Mac |
|---|---|---|
auto | our CUDA kernels where they measured faster, else plain PyTorch | plain PyTorch MPS, our Metal kernels or the model's MLX port, as measured per model |
portable | plain PyTorch | plain PyTorch MPS |
kernels | our CUDA kernels; an error if the model has none | our Metal kernels; an error if the model has none (it never runs MLX) |
mlx | an error: it needs Apple silicon | the model's MLX port; an error with the pip line if the mlx package is missing, or if the model has no port |
mlxis the model's MLX port instead of PyTorch MPS, in its fastest measured configuration (with our Metal kernels where the port has them and they are faster). It often needs less memory, but its first run of each image size compiles and is slower. Measured on an M1 Pro over 277 models: about a third less memory (median), similar warm speed, first run 4.1 s against 0.7 s (median). On macOS the pack keeps that first-run work inmodels/fastforks/mlx-plans, so it is not repeated after a ComfyUI restart (setFASTFORKS_MLX_PLAN_CACHEto an empty value to turn this off). An out-of-memory error on MPS suggestsmlx.
Node classes are named Fastforks<Name> (shown as "Depth (fastforks)"). Warp, Volume post-processing, Register point clouds, Hand-eye calibration and Bundle adjustment take no model.
File paths
Depth completion (depth_file), Structure from motion and Curate image folder (images_folder), Localize photos in
an SfM model (model_path, images_folder), Video to 3D scene (frames_folder), Volume
segmentation and Volume post-processing (volume_path, labels_path), Register point clouds (source_file,
target_file), Hand-eye calibration (poses_file), Bundle adjustment (bal_file), Track camera (depth_folder) and the Stereo calibration read a path relative to ComfyUI's input folder, then its output folder: put the file there and
type depth.npy or scans/ct.nii.gz. Quotes around the path (Windows "Copy as path") are removed and \ works as a
separator everywhere. A path outside these two folders (absolute, C:\..., ~/... or ../) is refused with a message
saying how to fix it, since a ComfyUI started with --listen would otherwise let every visitor read any file of the
server. On your own machine, start ComfyUI with FASTFORKS_COMFYUI_ALLOW_ABSOLUTE_PATHS=1 to allow any path. Outputs
always go into the output folder (filename_prefix refuses absolute paths and ..; Depth from two
photos writes its .ply there).
JSON and text outputs
STRING outputs with data are JSON. Coordinates are pixels of the input image, x right and y down; boxes are
[x0, y0, x1, y1]; angles are radians. With a batch, the outer list has one entry per image (per pair for Match).
| Node | Output | Shape |
|---|---|---|
| Detect objects | detections | per image a list of {box, score, label, class_name} (label and class_name for models with classes) |
| Pose | keypoints | per image a list of persons {box, score, keypoints: {name: [x, y, score]}} |
| OCR text | lines | per image a list of {text, score, quad}, quad the four corners [x, y] clockwise from the top left |
| Match images | matches | per pair {points1, points2, scores, inliers, inlier_ratio, fundamental, ok, error}: points1[i] in image 1 matches points2[i] in image 2; fundamental is 3x3 or null; with too few matches ok is false and error says why (null otherwise) |
| Match images | homography | per pair {H, inliers, ok}: H the 3x3 planar transform with x2 ~ H x1 in pixels (RANSAC on the matches), inliers their count |
| Match images | pose | per pair {R, t, inliers, ok} (relative pose of camera 2 to camera 1, t of unit length), or null while focal is 0 |
| Retrieve similar images | index | top_k: {index, scores}, per query image the gallery images (0-based) and cosine similarities, best first; pairs: {pairs}, [i, j] with i < j |
| Track points | tracks | {tracks, visible} for the whole clip: tracks[t][q] = [x, y] of query q in frame t, visible[t][q] true / false |
| Multi-view scene | cameras | {kind, views, intrinsics, cam_to_world}: per view a 3x3 intrinsics and a 4x4 camera-to-world matrix (OpenCV axes: x right, y down, z forward; the reference view is the identity); null if the model gives none |
| Camera calibration | calibration | per image {intrinsics, vfov, roll, pitch, gravity} (the angles in radians, gravity a unit vector in the camera frame; keys the model does not give are left out). No node takes it as an input yet: it is for your own use |
| Structure from motion | stats | {images, pairs, verified_pairs, models, registered_images, points, seconds, output} |
| Volume segmentation | label_names | {label id: name} of the labels found in the volume |
| Stitch panorama | cameras | {projection, size, scale, origin, used, focals, rotations, gains}: per input photo used true / false, its focal length in pixels, its 3x3 world-to-camera rotation and exposure gain (null for photos left out); scale is panorama pixels per radian (planar: the focal length of the projection) and origin the projection coordinates times scale of the top-left pixel |
| Stabilize video | stats | {frames, zoom, still_pairs, inliers, warps}: zoom applied to every frame (1 = none), per frame pair the share of agreeing flow (0 = taken as still), per frame the 3x3 warp from output to input pixels |
| Measure objects | measurements | per image {length, width, height, area, volume, camera_distance, distances} in metres, m² and m³: length / width along the support plane, height above it, volume down to it (null without a mask, or without a plane for height / volume); distances one per between pair (null where a point has no depth) |
| Depth from two photos | cameras | {calibrated, size, scale, flipped, matches, inliers}, size and scale of the working size the depth map has; with focal_px also rotation and translation of the second camera (x2 = R x1 + t, t in the unit of baseline), without it fundamental, H1, H2 (rectifying homographies of the working-size photos) |
| Volume post-processing | statistics | {class name: {label, voxels, volume_ml, bbox, centroid, intensity, intensity_std}} per label present: bbox the voxel index ranges [[d0, d1], [h0, h1], [w0, w1]] (end exclusive), centroid in scanner RAS mm, intensity / intensity_std the mean / std image value (HU for CT) inside the label, null without volume_path; named by label_names, else by label value |
| Filter blurry photos | scores | {scores: {photo: score}, kept, dropped}; the score is the variance of the Laplacian at a long side of 1024 px, comparable within one folder |
| Prepare Gaussian splatting dataset | stats | {images, cameras, points, downscale, output} |
| Multi-view mesh, Video to 3D scene | cameras | as Multi-view scene; for a video views are the keyframes' frame indices and the world is the first keyframe's camera |
| Track objects, Track and segment objects | tracks | per frame a list of {id, box, score, class_name, held}: id stays the same for one object through the clip (1, 2, ...), held true where the detector missed it and the box is the tracker's prediction |
| Track poses | keypoints | per frame a list of {id, box, keypoints: {name: [x, y, score]}} (smoothed), id as Track and segment objects |
| Parallax clip from a photo | cameras | {size, poses, intrinsics}: size [w, h], per frame the 4x4 pose that moves points from the photo's camera into the frame's camera (OpenCV axes, frame 0 the identity) and its 3x3 intrinsics in pixels |
| Track poses | openpose | per frame {version, people, canvas_width, canvas_height}, people a list of {person_id: [id], pose_keypoints_2d: [x, y, c, ...]} (BODY_18 order; 133-keypoint models also face_keypoints_2d, hand_left_keypoints_2d, hand_right_keypoints_2d); points below keypoint_threshold are 0, 0, 0 |
| Anonymize faces | faces | per image a list of covered face boxes [x0, y0, x1, y1] (before margin; with video including held faces the detector missed) |
| Localize photos in an SfM model | poses | per photo {ok, R, t, center, K, intrinsics, num_matches, num_inliers, references, seconds}: R (3x3) and t world-to-camera (x_cam = R x + t, COLMAP / OpenCV axes), center the camera position in model units, K the 3x3 intrinsics used and intrinsics where they came from (given, model camera <id> or guess, the last two with the searched focal length), references the matched model photos {name, score, matches} (matches: their 2D-3D matches); ok false (R the identity) with fewer than 12 inliers |
| Change detection | changes | {width, height, align, homography, matches, threshold, changed_fraction, covered_fraction, boxes, seconds}: boxes a list of {x0, y0, x1, y1, area, score} (pixels of before, area in pixels, score the mean change score), homography the 3x3 from before to after pixels (null unless homography), covered_fraction the share of before that after covers |
| Curate image folder | report | {model, images, kept, duplicate, outlier_z, groups, outliers, unreadable, seconds, output}: groups lists of near-duplicate paths (the one kept first; keep.txt lists every kept path), outliers {path, density} of the images unlike the rest (density the mean cosine to their nearest images), unreadable files that are no image, output the folder written |
| Anomaly inspector | scores | {model, references, threshold, images}: per inspected photo {score, anomalous}; score the mean of the top 1 % patch distances (0 to 2) |
| Scan document | scan | per photo {page_found, quad, size, rotation, text, lines, codes}: quad the page corners in the photo (TL, TR, BR, BL; the whole photo if no page was found), rotation the degrees it was turned, lines a list of {text, score, quad, row} in page pixels in reading order, codes as Scan codes (null with codes off) |
| Scan codes | codes | per image a list of {text, format, quad, content}: quad the code's 4 corners in pixels, content the parsed payload where tapirscan has one (URL, WiFi, contact, GS1, ...) |
| Calibrate camera from a chessboard | calibration | one camera: {camera, rms, used, file} with camera = {model, width, height, fx, fy, cx, cy, coefficients, std} (pixels; std the 1-sigma uncertainty), rms the reprojection error in pixels, used true / false per photo; a pair: {cameras, rms, camera_rms, used, rotation, translation_m, file} with camera 2's pose in camera 1 (metres); file only with save_as |
| Merge photos: HDR / focus / burst / clean plate | info | {used, reference, homographies, seconds} (photo -> reference 3x3, null for photos left out); exposures add {exposures, method}, burst has {align, share, reference, seconds} (share the mean weight per frame) |
| Mosaic flat scenes | info | {used, reference, error, gains, homographies}: photo -> mosaic 3x3 homographies, exposure gains (null for photos left out), error the median transfer error in pixels |
| Register point clouds | transform | {matrix, fitness, rmse, matches}: matrix the 4x4 source -> target transform, fitness the share of source points within the ICP threshold of the target, rmse their distance (metres), matches the feature matches that agree with the pose (0 in icp mode) |
| Hand-eye calibration | calibration | {matrix, board, rmse, used, method}: matrix the 4x4 camera -> gripper (eye_in_hand) or camera -> base (eye_to_hand) transform, board the board's pose in the base or gripper frame, rmse metres (rotation counted at the board distance), used the views kept, method park or pose |
| Track camera, RGB-D odometry | trajectory | {poses, inliers, keyframes, lost}, one entry per frame: poses 4x4 camera -> world (metric, frame 0 is the identity), inliers P3P inliers against the keyframe, keyframes and lost booleans (a lost frame repeats the last motion) |
| Bundle adjustment | result | {cameras, points, rmse, initial_rmse, iterations, seconds}: cameras C x 9 (angle-axis, translation, focal length, k1, k2 as in the BAL file), points P x 3, rmse the root mean square reprojection distance in pixels |
Text outputs: Classify writes one line per class (name: probability) and a blank line between images; OCR text one
line per text line and a blank line between images; Tag (comma-separated tags) and NSFW check (normal / nsfw) one
line per image. NSFW check's nsfw_score is the highest of the batch.
Licences
fastforks lists every installed model; those not cleared for commercial use are tagged ([non-commercial]:
non-commercial / research use only, GPL code: its copyleft terms; [licence unclear]: not cleared). Installing the
pack is the explicit opt-in to their weights: its nodes download them for their own runs (each run is inside the
library's allow_noncommercial()); nothing is set in the environment. Each node's description and model tooltip say
which models are non-commercial and that using each within its licence is your responsibility; the startup log says
how many there are.
Installing the pack does not license anything: you are responsible for using each model within its code and weights
licences (fastforks info MODEL shows them, with the evidence). FASTFORKS_COMMERCIAL_ONLY=1 makes the library refuse
every model not cleared for commercial use.
A node lists only the ids it can run: those whose required inputs it passes (model_card(id).contract().inputs).
The models that need more than the image have their own nodes: a depth map, Depth completion (Prompt Depth Anything,
LingBot-Depth, OMNI-DC, Any2Full); a mask or references, Inpaint (LaMa), Video matte (MatAnyone) and Segment like a
reference (INSID3).
Upscale also lists the files in models/upscale_models (file: <name>) whose architecture fastforks reads, detected
from the weights (fastforks.restoration.load(path)): ESRGAN / Real-ESRGAN (old or new key names), Compact (SRVGG),
SPAN, SwinIR, Swin2SR, HAT, DAT, DRCT, RealPLKSR, NAFNet, Restormer. Other files are not listed; load(path) names
the reason.
Weights and kernels already in the fastforks cache, the Hugging Face or torch hub cache are used in place; missing
ones download on first use into models/fastforks (another location: a fastforks: entry in
extra_model_paths.yaml). The pack also keeps there (comfyui-inputs.json) which models each node can run, so a
ComfyUI start does not import every model's code (0.6 s instead of 1.5-3 s on Windows); it is worked out again after a
fastforks update. Models run on ComfyUI's device and
stay loaded between runs (up to the eight most recently used, fewer when memory is short); ComfyUI's "Unload models" frees them, and ComfyUI unloads its
own models first when a fastforks model needs the room. When ComfyUI needs room for one of its models and unloading its
own was not enough, the fastforks models on that device free their CUDA graphs, then unload, least recently used first. By default batches run one image at a time, so a cancel stops after the
current image. Depth, Normals, Line art / edges, Remove background (without a trimap), Detect objects, Pose, Classify, Tag, NSFW check,
Semantic segmentation, Parse clothes / face, Restore faces, Stereo disparity, Depth completion and Camera calibration
have an optional batch_size input: several images (pairs) per model call,
which is several times faster for small models at 224-512 px (convnext-tiny 8.6x, depth-anything-v2-s 1.8x, rf-detr-s
5.9x; 480 x 640: rtmo-s pose 2.3x, yunet-n faces 2.7x, stereo aanet 2.1x, on an RTX 5060 Ti under
Windows) and uses more memory; models that cannot
batch raise an error, stereo models that gain nothing from it run one pair at a time. Interpolate and Flow take batch_size
consecutive pairs per call, 8 by default (384 x 384: rife-4.26 5.6x; 480 x 640: rife-4.26 2.6x, raft-small 3.2x,
neuflow-v2 2.7x); models that gain nothing from it (sea-raft, gmflow, film, larger frames) still run them one pair at a
time. A cancel stops after the current batch_size pairs.
Mistakes and their messages
A node that cannot do what you set says what to change, in the node's words (backend= for the library's mode=):
- Prompts. A malformed
positive_points,negative_points,points(Track points),boxor Posedetectionsnames the input and shows the form to write (positive_points: write points as 'x,y; x,y' in pixels ...). Points or a box sent to a text-only model (CLIPSeg), and text sent to a points / box model, are refused the same way. - Classes. Detect with a closed model (RF-DETR, ...) and Semantic segmentation raise for a class the model does
not have, with the close matches (names are case-insensitive) or its first classes, not a silent empty mask. Detect
with an open-vocabulary model (Grounding DINO) and an empty
classesuses the card's label set. - A model of another node (a saved workflow, a linked
modelinput) fails validation naming the node that lists it; an unknown id suggests this node's ids only. - Sizes. Stereo needs left and right of one size and one batch length (the message gives both). Optical flow and its video nodes need at least 2 frames where a pair is needed; Interpolate, Video depth, Video segment and Track points run a single frame without error (Interpolate returns it unchanged).
- Memory. An allocation failure on MPS or MLX (
Invalid buffer size,[metal::malloc],Insufficient Memory) is reported as ComfyUI's out-of-memory error with the advice to use a smaller image orbatch_size/tile, and on MPS (also torch's ownMPS backend out of memory) to try themlxbackend, which often needs less memory; ComfyUI then unloads its models, so the run can be repeated. Upscale / restore also says whichtilefits. - Weights. The first run downloads missing weights and kernel files, with a progress bar on the node for each
file (and a console line every 10 s); Cancel stops a download, and nothing partial is kept. A few upstreams
publish a model only inside a larger archive, which is downloaded once and not kept: SPAN's 18 MB file comes from a
1.3 GB archive (about a minute on a fast line), so the console names the file with the archive's size. Offline mode
(
FASTFORKS_OFFLINE/HF_HUB_OFFLINE) fails with where to put the files (models/fastforks) or how to allow the download. A file put there by hand, under its original name (models/fastforks/<file>ormodels/fastforks/<family>/<file>), is found and hash-checked; one that does not verify is skipped. Checkpoints other nodes already keep inmodels/upscale_models,models/facerestore_modelsormodels/facedetectionunder their upstream names (RealESRGAN_x4plus.pth,GFPGANv1.4.pth,codeformer.pth,detection_Resnet50_Final.pth, ...) are used in place the same way, not downloaded again. A gated Hugging Face repo (SAM 3, DINOv3-based models) needs its licence accepted on Hugging Face and a login in ComfyUI's Python (hf auth login, orHF_TOKENset before starting ComfyUI); the error says so.
Speed
A node's time is the model's time plus what ComfyUI does around every node, which any pack pays. On ComfyUI 0.46 (RTX 5060 Ti, Windows):
- IMAGE outputs live on the CPU, so each node copies its result off the GPU: ~6 ms for a 2048 x 2048 output.
- Dynamic VRAM (the default) synchronises after each node: 1-5 ms per node.
--disable-dynamic-vramremoves it (SPAN x4 on 512 x 512: 28.2 -> 24.4 ms per run, GFPGAN: 31.7 -> 26.8 ms). - The executor adds ~8 ms per run.
- When the GPU is mostly idle between short node calls (small images, a few frames, a run every few hundred ms), the NVIDIA driver drops the memory clock to its lowest state (P5, 810 MHz) after a few seconds, even mid-run, and GPU work then takes about three times as long (rife-4.26 x2 on 4 frames of 384 x 384: 12 -> 35 ms per node). Calls back to back (the library's benchmarks) stay at full clock. The driver setting that keeps the clock up is NVIDIA Control Panel > Manage 3D settings > Power management mode > Prefer maximum performance (not measured here).
Models that take a few milliseconds (SPAN, Compact, the WD tagger, SegFormer) therefore take about twice their library time in a workflow (SPAN x4: 13 ms model, 28 ms node); for slow ones (HAT, DAT, SwinIR) the overhead does not matter. The portable ComfyUI build and a ComfyUI from git run the nodes at the same speed.
Example workflows
integrations/comfyui/example_workflows/ holds forty-eight workflows, named <category>-<nn>_<name>.json (the template card already says
comfyui-fastforks, and short names are not cut off) so the
template browser groups them by category when sorted by name (ComfyUI lists the files in directory order; use its sort dropdown); vs in a name marks a comparison against another pack or
ComfyUI's own node. Where the name says vs, the workflow carries a branch of that pack next to ours.
| Category | Workflows |
|---|---|
depth | 01 depth vs controlnet_aux, 02 backend compare (three backends side by side), 03 video depth (Video Depth Anything), 04 normals vs controlnet_aux (Metric3D), 05 parallax clip (depth, then a camera move) |
preprocess | 01 ControlNet preprocessors (edges, depth, normals, pose from one photo), 02 edges and line art |
segmentation | 01 prompted vs SAM 2, 02 like a reference, 03 mask by words, 04 video click vs SAM 2 (kijai), 05 clothes parsing to inpaint mask, 06 volume organs (clean, measure, one mesh per organ) |
background | 01 removal vs RMBG, 02 video matte, 03 portrait blur |
detection | 01 detection, 02 anomaly inspection |
pose | 01 pose vs controlnet_aux (DWPose) |
restoration | 01 upscale vs ComfyUI's upscaler, 02 upscale with faces, 03 inpaint (object removal from a click), 04 photo effects (refocus, relight, parallax, remove video objects), 05 relight a portrait (normals, two lights) |
video | 01 interpolation vs Frame-Interpolation, 02 people (track, poses as OpenPose JSON, blur faces), 03 point tracking, 04 clean plate (video matte, then inpaint) |
stereo-flow | 01 stereo, 02 optical flow vs controlnet_aux (Unimatch; its branch is resized to a multiple of 16, the pack does not pad), 03 stereo from calibration (a rig file, and uncalibrated photos) |
ocr-documents | 01 scan a page and decode codes, 02 scan a batch of pages, 03 find barcodes and QR codes |
tagging | 01 describe a photo (tags and caption), 02 tags and NSFW check vs WD14 Tagger |
geometry-3d | 01 structure from motion, 02 match a pair, 03 multi-view mesh, 04 video to 3D scene, 05 panorama and measure, 06 stabilize and depth from two photos, 07 localize, change detection and curate, 08 calibrate, merge and mosaic, 09 track, retrieve and splat, 10 camera geometry (RGB-D tracking, hand-eye, bundle adjustment), 11 image to 3D (TripoSR), 12 prepare Gaussian splatting (blur filter, SfM, training dataset) |
Old names (before 0.4.0) to new: w01 depth-01, w02 depth-02, w39 depth-03, w41 depth-04, w30 preprocess-01, w11
preprocess-02, w04 segmentation-01, w13 -02, w33 -03, w40 -04, w43 -05, w17 -06, w03 background-01, w14 -02, w31 -03,
w05 detection-01, w35 -02, w06 pose-01, w07 restoration-01, w32 -02, w12 -03, w24 -04, w08 video-01, w22 -02, w42 -03,
w09 stereo-flow-01, w10 -02, w38 -03, w25 ocr-documents-01, w37 -02, w36 -03, w34 tagging-01, w44 -02, w15 geometry-3d-01,
w16 -02, w20 -03, w21 -04, w18 -05, w19 -06, w23 -07, w26 -08, w27 -09, w28 -10, w29 -11; new: geometry-3d-12, video-04, restoration-05, depth-05. Since the file names lost their fastforks- prefix and the longest slugs were shortened (for example geometry-3d-01_sfm, stereo-flow-02_flow_vs_cn_aux, geometry-3d-12_splat_dataset), the numbers stay and the category-number prefix is the stable name.
Each workflow ships with a thumbnail of the same name (.jpg) from a real run, and a note node that says what to
change. Copy the *.json
files into ComfyUI/user/default/workflows/ (or drag one into
the UI; ComfyUI also lists them under the pack's templates). They load these images from ComfyUI's input folder;
only example.png ships with ComfyUI, put your own files there under the other names: scene.png (a photo with
people and objects: detection, pose), small.png (a small image to upscale), clip0.png .. clip3.png (consecutive
frames of a video: interpolation, optical flow, segmenting like a reference, video matting, stabilizing, depth
from two photos, multi-view mesh, tracking), before.png / after.png (one place from about the same spot at two times: change detection), sfm_query.png (a new photo of the structure-from-motion scene), pano0.png .. pano2.png (overlapping photos from one spot), board0.png .. board3.png (a printed chessboard in different poses), bracket0.png .. bracket2.png (an exposure bracket), flat0.png .. flat2.png (overlapping photos of a flat scene), depth/ (one depth file per clip frame), hand_eye.json (robot and board poses), problem.txt (a BAL problem), video_frames/
(a folder of video frames), stereo_left.png / stereo_right.png (a rectified stereo pair), codes_single.png / codes_long.png (a label and a long page with QR and EAN-13 codes), page0.png .. page2.png (photos of text pages), rig_left0.png .. rig_left3.png / rig_right0.png .. rig_right3.png with rig_stereo.yaml (an unrectified stereo rig and its OpenCV calibration file) and sfm_photos/00000.png .. 00002.png (photos of one scene from different spots). Four workflows read other files from input: ct.nii.gz (volume segmentation), hand_eye.json (hand-eye calibration), problem.txt (a bundle-adjustment problem in the BAL text format) and a depth folder with one depth map per frame (camera tracking). tools/comfyui_run_workflows.py stages all of them from the test data and runs every workflow through a real ComfyUI server. Start with depth-02 Backend Compare to try either pack with example.png
and ComfyUI's built-in nodes. Ten of the forty-eight (the vs ones) also carry branches with another
pack's nodes for comparison (comfyui_controlnet_aux, ComfyUI-RMBG, ComfyUI-segment-anything-2,
ComfyUI-Frame-Interpolation); without that pack ComfyUI marks those nodes as missing: delete them or install the
pack. The upscaling one compares with ComfyUI's own upscale-model node, which needs a file in
models/upscale_models. The backend comparison uses the three backends every platform lists, so it loads everywhere. make_workflows.py regenerates them from a running server's /object_info.
Gaussian splatting needs cameras and undistorted photos. geometry-3d-12_prepare_gaussian_splatting chains Filter
blurry photos (variance of the Laplacian; keeps the best keep_fraction of a folder), Structure from motion and
Prepare Gaussian splatting dataset, which writes images/ (undistorted to an ideal pinhole), images_2 / images_4 /
images_8, a COLMAP text model in sparse/0 and a nerfstudio transforms.json with sparse_pc.ply under
output/fastforks/splat_data_NNNNN. Train with ns-train splatfacto --data <folder>, or gsplat's
simple_trainer.py default --data_dir <folder> --data_factor 2 (a free Colab GPU is enough).
Multi-view mesh, Video to 3D scene, Volume post-processing (all labels in one mesh) and Depth from two photos (the
point cloud) write their file under output/fastforks/ and also return it as model_3d (FILE_3D): wire it into
ComfyUI's Preview 3D (Advanced), as multiview-mesh and video-scene do, or Save 3D. The path strings also work in the older Preview 3D &
Animation node. Load 3D lists only the files in input/3d: copy a mesh there to load it in another workflow.
The fourth entry of the backend dropdown, mlx, is Apple's MLX instead of MPS (Apple silicon only; with our Metal kernels where the family's port has them and they are faster). A model without an MLX port fails with a message; Structure from motion, Stitch panorama, Stabilize video, Measure objects, Depth from two photos, Track and segment objects, Track poses, Anonymize faces, Localize photos in an SfM model, Change detection, Curate image folder, Anomaly inspector, Refocus photo, Relight photo, Parallax clip from a photo, Remove video objects, Scan document, Merge photos, Mosaic flat scenes Register point clouds, Hand-eye calibration, Bundle adjustment and Track camera have no mlx entry (their matching, geometry, tracking or page fitting run in PyTorch). Every new input size compiles once on MLX, so its first call is slow; auto already picks MLX where it wins. With dtype on auto, mlx runs in the fastest mode and dtype measured on the Mac (often float16, goldens checked).
Comparison branches from other ComfyUI packs
Ten example workflows (the ones with vs in the name) also carry a branch from a popular third-party pack, so you can compare against what ComfyUI
users already have: comfyui_controlnet_aux (depth, DWPose/OpenPose), ComfyUI-RMBG (INSPYRENET, BEN2),
ComfyUI-segment-anything-2 (SAM 2), ComfyUI-Frame-Interpolation (RIFE 4.9, FILM; our RIFE is not faster than theirs on the same model, the FILM port is), the Unimatch flow
preprocessor and Metric3D normals of comfyui_controlnet_aux, the WD14 Tagger of ComfyUI-WD14-Tagger (pysssss), and ComfyUI's built-in upscaler (RealESRGAN_x4plus.pth in
models/upscale_models). Those branches need the pack installed (they show as red nodes otherwise) and download their
weights on first run; the fastforks branches work without them. The SAM 2 loader is set to cuda: pick mps or
cpu there on a Mac. The stereo example uses a Middlebury left/right pair, the other examples a crop of a
single photo (the video examples use synthetic pan crops).
Memory
ComfyUI runs PyTorch on the cudaMallocAsync allocator (unless started with --disable-cuda-malloc). The 70 kernels
models that fit the test machine's local weights, run that way at the benchmarks' inputs (RTX 5060
Ti, Windows), gave the same outputs at the same speed as under PyTorch's default allocator, with less memory reserved
in total (131 against 138 GiB summed over the models); the benchmarks' memory columns use the default allocator.
PyTorch's torch.cuda.max_memory_allocated reports about twice the peak under cudaMallocAsync for models that
capture CUDA graphs, but the device memory in use (cudaMemGetInfo) is not higher: ema-vfi at 1080 x 1920 peaks at
2350 MiB against 3376 MiB under the default allocator, aliked-lightglue at 768 x 1024 at 1456 against 1520 MiB.
Models that replay CUDA graphs make PyTorch print Attempting uncaptured free of a captured allocation under
this allocator when the next graph is captured or the model is unloaded. PyTorch calls it "technically allowed", and
the outputs are unchanged: the GPU goldens of these models pass under cudaMallocAsync.
--lowvram and --novram change how ComfyUI splits its own (diffusion) models between GPU and CPU. The fastforks
models are small, so they load whole on ComfyUI's device either way. Before each load the pack asks ComfyUI to free
room, and ComfyUI unloads our models like its own when it needs memory. Under --novram every node ran its default
model (Windows, RTX 5060 Ti; four whose weights were not local skipped), INSID3 at the top with 1.6 GiB of PyTorch
memory. --cpu runs every node on the CPU, in float32 and the portable backend.
Multi-view mesh and Video to 3D scene need more than the model: VGGT on windows of 24 keyframes (518 px) peaked at 4.6 GB, 6.5 GB with 48; LingBot-Map on all 229 views of a scene at once needed 12 GB. A video's depth maps stay in main memory (about 45 MB per 1080p keyframe: scale long videos down first) and are fused on ComfyUI's device. Writing a COLMAP / nerfstudio scene of 229 keyframes took 41-47 s (PNG images), most of a short run.