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.

Fuobe Reshoot: menus, install commands and Connect's node list

Adarsh5312b4e198e9
diff --git a/integrations/fuobe-connect/fuobe_connect/allowed_nodes.json b/integrations/fuobe-connect/fuobe_connect/allowed_nodes.json
index f68b682b..fb412231 100644
--- a/integrations/fuobe-connect/fuobe_connect/allowed_nodes.json
+++ b/integrations/fuobe-connect/fuobe_connect/allowed_nodes.json
@@ -320,6 +320,9 @@
"ReferenceMultiLatent",
"RegexMatch",
"RegexReplace",
+ "RemakeConditioning",
+ "RemakeKeyframeUntil",
+ "RemakeNoise",
"RemeshMesh",
"RemoveBackground",
"RenderMesh",
diff --git a/src/lib/comfy-install.ts b/src/lib/comfy-install.ts
index 6452c555..a684a58a 100644
--- a/src/lib/comfy-install.ts
+++ b/src/lib/comfy-install.ts
@@ -24,7 +24,7 @@ export function workflowSource(file: string): { raw: string; page: string } {
* in a folder of a bigger repo): the repo to clone, the commit, and the folder. Undefined for a plain repo address.
*/
export function pinnedRepo(url: string): { repo: string; ref: string; dir?: string } | undefined {
- const m = /^(https:\/\/github\.com\/[^/]+\/[^/]+?)(?:\.git)?\/tree\/([^/]+)(?:\/(.+?))?\/?$/.exec(url);
+ const m = /^(https:\/\/(?:github\.com|huggingface\.co)\/[^/]+\/[^/]+?)(?:\.git)?\/tree\/([^/]+)(?:\/(.+?))?\/?$/.exec(url);
return m ? { repo: m[1], ref: m[2], ...(m[3] ? { dir: m[3] } : {}) } : undefined;
}
@@ -55,9 +55,11 @@ export function nodeInstall(node: { name: string; repo: string }): string {
` && { git -C ${dest} fetch -q --depth 1 origin ${pin.ref} 2>/dev/null || true; } && git -C ${dest} checkout -q ${pin.ref}`,
].join("\n");
}
+ // A folder of a Hugging Face model repo (ComfyUI-Viggle-Remake): the repo's weights are LFS files, never fetched.
+ const lfs = pin.repo.startsWith("https://huggingface.co/") ? "GIT_LFS_SKIP_SMUDGE=1 " : "";
return [
- `[ -d ${dest} ] || { tmp="$(mktemp -d)" && git clone -q --filter=blob:none --no-checkout ${pin.repo} "$tmp" \\`,
- ` && git -C "$tmp" sparse-checkout set --no-cone /${pin.dir}/ && git -C "$tmp" checkout -q ${pin.ref} \\`,
+ `[ -d ${dest} ] || { tmp="$(mktemp -d)" && ${lfs}git clone -q --filter=blob:none --no-checkout ${pin.repo} "$tmp" \\`,
+ ` && git -C "$tmp" sparse-checkout set --no-cone /${pin.dir}/ && ${lfs}git -C "$tmp" checkout -q ${pin.ref} \\`,
` && cp -r "$tmp/${pin.dir}" ${dest}; rm -rf "$tmp"; }`,
].join("\n");
}
diff --git a/src/lib/comfy-prompts.ts b/src/lib/comfy-prompts.ts
index e60b09cc..af107cad 100644
--- a/src/lib/comfy-prompts.ts
+++ b/src/lib/comfy-prompts.ts
@@ -51,4 +51,7 @@ export function neutralPrompt(graph: string): string | undefined {
/** A graph that needs words to know what to do (no neutral line fits): refused without them. */
export const WORDS_NEEDED: Record<string, string> = {
"layers-qwen-image-layered-control": "Name the part to separate, e.g. “the headline text”",
+ // Fuobe Reshoot reads a prompt written for the part's length (Genjutsu writes it: src/lib/catalog/reshoot.ts).
+ "video-reshoot-swap-h3": "Run Fuobe Reshoot from Genjutsu: it writes the words for your part",
+ "video-reshoot-edit-h3": "Run Fuobe Reshoot from Genjutsu: it writes the words for your part",
};
diff --git a/src/lib/nav-model.ts b/src/lib/nav-model.ts
index 1715e13f..7ef509da 100644
--- a/src/lib/nav-model.ts
+++ b/src/lib/nav-model.ts
@@ -368,6 +368,7 @@ const STUDIO_FEATURES: NavEntry[] = [
).map(([id, label, what, kw]) => feature("genjutsu", "WandSparkles", id, `/genjutsu?mode=${id}`, label, what, kw)),
feature("genjutsu", "WandSparkles", "picture", "/genjutsu?mode=picture", "From picture", "Your picture's setting, moving", "from picture photo setting animate motion"),
feature("genjutsu", "WandSparkles", "finish", "/genjutsu?mode=finish", "Finish", "Fix faces and colours", "finish fix faces colours colors", FINISH_OPEN ? undefined : OWNER),
+ feature("genjutsu", "WandSparkles", "reshoot", "/genjutsu?mode=reshoot", "Fuobe Reshoot", "Same shot, anything you change", "reshoot remake recast swap edit outfit weather same shot change"),
...(
[
["reference", "From Reference", "A sheet from your photos", "reference photo upload face sheet"],
@@ -741,7 +742,7 @@ const hubTools = (hub: HubKind, skip: readonly string[] = []) => HUB_MODES[hub].
export const STUDIO_SUBS: Readonly<Record<string, StudioSubs>> = {
marketing: { ids: ["marketing-click-to-ad", "ads", "ads-multiplier"] },
// Its mode ids built here: one of them written out whole is also a retired model id (catalog/replaced.ts).
- genjutsu: { ids: ["motion", "character", "swap", "restyle", "insert", "picture", "finish"].map((m) => `genjutsu-${m}`), tall: 800, short: "line", ownerTall: 880 },
+ genjutsu: { ids: ["motion", "character", "swap", "restyle", "insert", "picture", "finish", "reshoot"].map((m) => `genjutsu-${m}`), tall: 800, short: "line", ownerTall: 880 },
// The modes that aren't rows of the Sound column already.
audio: { ids: hubTools("audio", SOUND_COLUMN), menu: 3 },
upscale: { ids: hubTools("upscale") },
diff --git a/tests/nav-subfeatures.test.ts b/tests/nav-subfeatures.test.ts
index 8bfa2a1f..1003cba8 100644
--- a/tests/nav-subfeatures.test.ts
+++ b/tests/nav-subfeatures.test.ts
@@ -234,8 +234,8 @@ describe("finding a studio's features", () => {
const inside = (kind: ViewerKind | undefined, q: string) => find(kind, q).groups[0];
expect(find("guest", "genjutsu").best[0]).toMatchObject({ id: "genjutsu" });
expect(inside("guest", "genjutsu")).toMatchObject({ label: "In Genjutsu" });
- expect(inside("guest", "genjutsu").hits.map((h) => h.label)).toEqual(["Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish"]);
- expect(inside("owner", "genjutsu").hits.map((h) => h.label)).toEqual(["Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish"]);
+ expect(inside("guest", "genjutsu").hits.map((h) => h.label)).toEqual(["Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish", "Fuobe Reshoot"]);
+ expect(inside("owner", "genjutsu").hits.map((h) => h.label)).toEqual(["Motion transfer", "Character swap", "Object swap", "Restyle", "Insert", "From picture", "Finish", "Fuobe Reshoot"]);
expect(inside("guest", "character sheet").hits.map((h) => h.label)).toEqual(["From Reference", "Build from scratch", "From a description"]);
// Not a tab that is the studio's own page (Upscale's Image), nor one already among the best matches.
const upscale = find("guest", "upscale");