Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

ComfyUI library: FILM as RIFE's optional download, and notes on lower targets, cancel and whole-clip memory

Claudee56b33df30ad
diff --git a/scripts/comfy/README.md b/scripts/comfy/README.md
index 9bd4c3d7..20496ea3 100644
--- a/scripts/comfy/README.md
+++ b/scripts/comfy/README.md
@@ -228,7 +228,17 @@ node validate-workflows.mjs <the same ids> --shared
`framesPerBatch` sized from the clip so a pass holds about 1.5 GB of frames; each job tags its `VHS_BatchManager`
(ComfyUI otherwise reuses a cached manager after a failed meta-batch run and silently loses frames: 32 of 48 seen
here); a silent clip loses the `VHS_LoadVideo` audio link (VHS fails on it); graphs that still decode the whole clip
- (FPS Boost, HDR, EXR) refuse a clip that needs more than half the server's RAM.
+ (FPS Boost, HDR, EXR) refuse a clip that needs more than half the server's RAM, and the composer checks the same rule
+ before Generate (`/api/status` reports the ComfyUI's RAM). They hold 2 frame-sized float copies of the clip (decoding
+ stacks the frames; the tone map makes one more; encoders and the EXR writer take a frame at a time), FPS Boost 2 + m
+ (`VHS_SelectEveryNthImage` is a view): measured here, SDR to HDR on 10 s of 640×360 at 30 fps peaked 1.57 GB above idle,
+ 2.04 copies. FPS Boost needs the clip's frame rate (header) and refuses without it rather than guess m and n.
+- **Cancel**: VHS re-queues each pass under a new prompt id with a negative queue number (it runs before anything else),
+ so cancelling a meta-batch job deletes every pending prompt carrying the job's filename prefix, interrupts the one
+ running, and looks again for a few seconds (a pass that was already saving can still queue the next). Checked here on a
+ 38-pass ProRes 4444 export: cancelled during pass 4, nothing ran after it. VHS keeps that pass's ffmpeg encode open in
+ the cached batch manager (a partial `.mov` without its moov atom stays in `output/`) until ComfyUI drops the cache; the
+ same happens to any meta-batch run that fails or is interrupted.
- **Real runs**: through Fuobe's API on the dev server (the comfyui provider end to end: upload, bindings, meta-batch
follow, EXR zip) and directly with a small runner, on the shared CPU server with own prompt ids only, every output
ffprobe-checked. The model graphs ran with random-weight stand-ins (`vftest_rife_random.safetensors`,
@@ -239,6 +249,9 @@ node validate-workflows.mjs <the same ids> --shared
"ProRes 422 HQ" is the HQ tag (`apch`) carrying 4:4:4 samples (FFmpeg reads it). A strict 4:2:2 file needs a VHS format
with `-pix_fmt yuv422p10le`, a change to the node pack (not made). Core ComfyUI has no H.265 encoder, so the open HDR
is H.264 High 10 (HLG or PQ); HDR10 in H.265 comes from Topaz on the cloud.
+- **FILM**: oss-rife's Model control can pick `film_net_fp16.safetensors`; the spec lists it under `optionalModels`, so
+ the manifest carries it with `optional: true` (named with its download when it's missing, not counted as missing on
+ the Workflows page). Its URL is the repo's current name, `Comfy-Org/Frame-Interpolation` (the old lowercase one redirects).
## Adding a workflow
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 102ff9e7..a595fd99 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -314,6 +314,20 @@ async function main() {
}
}
+ // Files a model control can pick instead (FILM for RIFE): listed as optional, so missing-model help names them.
+ for (const file of spec.optionalModels || []) {
+ if (models.has(file)) continue;
+ const known = KNOWN_MODELS[file];
+ if (!known?.url) {
+ errs.push(`optional model ${file}: no download URL known`);
+ continue;
+ }
+ const size = await hfSize(known.url, sizeCache);
+ if (size && typeof size === 'object' && size.error) errs.push(`model ${file}: ${known.url} -> ${size.error}`);
+ const bytes = typeof size === 'number' ? size : size?.size;
+ models.set(file, { file, folder: known.folder, url: known.url, sizeGb: bytes ? Math.round((bytes / 1e9) * 100) / 100 : null, optional: true });
+ }
+
// ---- custom nodes
const custom = new Set();
for (const n of Object.values(graph)) {
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 5149c905..a2bf7b94 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -81,7 +81,8 @@
// Output fields beyond {node, kind}: stem ("voice" | "background"), role ("cues" | "transcript" | "language" |
// "sheet" | "tiles" | "layers" | "first-frame" | "turntable" | "lines" | "frame" | "frames" | "scene" | "depth" | "splat" |
// "brief"). Entry fields: worker "isolated" (needs its own ComfyUI, see README), expand "captions" (the provider writes one
-// segment per caption cue before submitting).
+// segment per caption cue before submitting), optionalModels (files a model control can pick instead of the graph's own,
+// listed in the manifest with optional: true so missing-model help can name their download).
import fs from 'node:fs';
@@ -116,7 +117,7 @@ export const CUSTOM_NODE_REPOS = {
export const KNOWN_MODELS = {
'RealESRGAN_x4plus.safetensors': { folder: 'upscale_models', url: 'https://huggingface.co/Comfy-Org/Real-ESRGAN_repackaged/resolve/main/RealESRGAN_x4plus.safetensors' },
'birefnet.safetensors': { folder: 'background_removal', url: 'https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors' },
- 'film_net_fp16.safetensors': { folder: 'frame_interpolation', url: 'https://huggingface.co/Comfy-Org/frame_interpolation/resolve/main/frame_interpolation/film_net_fp16.safetensors' },
+ 'film_net_fp16.safetensors': { folder: 'frame_interpolation', url: 'https://huggingface.co/Comfy-Org/Frame-Interpolation/resolve/main/frame_interpolation/film_net_fp16.safetensors' },
'rife_v4.26.safetensors': { folder: 'frame_interpolation', url: 'https://huggingface.co/Comfy-Org/frame_interpolation/resolve/main/frame_interpolation/rife_v4.26.safetensors' },
'inswapper_128.onnx': { folder: 'insightface', url: 'https://huggingface.co/datasets/Gourieff/ReActor/resolve/main/models/inswapper_128.onnx' },
'GFPGANv1.4.pth': { folder: 'facerestore_models', url: 'https://huggingface.co/datasets/Gourieff/ReActor/resolve/main/models/facerestore_models/GFPGANv1.4.pth' },
@@ -2887,16 +2888,18 @@ export const SPEC = [
},
outputs: [{ node: '13', kind: 'video' }],
defaults: { checkpoint: 'rife_v4.26.safetensors' },
+ // oss-rife's Model control: FILM for large motion.
+ optionalModels: ['film_net_fp16.safetensors'],
limits: { maxMultiplier: 16 },
vramGb: 2,
license: 'RIFE 4.26 and FILM weights from Comfy-Org/frame_interpolation (MIT / Apache-2.0); VideoHelperSuite (GPL-3.0 code) for Select Every Nth',
notes:
'Higgsfield\'s FPS Boost targets (24 / 30 / 60 / 90 / 120 fps) and slow motion on the open engine. The provider picks m (multiplier, 2-16) and n (every) from the clip\'s own frame rate (its header) so that ' +
- 'source fps x m / n = target x slowdown (src/lib/av/fps.ts: 24 -> 30 m5 n4, 24 -> 60 m5 n2, 24 -> 90 m15 n4, 24 -> 120 m5, 30 -> 60 m2, 60 -> 90 m3 n2, 60 -> 120 m2; a lower target only drops frames, ' +
- 'and then the provider links FrameInterpolate out). The output fps is computed in the graph from the decoded frame rate (source fps x m / (n x slowdown)), so a clip whose header was unreadable still plays at the right speed. ' +
+ 'source fps x m / n = target x slowdown (src/lib/av/fps.ts: 24 -> 30 m5 n4, 24 -> 60 m5 n2, 24 -> 90 m15 n4, 24 -> 120 m5, 30 -> 60 m2, 60 -> 90 m3 n2, 60 -> 120 m2; a target the source rate is a whole multiple of (60 -> 30: m1 n2) only drops frames, ' +
+ 'and then the provider links FrameInterpolate out; other lower targets still interpolate (30 -> 24: m4 n5)). The output fps is computed in the graph from the decoded frame rate (source fps x m / (n x slowdown)); m and n need the header\'s rate, so the provider refuses a clip without one rather than guess. ' +
'The last frame is held once more before interpolating, so the clip keeps its length (N frames become N x m + 1, about one output frame longer than the source) instead of losing a source frame. ' +
'slowdown > 1 stretches the clip (2 = twice as long); the provider then drops the sound link (it would no longer match). checkpoint film_net_fp16.safetensors runs FILM (better on large motion, about 31x slower on CPU). ' +
- 'Holds the whole interpolated clip in memory (source frames x m before the selection): the provider refuses clips that need more than half the server\'s RAM. ' +
+ 'Holds the whole interpolated clip in memory (the source frames, their copy with the last frame held, and source frames x m; the selection is a view): the provider refuses clips that need more than half the server\'s RAM. ' +
'Ran here through Fuobe (CPU, a random-weight RIFE file standing in for the weights): 24 fps 2 s 320x180 -> 60 fps = 121 frames, 2.017 s (m 5, n 2); 25 fps 3 s with sound -> 30 fps at 2x slow motion = 181 frames, 6.03 s, no sound track; 30 fps 2 s with sound -> 24 fps = 49 frames, 2.04 s, sound kept (m 4, n 5).',
},
{
diff --git a/src/components/workflows-view.tsx b/src/components/workflows-view.tsx
index 8bd31856..bd6b1142 100644
--- a/src/components/workflows-view.tsx
+++ b/src/components/workflows-view.tsx
@@ -24,8 +24,9 @@ interface ComfyStatus {
}
function downloadScript(wf: WF): string {
+ // Optional alternatives (FILM for RIFE) are listed on the card, not installed by default.
const lines = wf.models
- .filter((m) => m.url && m.present !== true)
+ .filter((m) => m.url && m.present !== true && !m.optional)
.map((m) => `mkdir -p "$COMFYUI/models/${m.folder}" && wget -c -O "$COMFYUI/models/${m.folder}/${m.file}" "${m.url}"`);
const nodes = wf.customNodes.map((n) => `git -C "$COMFYUI/custom_nodes" clone ${n.repo}`);
return ["COMFYUI=${COMFYUI:-$HOME/ComfyUI}", ...nodes, ...lines].join("\n");
@@ -39,8 +40,8 @@ async function fetchStatus(): Promise<ComfyStatus> {
}
function WorkflowCard({ wf, usedBy }: { wf: WF; usedBy: string[] }) {
- const missing = wf.models.filter((m) => m.present === false).length;
- const total = wf.models.reduce((a, m) => a + (m.sizeGb ?? 0), 0);
+ const missing = wf.models.filter((m) => m.present === false && !m.optional).length;
+ const total = wf.models.reduce((a, m) => a + (m.optional ? 0 : (m.sizeGb ?? 0)), 0);
return (
<article className="flex min-w-0 flex-col gap-3 rounded-xl border bg-background p-4">
<div className="flex flex-wrap items-start justify-between gap-2">
@@ -69,7 +70,7 @@ function WorkflowCard({ wf, usedBy }: { wf: WF; usedBy: string[] }) {
<li key={m.file} className="flex min-w-0 items-center gap-2">
{m.present === true ? (
<CheckCircle2 className="size-3.5 shrink-0 text-success" aria-label="Installed" />
- ) : m.present === false ? (
+ ) : m.present === false && !m.optional ? (
<CircleAlert className="size-3.5 shrink-0 text-warning" aria-label="Missing" />
) : (
<Circle className="size-3.5 shrink-0 text-subtle-foreground" aria-label="Unknown" />
@@ -78,6 +79,7 @@ function WorkflowCard({ wf, usedBy }: { wf: WF; usedBy: string[] }) {
{m.file}
</span>
<span className="hidden shrink-0 text-muted-foreground sm:inline">{m.folder}</span>
+ {m.optional && <span className="shrink-0 text-muted-foreground">optional</span>}
{m.sizeGb ? <span className="ml-auto shrink-0 font-mono text-muted-foreground">{m.sizeGb} GB</span> : null}
{m.url && (
<a href={m.url} target="_blank" rel="noreferrer" className={cn("shrink-0 text-muted-foreground hover:text-foreground", !m.sizeGb && "ml-auto")} aria-label={`Download ${m.file}`}>
diff --git a/src/lib/comfy.ts b/src/lib/comfy.ts
index b581c043..d2ae7028 100644
--- a/src/lib/comfy.ts
+++ b/src/lib/comfy.ts
@@ -49,6 +49,8 @@ export interface ManifestModel {
folder: string;
url?: string;
sizeGb?: number;
+ /** An alternative a model control can pick (FILM for RIFE): not needed for the workflow's defaults. */
+ optional?: boolean;
}
export interface ManifestOutput {
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index b9ca76f9..6b503c0c 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-10-23T18:23:16.003Z",
+ "generatedAt": "2026-10-23T19:14:00.584Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -13357,6 +13357,13 @@
"folder": "frame_interpolation",
"url": "https://huggingface.co/Comfy-Org/frame_interpolation/resolve/main/frame_interpolation/rife_v4.26.safetensors",
"sizeGb": 0.02
+ },
+ {
+ "file": "film_net_fp16.safetensors",
+ "folder": "frame_interpolation",
+ "url": "https://huggingface.co/Comfy-Org/Frame-Interpolation/resolve/main/frame_interpolation/film_net_fp16.safetensors",
+ "sizeGb": 0.07,
+ "optional": true
}
],
"customNodes": [
@@ -13368,7 +13375,7 @@
"vramGb": 2,
"license": "RIFE 4.26 and FILM weights from Comfy-Org/frame_interpolation (MIT / Apache-2.0); VideoHelperSuite (GPL-3.0 code) for Select Every Nth",
"validated": true,
- "notes": "Higgsfield's FPS Boost targets (24 / 30 / 60 / 90 / 120 fps) and slow motion on the open engine. The provider picks m (multiplier, 2-16) and n (every) from the clip's own frame rate (its header) so that source fps x m / n = target x slowdown (src/lib/av/fps.ts: 24 -> 30 m5 n4, 24 -> 60 m5 n2, 24 -> 90 m15 n4, 24 -> 120 m5, 30 -> 60 m2, 60 -> 90 m3 n2, 60 -> 120 m2; a lower target only drops frames, and then the provider links FrameInterpolate out). The output fps is computed in the graph from the decoded frame rate (source fps x m / (n x slowdown)), so a clip whose header was unreadable still plays at the right speed. The last frame is held once more before interpolating, so the clip keeps its length (N frames become N x m + 1, about one output frame longer than the source) instead of losing a source frame. slowdown > 1 stretches the clip (2 = twice as long); the provider then drops the sound link (it would no longer match). checkpoint film_net_fp16.safetensors runs FILM (better on large motion, about 31x slower on CPU). Holds the whole interpolated clip in memory (source frames x m before the selection): the provider refuses clips that need more than half the server's RAM. Ran here through Fuobe (CPU, a random-weight RIFE file standing in for the weights): 24 fps 2 s 320x180 -> 60 fps = 121 frames, 2.017 s (m 5, n 2); 25 fps 3 s with sound -> 30 fps at 2x slow motion = 181 frames, 6.03 s, no sound track; 30 fps 2 s with sound -> 24 fps = 49 frames, 2.04 s, sound kept (m 4, n 5)."
+ "notes": "Higgsfield's FPS Boost targets (24 / 30 / 60 / 90 / 120 fps) and slow motion on the open engine. The provider picks m (multiplier, 2-16) and n (every) from the clip's own frame rate (its header) so that source fps x m / n = target x slowdown (src/lib/av/fps.ts: 24 -> 30 m5 n4, 24 -> 60 m5 n2, 24 -> 90 m15 n4, 24 -> 120 m5, 30 -> 60 m2, 60 -> 90 m3 n2, 60 -> 120 m2; a target the source rate is a whole multiple of (60 -> 30: m1 n2) only drops frames, and then the provider links FrameInterpolate out; other lower targets still interpolate (30 -> 24: m4 n5)). The output fps is computed in the graph from the decoded frame rate (source fps x m / (n x slowdown)); m and n need the header's rate, so the provider refuses a clip without one rather than guess. The last frame is held once more before interpolating, so the clip keeps its length (N frames become N x m + 1, about one output frame longer than the source) instead of losing a source frame. slowdown > 1 stretches the clip (2 = twice as long); the provider then drops the sound link (it would no longer match). checkpoint film_net_fp16.safetensors runs FILM (better on large motion, about 31x slower on CPU). Holds the whole interpolated clip in memory (the source frames, their copy with the last frame held, and source frames x m; the selection is a view): the provider refuses clips that need more than half the server's RAM. Ran here through Fuobe (CPU, a random-weight RIFE file standing in for the weights): 24 fps 2 s 320x180 -> 60 fps = 121 frames, 2.017 s (m 5, n 2); 25 fps 3 s with sound -> 30 fps at 2x slow motion = 181 frames, 6.03 s, no sound track; 30 fps 2 s with sound -> 24 fps = 49 frames, 2.04 s, sound kept (m 4, n 5)."
},
{
"id": "upscale-video-esrgan-chunked",