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.

Catalog: MOSS AnyPaint for inpaint and expand on your GPU

Adarshe8c5aa252a8c
diff --git a/CREDITS.md b/CREDITS.md
index d45cec7d..e3bb71a6 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -11,6 +11,7 @@ This file is generated by `node scripts/credits.mjs` from `src/lib/licences.ts`,
Some licences ask the app that runs their model to say so.
- **MiniMax H3**: Fuobe Character swap, MiniMax H3, MiniMax H3 · FastH3 V2, MiniMax H3 · FastH3 Trim, MiniMax H3 · H3 Flash, Open-H3 Regenerate, H3 Character Swap · Relay 2.0, Group swap, Scene edit, Fuobe Reshoot, From picture, MiniMax H3, Fix faces, H3 Person Removal · Relay 2.0, H3 Character Swap · studio segment, MiniMax H3 Text to Video + Audio (20 steps), MiniMax H3 Image to Video + Audio (20 steps), MiniMax H3 Start + End Frame to Video + Audio (20 steps), MiniMax H3 360-degree orbit of a still + Audio (Orbit LoRA, 28 steps), MiniMax H3 Text to Video + Audio (Pika H3 Flex, 6 steps), MiniMax H3 Image to Video + Audio (Pika H3 Flex, 6 steps), MiniMax H3 Start + End Frame to Video + Audio (Pika H3 Flex, 6 steps), MiniMax H3 text to video at 768p that keeps its latent for a 2K finish (FL2VA + LightX2V Turbo 4-step v1.2, 6 steps er_sde; ComfyUI-Open-H3-Regenerate saves the latent), Finish a 768p MiniMax H3 draft in 2K from its saved latent: Open-H3 Regenerate 2K without the decode and re-encode (ComfyUI-Open-H3-Regenerate + LBH packs), Group swap, one by one: exactly 2 characters, each person redrawn on a pass of their own (Openjutsu advanced_maxq), From picture, the video on native MiniMax H3 (DMAD, 6 steps) from the approved first frame and the part's normals
+- **MiniMax-H3-Image**: MiniMax H3 Image
- **Built with Llama**: HiDream-I1 Dev
- **MiniMax-Music3**: MiniMax Music 3
- **Keep the licence text and NVIDIA's notices when you share the weights**: RE-USE (clean up voice), Clean the dialogue of a soundtrack and keep its music and effects (DBS + NVIDIA RE-USE)
@@ -32,7 +33,7 @@ Some licences ask the app that runs their model to say so.
## Open model licences
-229 models, one row for each set of open weights Fuobe runs: 98 allow commercial use, 48 with conditions, 55 are non-commercial and 30 aren't available everywhere.
+232 models, one row for each set of open weights Fuobe runs: 100 allow commercial use, 48 with conditions, 55 are non-commercial and 31 aren't available everywhere.
| Model | By | Kind | Licence | Note |
| --- | --- | --- | --- | --- |
@@ -58,7 +59,7 @@ Some licences ask the app that runs their model to say so.
| Fuobe Speak | Fuobe Original | Video | [Apache-2.0 (InfiniteTalk, Wan 2.1, lightx2v; FusioniX: Apache-2.0 card; the LoRAs it merges carry their own licences)](https://spdx.org/licenses/Apache-2.0.html) | |
| Fuobe Speak · Motion | Fuobe Original | Video | [Apache-2.0 (Wan 2.2, umT5, lightx2v)](https://spdx.org/licenses/Apache-2.0.html) | |
| Fuobe Restore | Fuobe Original | Video | [LTX-2.x Community License (LTX-2.5 22B distilled, its video VAE, and Lightricks' Restore and Detail Refine IC-LoRAs, both gated on Hugging Face: free under US$10M annual revenue); Gemma 4 text encoder packaged by Lightricks; ComfyUI-LTXVideo nodes under the LTX-2 Community License (its LICENSE file)](https://huggingface.co/Lightricks/LTX-2.5) | Conditions apply |
-| Auto | Fuobe | Image | [Ideogram Non-Commercial Model Agreement: NON-COMMERCIAL (research and personal use; commercial use needs a paid Ideogram licence)](https://huggingface.co/ideogram-ai/ideogram-4-fp8/blob/main/LICENSE.md); [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
+| Auto | Fuobe | Image | [Krea 2 Community License (free under US$1M yearly revenue; enterprise terms above it); Krea2-realism-V2 LoRA MIT](https://huggingface.co/Comfy-Org/Krea-2); [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
| Ideogram 4 | Ideogram | Image | [Ideogram Non-Commercial Model Agreement: NON-COMMERCIAL (research and personal use; commercial use needs a paid Ideogram licence)](https://huggingface.co/ideogram-ai/ideogram-4-fp8/blob/main/LICENSE.md) | Non-commercial |
| Qwen-Image 2.1 | Alibaba Qwen | Image | [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE); [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE); [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; outpaint LoRA by AusBoss under the same licence; AusBoss nodes MIT; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
| Qwen-Image 2.1 Turbo | Alibaba Qwen | Image | [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Texture-Fix VAE (madebyollin @ 9a10df81, optional: Options → Decoder Clean): Qwen Research License (card: license_name qwen-research)](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
@@ -67,6 +68,7 @@ Some licences ask the app that runs their model to say so.
| Tap to Recolor | Alibaba Qwen + Meta SAM 3.1 | Image | [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Meta SAM License (SAM 3.1); AusBoss nodes MIT](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
| FLUX 3 Klein | Black Forest Labs | Image | [FLUX Kommunity License v1.0 (FLUX 3 Image Klein and Klein Base: non-commercial use, plus commercial outputs for Qualifying Users under US$5M gross annual revenue; other commercial use needs a BFL licence; not blanket permission for commercial fine-tuning or distribution); Qwen3-VL-4B-Instruct encoder and the FLUX 3 prompt upsampler (Qwen3.5 9B fine-tune) Apache-2.0; FLUX.2 VAE Apache-2.0](https://huggingface.co/black-forest-labs/flux-3-image-klein) | Conditions apply |
| FLUX 3 Klein Base | Black Forest Labs | Image | [FLUX Kommunity License v1.0 (FLUX 3 Image Klein and Klein Base: non-commercial use, plus commercial outputs for Qualifying Users under US$5M gross annual revenue; other commercial use needs a BFL licence; not blanket permission for commercial fine-tuning or distribution); Qwen3-VL-4B-Instruct encoder and the FLUX 3 prompt upsampler (Qwen3.5 9B fine-tune) Apache-2.0; FLUX.2 VAE Apache-2.0](https://huggingface.co/black-forest-labs/flux-3-image-klein) | Conditions apply |
+| MiniMax H3 Image | MiniMax | Image | [MiniMax-H3-Image Community License (the MiniMax H3 Image model and its VAE): territory EXCLUDES the US, the EU, the UK and South Korea; annualized revenue above US$1M, or a hosted service for third parties, needs MiniMax's prior written authorization; show "MiniMax-H3-Image" on the product's interface; no outputs used to improve other AI models · MiniMax H3 Community License (the packaged Qwen3-VL-32B text encoder) · Qwen3.5 9B (the Prompt helper) Apache-2.0](https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/blob/492fd8c4eca666f1085f57e30738c1e0d86b3439/LICENSE) | Not available in the US, the EU, the UK and South Korea |
| Krea 2 Realism | Krea | Image | [Krea 2 Community License (free under US$1M yearly revenue; enterprise terms above it); Krea2-realism-V2 LoRA MIT](https://huggingface.co/Comfy-Org/Krea-2) | Conditions apply |
| Krea 2 Turbo | Krea | Image | [Krea 2 Community License (free under US$1M yearly revenue; enterprise terms above it)](https://huggingface.co/Comfy-Org/Krea-2) | Conditions apply |
| MOSS-Image | OpenMOSS | Image | [Apache-2.0 (MOSS-Image SFT and Base, Qwen3.5-9B, FLUX.2 small decoder, byte-identical to BFL's Apache-2.0 FLUX.2-small-decoder; Fast: Spectrallic's MOSS-Image SFT 8-step DMD int8 file, Apache-2.0)](https://spdx.org/licenses/Apache-2.0.html) | |
@@ -76,6 +78,7 @@ Some licences ask the app that runs their model to say so.
| Krea 2 Identity Edit | Krea | Image | [Krea 2 Community License (free under US$1M yearly revenue; enterprise terms above it); the Krea 2 Identity Edit V2 LoRA is NON-COMMERCIAL (commercial use needs a licence from its author)](https://huggingface.co/Comfy-Org/Krea-2) | Non-commercial |
| Krea 2 Turbo · Image to image | Krea | Image | [Krea 2 Community License (free under US$1M yearly revenue; enterprise terms above it)](https://huggingface.co/Comfy-Org/Krea-2) | Conditions apply |
| Krea 2 Inpaint | Krea | Image | [Krea 2 Community License (free under US$1M yearly revenue; enterprise terms above it); the inpaint-edit LoRA by Cierpliwy under the same licence; ComfyUI-Krea2-Ostris-Edit MIT](https://huggingface.co/Comfy-Org/Krea-2) | Conditions apply |
+| MOSS AnyPaint | OpenMOSS | Image | [Apache-2.0 (MOSS-Image Base, Qwen3.5-9B, FLUX.2 small decoder; the MOSS AnyPaint LoRA by yijunwang2 and the Base 8-step DMD2 LoRA by lodestones, both Apache-2.0); moss-anypaint nodes MIT](https://spdx.org/licenses/Apache-2.0.html) | |
| Z-Image Turbo | Alibaba Tongyi | Image | [Apache-2.0 (Z-Image Turbo)](https://spdx.org/licenses/Apache-2.0.html) | |
| Qwen-Image 2512 | Alibaba Qwen | Image | [Apache-2.0 (Qwen-Image 2512 / Qwen-Image-Edit, Lightning LoRAs, Qwen2.5-VL text encoder)](https://spdx.org/licenses/Apache-2.0.html) | |
| Qwen-Image Lightning | Alibaba Qwen | Image | [Apache-2.0 (Qwen-Image 2512 / Qwen-Image-Edit, Lightning LoRAs, Qwen2.5-VL text encoder)](https://spdx.org/licenses/Apache-2.0.html) | |
@@ -230,6 +233,7 @@ Some licences ask the app that runs their model to say so.
| FLUX.2 [dev] Image Edit (1 reference) | Workflow library | Edit | [FLUX [dev] Non-Commercial License (FLUX.2 [dev]): NON-COMMERCIAL](https://huggingface.co/black-forest-labs/FLUX.2-dev) | Non-commercial |
| Qwen-Image-Edit 2509 (Lightning 4-step) | Workflow library | Edit | [Apache-2.0 (Qwen-Image 2512 / Qwen-Image-Edit, Lightning LoRAs, Qwen2.5-VL text encoder)](https://spdx.org/licenses/Apache-2.0.html) | |
| Qwen-Image-Edit 2511 | Workflow library | Edit | [Apache-2.0 (Qwen-Image 2512 / Qwen-Image-Edit, Lightning LoRAs, Qwen2.5-VL text encoder)](https://spdx.org/licenses/Apache-2.0.html) | |
+| Qwen-Image-Edit 2511 Multi-Image (3 images) · 4 steps, Lightning LoRA | Workflow library | Edit | [Apache-2.0 (Qwen-Image-Edit-2511, Lightning LoRA)](https://spdx.org/licenses/Apache-2.0.html) | |
| Remove Background (ComfyUI-RMBG, BEN2) | Workflow library | Bg remove | [BEN2 weights MIT (the pack's default); RMBG-2.0 in the same pack is CC-BY-NC-4.0 (non-commercial), keep BEN2; ComfyUI-RMBG code GPL-3.0](https://spdx.org/licenses/MIT.html) | |
| Wan 2.2 14B Image to Video + LoRA (camera/VFX) | Workflow library | VFX | [Apache-2.0 (Wan 2.2); a LoRA you add carries its own licence](https://spdx.org/licenses/Apache-2.0.html) | |
| MiniMax H3 Text to Video + Audio (20 steps) | Workflow library | T2V | [MiniMax H3 Community License (the H3 FL2VA model, its video and audio VAEs, the packaged Qwen3-VL text encoder): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax's written authorization; show "MiniMax H3" on the product's interface; no outputs used to improve other AI models · Qwen3-VL-32B base Apache-2.0 · Sol-H3-VAE (Efficient-Large-Model; the optional fast decoder): licence unconfirmed, no licence tag on its model page; its card says code Apache-2.0 and weights under the MiniMax H3 Community License](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Not available in the US, the EU, the UK and South Korea |
@@ -321,6 +325,7 @@ The custom nodes Fuobe's workflows install, with their licences.
| [ComfyUI-HyNomas](https://github.com/Nynxz/ComfyUI-HyNomas/tree/a89e0515619924da71093aa3fe52dbb7104cb06e) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | Hy-Nomas world generation on ComfyUI's own loaders; Apache-2.0 code reimplementing Tencent's Apache-2.0 model code. The Hy-Nomas DiT is Apache-2.0; the PixelUMM decoder it loads is under the NVIDIA One-Way Noncommercial License |
| [comfyui-krea2edit](https://github.com/lbouaraba/comfyui-krea2edit) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | Krea 2 Identity Edit's nodes (Krea 2 Edit and Identity Edit); Apache-2.0 code. The V2 edit LoRAs they run are non-commercial without a licence from their author |
| [ComfyUI-Krea2-Ostris-Edit](https://github.com/ostris/ComfyUI-Krea2-Ostris-Edit) | [MIT](https://spdx.org/licenses/MIT.html) | Ostris' Krea 2 edit nodes (Krea 2 Inpaint); MIT code. The inpaint LoRA it runs is under the Krea 2 Community License |
+| [moss-anypaint](https://github.com/alexw5702-afk/moss-anypaint/tree/b1df126d2546acbd450f29913c56f66d59b969ae) | [MIT](https://spdx.org/licenses/MIT.html) | The MOSS AnyPaint nodes (canvas, reference and model patch over core MOSS-Image); MIT code. The AnyPaint and 8-step DMD2 LoRAs it runs are Apache-2.0 |
| [ComfyUI-MiniMax-H3-Turbo](https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo/tree/77bfa67575b14e3be6214f1747732e540c68b5dd) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | larryvrh's turbo LoRA loader and sampler for MiniMax H3 (8 steps); Apache-2.0 code, and the turbo v4 LoRA is Apache-2.0. The MiniMax H3 weights it runs leave out the US, the EU, the UK and South Korea |
| [plaguekind-nodes](https://github.com/PlagueKind/ComfyUI-PlagueKind-Nodes/tree/d58d006a4ea32c25c06499f2ff104f0852a045a6) | [MIT](https://spdx.org/licenses/MIT.html) | PlagueKind's H3 SLA attention (needs Triton) and AdaLN LoRA fix for MiniMax H3; MIT code |
| [ComfyUI-Open-H3-Regenerate](https://github.com/rdh9616/ComfyUI-Open-H3-Regenerate/tree/9b686c5ffd380e9d1351f9b8beef6d20d703ca3e) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | rdh9616's Open-H3 Regenerate nodes (NVIDIA's refine recipe, with NVIDIA's fast H3 VAE decoder vendored); Apache-2.0 code with a NOTICE file. The MiniMax H3 weights and the refiner LoRA it runs leave out the US, the EU, the UK and South Korea |
@@ -328,7 +333,7 @@ The custom nodes Fuobe's workflows install, with their licences.
| [Comfyui-Hi3d-T8](https://github.com/T8mars/Comfyui-Hi3d-T8/tree/73848490976e6a9b0c735ce02984c03866a495e7) | [MIT](https://spdx.org/licenses/MIT.html) | T8star's Hi3D nodes (model loader, mesh loader, refine); MIT code. The Hi3D code it vendors and the Hi3D weights are under the Hi3D Open License Agreement 1.0: commercial use, a separate licence above 200,000 monthly users or US$1M monthly revenue, and "Powered by Hi3D 1.0" shown with its results |
| [ComfyUI-RE-USE](https://github.com/workingprototype/Fuobe/tree/8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d/comfy-nodes/ComfyUI-RE-USE) | [MIT](https://spdx.org/licenses/MIT.html) | Fuobe's own pack. The network code is adapted from NVIDIA's RE-USE repository (OpenMDW-1.1, notices kept), and the Mamba layer is a plain-PyTorch rewrite (no mamba-ssm). It matches the reference maths numerically, but it is not NVIDIA's code path |
| [ComfyUI-InstantHMR](https://github.com/workingprototype/Fuobe/tree/e4b74735062298af07bb931aed280a440d1b2958/comfy-nodes/ComfyUI-InstantHMR) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | Fuobe's pinned form of jtydhr88's InstantHMR nodes (only the loader and the predictor); Apache-2.0 code. The InstantHMR weights are under the SAM License: the nano to medium files are non-commercial (some training images are research-only), and instanthmr_medium_commercial allows commercial use under its terms. The MHR body model is Apache-2.0 |
-| [ComfyUI-BodyDouble](https://github.com/workingprototype/Fuobe/tree/26d386bdacb371d06aa2325ac1b90373a11ff6b7/comfy-nodes/ComfyUI-BodyDouble) | [MIT](https://spdx.org/licenses/MIT.html) | Fuobe's own pack: lines each 3D body up with its person and draws the double over the whole outline from the picture's own geometry |
+| [ComfyUI-BodyDouble](https://github.com/workingprototype/Fuobe/tree/e5ed1abefc958ce937594aeffa6d5319cb39ff36/comfy-nodes/ComfyUI-BodyDouble) | [MIT](https://spdx.org/licenses/MIT.html) | Fuobe's own pack: lines each 3D body up with its person and draws the double over the whole outline from the picture's own geometry |
| [ComfyUI-HyperFlow-Flash](https://github.com/Video-Rebirth/ComfyUI-HyperFlow-Flash/tree/20a22ab2b075f3c948eb5dba62637ff89fc0f363) | [GPL-3.0](https://spdx.org/licenses/GPL-3.0-only.html) | Video Rebirth's HyperFlow H3 Flash nodes (GGUF loader and step schedule); GPL-3.0 code. The HyperFlow H3 Flash weights are a MiniMax H3 derivative under the MiniMax H3 Community License |
| [ComfyUI-GGUF](https://github.com/city96/ComfyUI-GGUF/tree/6ea2651e7df66d7585f6ffee804b20e92fb38b8a) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | city96's GGUF loaders and dequantizing ops; Apache-2.0 code |
| [ComfyUI_Nvidia_VFX_Nodes](https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes/tree/38d790ded00650681fa3645362efe28c8560cf40) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | Comfy-Org's NVIDIA VFX nodes 0.2.1; Apache-2.0 code. The nvidia-vfx runtime they load (the RTX Video SDK and its models) is NVIDIA's own, under the NVIDIA Software License Agreement: free, runs only on NVIDIA GPUs, no redistributing it |
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 9b8dfc33..2fa217ff 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -470,6 +470,21 @@ const open: ModelDef[] = [
],
options: { maxImages: 1, seed: true },
}),
+ // MOSS AnyPaint: MOSS-Image Base with the AnyPaint and 8-step DMD2 LoRAs on the moss-anypaint nodes. No `new`: it stays
+ // out of Inpaint's Best list until those nodes are on the validation server.
+ o({
+ id: "oss-moss-anypaint",
+ name: "MOSS AnyPaint",
+ vendor: "OpenMOSS",
+ family: "moss",
+ kind: "image",
+ tagline: "Repaints any shape you mask or extends the canvas, and keeps the rest of the picture · 16 GB GPU · needs the MOSS AnyPaint add-on",
+ routes: [
+ comfy("inpaint", "moss-anypaint-inpaint", "MOSS-Image Base + AnyPaint LoRA, 8 steps; white = generate, black = keep"),
+ comfy("outpaint", "moss-anypaint-outpaint", "the canvas grown by the pads, the new margins generated in 8 steps"),
+ ],
+ options: { maxImages: 1, seed: true },
+ }),
// ---------------- Image
o({
diff --git a/src/lib/licences.ts b/src/lib/licences.ts
index ab22aba5..c0aad486 100644
--- a/src/lib/licences.ts
+++ b/src/lib/licences.ts
@@ -633,6 +633,13 @@ export const NODE_PACKS: NodePack[] = [
url: SPDX("MIT"),
note: "Ostris' Krea 2 edit nodes (Krea 2 Inpaint); MIT code. The inpaint LoRA it runs is under the Krea 2 Community License",
}),
+ // MOSS AnyPaint, pinned in workflows/comfyui/packs.json.
+ pack("moss-anypaint", "https://github.com/alexw5702-afk/moss-anypaint/tree/b1df126d2546acbd450f29913c56f66d59b969ae", {
+ name: "MIT",
+ class: "commercial",
+ url: SPDX("MIT"),
+ note: "The MOSS AnyPaint nodes (canvas, reference and model patch over core MOSS-Image); MIT code. The AnyPaint and 8-step DMD2 LoRAs it runs are Apache-2.0",
+ }),
// MiniMax H3 video (minimax-h3-t2v / i2v / flf2v), pinned in install-comfyui.sh.
pack("ComfyUI-MiniMax-H3-Turbo", "https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo/tree/77bfa67575b14e3be6214f1747732e540c68b5dd", {
name: "Apache-2.0",
diff --git a/tests/moss-anypaint.test.ts b/tests/moss-anypaint.test.ts
new file mode 100644
index 00000000..3635195e
--- /dev/null
+++ b/tests/moss-anypaint.test.ts
@@ -0,0 +1,224 @@
+import fs from "node:fs";
+import path from "node:path";
+import { describe, expect, it } from "vitest";
+import type { GenInput, GenerationRequest, Operation } from "@/lib/catalog/types";
+import type { ComfyWorkflow, Manifest } from "@/lib/comfy";
+import { tempDir } from "./helpers/temp-dir";
+
+/**
+ * MOSS AnyPaint on your GPU: MOSS-Image Base with the AnyPaint task LoRA and the Base 8-step DMD2 LoRA, on the pinned
+ * moss-anypaint nodes. One model, two graphs: Inpaint (a mask, white = generate) and Expand (the pads grow the canvas).
+ */
+const dir = tempDir("fuobe-moss-anypaint-");
+process.env.FUOBE_DATA_DIR = dir;
+process.env.COMFYUI_URL = "http://127.0.0.1:9";
+
+const { prepareWorkflow } = await import("@/server/providers/comfyui");
+const { getModel, getPreset, MODELS } = await import("@/lib/catalog");
+const { estimateCost, planGeneration } = await import("@/lib/catalog/plan");
+const { filterModels } = await import("@/lib/composer");
+const { INPAINT_STUDIO } = await import("@/lib/studios");
+const { TOOL_MODELS } = await import("@/lib/layers");
+const { licenceTerms, NODE_PACKS, workflowLicence } = await import("@/lib/licences");
+const { modelLicence } = await import("@/server/model-access");
+const { CUSTOM_NODE_REPOS, KNOWN_MODELS, PACK_CLASSES } = await import("../scripts/comfy/library.spec.mjs");
+const { vetGraph } = await import("../bin/lib/worker/checks.mjs");
+const { allowedNodeList, inputRules, readCatalog } = await import("../scripts/lib/worker-catalog.mjs");
+
+const LIBRARY = path.join(process.cwd(), "workflows/comfyui");
+const read = <T>(f: string) => JSON.parse(fs.readFileSync(path.join(LIBRARY, f), "utf8")) as T;
+const manifest = read<Manifest>("manifest.json");
+const entry = (id: string) => manifest.workflows.find((w) => w.id === id)!;
+const pins = read<Record<string, { revision: string; sizeBytes: number; sha256?: string }>>("model-pins.json");
+const packs = read<Record<string, { repo: string; commit: string; registry: unknown; requirementsTxt: boolean; isolated: boolean }>>("packs.json");
+const requirements = read<{ workflows: Record<string, { packs: Record<string, string[]>; files: string[]; vramGb: number; cpu?: boolean }> }>("requirements.json");
+const subset = read<Record<string, { python_module: string; input: { required: Record<string, [string, ...unknown[]]>; optional?: Record<string, unknown> } } | null>>("object_info.subset.json");
+
+const MODEL = "oss-moss-anypaint";
+const INPAINT = "moss-anypaint-inpaint";
+const OUTPAINT = "moss-anypaint-outpaint";
+const IDS = [INPAINT, OUTPAINT];
+const PACK = "moss-anypaint";
+const PACK_COMMIT = "b1df126d2546acbd450f29913c56f66d59b969ae";
+const CLASSES = ["MOSSAnyPaintEncode", "MOSSAnyPaintModelPatch", "MOSSAnyPaintPrepare"];
+
+const SIZES: Record<string, { width: number; height: number }> = { "photo.png": { width: 1600, height: 1200 } };
+async function prepare(id: string, input: GenInput, op: Operation): Promise<ComfyWorkflow> {
+ const { workflow } = await prepareWorkflow(id, { seed: 7, ...input }, { generationId: "g", op, upload: async (_d, _t, name) => `up_${name}`, media: ((name: string) => SIZES[name]) as never });
+ return workflow;
+}
+const plan = (r: Partial<GenerationRequest>) => planGeneration({ feature: "image", ...r } as GenerationRequest, getModel, getPreset);
+
+describe("MOSS AnyPaint in the catalog", () => {
+ const m = getModel(MODEL)!;
+
+ it("is one open model that inpaints and expands on your GPU, free", () => {
+ expect(m).toMatchObject({ engine: "open", kind: "image", vendor: "OpenMOSS", family: "moss", name: "MOSS AnyPaint" });
+ expect(m.routes.map((r) => [r.op, r.provider, r.endpoint])).toEqual([
+ ["inpaint", "comfyui", INPAINT],
+ ["outpaint", "comfyui", OUTPAINT],
+ ]);
+ for (const r of m.routes) expect(entry(r.endpoint!).capability).toBe(r.op);
+ // No `new`: it stays out of Inpaint's Best list while its nodes aren't on the validation server.
+ expect(m.badges).toEqual(["open"]);
+ expect(m.tagline).toMatch(/16 GB GPU/);
+ expect(m.tagline).toMatch(/needs the MOSS AnyPaint add-on/);
+ expect(m.options).toMatchObject({ maxImages: 1, seed: true });
+ expect(estimateCost(m, {}, 1, "inpaint")).toBe(0);
+ expect(estimateCost(m, {}, 1, "outpaint")).toBe(0);
+ });
+
+ it("is a choice in the Inpaint studio, and stays out of the Layers tools that keep the picture's own size", () => {
+ expect(filterModels(MODELS, { kind: "image", ops: INPAINT_STUDIO.ops }).map((x) => x.id)).toContain(MODEL);
+ expect(TOOL_MODELS.inpaint.open).not.toContain(MODEL);
+ expect(TOOL_MODELS.expand.open).not.toContain(MODEL);
+ });
+
+ it("plans inpaint from a picture and a mask, expand from a picture, and asks for what's missing", () => {
+ expect(plan({ modelId: MODEL, prompt: "a vase of white tulips on the table", inputs: { images: ["/a.png"], mask: "/m.png" } }).op).toBe("inpaint");
+ expect(() => plan({ modelId: MODEL, prompt: "a vase", inputs: {} })).toThrow(/Add an image/);
+ expect(plan({ modelId: MODEL, op: "outpaint", prompt: "the rest of the garden", inputs: { images: ["/a.png"] } }).op).toBe("outpaint");
+ });
+});
+
+describe("the MOSS AnyPaint graphs", () => {
+ it("Inpaint: the photo at about 1 MP, the mask's white area generated on MOSS-Image Base with both LoRAs at 1.0", async () => {
+ const wf = await prepare(INPAINT, { prompt: "a sunlit kitchen with a ceramic bowl of lemons", images: ["photo.png"], mask: "mask.png" }, "inpaint");
+ expect(wf["1"]).toMatchObject({ class_type: "LoadImage", inputs: { image: "photo.png" } });
+ expect(wf["2"]).toMatchObject({ class_type: "LoadImageMask", inputs: { image: "mask.png", channel: "red" } });
+ expect(wf["3"]).toMatchObject({ class_type: "ImageScaleToTotalPixels", inputs: { image: ["1", 0], megapixels: 1, resolution_steps: 16 } });
+ expect(wf["10"].inputs.unet_name).toBe("moss_image_base_int8_convrot.safetensors");
+ expect(wf["11"].inputs).toMatchObject({ clip_name: "qwen3.5_9b_int8_convrot.safetensors", type: "moss_image" });
+ expect(wf["12"].inputs.vae_name).toBe("flux2-vae_small.safetensors");
+ expect(wf["13"].inputs).toMatchObject({ model: ["10", 0], lora_name: "moss_anypaint_rank32.safetensors", strength_model: 1 });
+ expect(wf["14"].inputs).toMatchObject({ model: ["13", 0], lora_name: "lora_dmd2.safetensors", strength_model: 1 });
+ expect(wf["15"]).toMatchObject({ class_type: "MOSSAnyPaintModelPatch", inputs: { model: ["14", 0], kv_cache: true } });
+ expect(wf["16"]).toMatchObject({
+ class_type: "MOSSAnyPaintPrepare",
+ inputs: { source: ["3", 0], generated_mask: ["2", 0], left: 0, top: 0, right: 0, bottom: 0, reference_max_edge: 384, boundary_redraw_px: 32 },
+ });
+ expect(wf["20"]).toMatchObject({
+ class_type: "MOSSAnyPaintEncode",
+ inputs: { prompt: "a sunlit kitchen with a ceramic bowl of lemons", clip: ["11", 0], vae: ["12", 0], semantic_reference: ["16", 0], known_image: ["16", 1], keep_mask: ["16", 3] },
+ });
+ // The card's settings: 8 steps, CFG 1 (shift 5 is core MOSS-Image's own), the known latent and its noise mask from Encode.
+ expect(wf["23"]).toMatchObject({ class_type: "KSampler", inputs: { seed: 7, steps: 8, cfg: 1, sampler_name: "euler", scheduler: "simple", denoise: 1, model: ["15", 0], positive: ["20", 0], negative: ["21", 0], latent_image: ["20", 1] } });
+ expect(wf["29"]).toMatchObject({ class_type: "SaveImage", inputs: { images: ["24", 0] } });
+ await expect(prepare(INPAINT, { prompt: "a vase", images: ["photo.png"] }, "inpaint")).rejects.toThrow("Paint the area to change");
+ });
+
+ it("Expand: the pads asked for grow the canvas around the photo, 256 px a side by default", async () => {
+ const wf = await prepare(OUTPAINT, { prompt: "the rest of the garden", images: ["photo.png"], extra: { padLeft: 128, padTop: 0, padRight: 128, padBottom: 64 } }, "outpaint");
+ expect(wf["16"]).toMatchObject({ class_type: "MOSSAnyPaintPrepare", inputs: { source: ["3", 0], left: 128, top: 0, right: 128, bottom: 64 } });
+ expect(wf["16"].inputs).not.toHaveProperty("generated_mask");
+ expect(Object.values(wf).map((n) => n.class_type)).not.toContain("LoadImageMask");
+ const plain = await prepare(OUTPAINT, { prompt: "the rest of the garden", images: ["photo.png"] }, "outpaint");
+ expect(plain["16"].inputs).toMatchObject({ left: 256, top: 256, right: 256, bottom: 256 });
+ expect(entry(OUTPAINT).defaults).toMatchObject({ steps: 8, padLeft: 256, padTop: 256, padRight: 256, padBottom: 256 });
+ expect(entry(OUTPAINT).limits).toMatchObject({ maxWidth: 2048, maxHeight: 2048, padMultiple: 16 });
+ });
+
+ it("passes the worker's checks as the studio prepares it, and a worker refuses a LoRA it didn't verify", async () => {
+ const catalog = readCatalog(process.cwd());
+ const allowed = new Set(allowedNodeList(process.cwd(), catalog));
+ const rules = inputRules(catalog);
+ const verified = Object.values(catalog.requirements.files as Record<string, { folder: string; file: string }>).map((f) => ({ folder: f.folder, name: f.file }));
+ for (const c of CLASSES) expect(allowed.has(c), c).toBe(true);
+ const staged = ["fuobe_abcdefgh01.png", "fuobe_abcdefgh02.png"];
+ const wf = await prepare(INPAINT, { prompt: "a vase of tulips", images: [staged[0]], mask: staged[1] }, "inpaint");
+ expect(vetGraph(wf, allowed, verified, { rules, staged })).toBeNull();
+ const swapped = { ...wf, "13": { ...wf["13"], inputs: { ...wf["13"].inputs, lora_name: "../../secrets.safetensors" } } };
+ expect(vetGraph(swapped, allowed, verified, { rules, staged })).toBe("unsafe-path");
+ const unpinned = { ...wf, "14": { ...wf["14"], inputs: { ...wf["14"].inputs, lora_name: "someone_elses_dmd2.safetensors" } } };
+ expect(vetGraph(unpinned, allowed, verified, { rules, staged })).not.toBeNull();
+ });
+});
+
+describe("MOSS AnyPaint files, pack and licences", () => {
+ it("pins each file to a revision, its size and its SHA-256, the two LoRAs as Hugging Face lists them", () => {
+ for (const id of IDS) {
+ expect(entry(id).models.map((f) => `${f.folder}/${f.file}`).sort(), id).toEqual([
+ "diffusion_models/moss_image_base_int8_convrot.safetensors",
+ "loras/lora_dmd2.safetensors",
+ "loras/moss_anypaint_rank32.safetensors",
+ "text_encoders/qwen3.5_9b_int8_convrot.safetensors",
+ "vae/flux2-vae_small.safetensors",
+ ]);
+ for (const f of entry(id).models) {
+ const pin = pins[f.url!];
+ expect(pin, `${id} ${f.file}`).toBeDefined();
+ expect(pin.revision, f.file).toMatch(/^[0-9a-f]{40}$/);
+ expect(pin.sha256, f.file).toMatch(/^[0-9a-f]{64}$/);
+ }
+ expect(requirements.workflows[id].files.length, id).toBe(5);
+ }
+ expect(pins[KNOWN_MODELS["moss_anypaint_rank32.safetensors"].url]).toEqual({
+ revision: "7edba8f26d216f5260a940c6de9e43bfa52df60f",
+ sizeBytes: 148693368,
+ sha256: "151701bc1a4f572bb62af22e4bc2c6db5b3a755b95c1ae93ad1a388d1ec17078",
+ });
+ expect(pins[KNOWN_MODELS["lora_dmd2.safetensors"].url]).toEqual({
+ revision: "da05cb3b52899179e2bb5f7efe1058fefcbae21b",
+ sizeBytes: 1189176800,
+ sha256: "7683fe1fb51f73f5d690f24dd6b7f46f31ab9a9873729a854ac5c9a420ffe6f2",
+ });
+ // The Base file is the one MOSS-Image's Base setting already loads (one pin, one download).
+ expect(entry("moss-image-t2i").models.find((f) => f.file === "moss_image_base_int8_convrot.safetensors")?.url).toBe(KNOWN_MODELS["moss_image_base_int8_convrot.safetensors"].url);
+ });
+
+ it("needs the moss-anypaint nodes at a pinned commit, and only their three classes", () => {
+ expect(packs[PACK]).toMatchObject({ repo: "https://github.com/alexw5702-afk/moss-anypaint", commit: PACK_COMMIT, registry: null, requirementsTxt: false, isolated: false });
+ expect(CUSTOM_NODE_REPOS[PACK]).toContain(PACK_COMMIT);
+ for (const id of IDS) {
+ expect(entry(id).customNodes.map((c) => c.name), id).toEqual([PACK]);
+ expect(requirements.workflows[id].packs, id).toEqual({ [PACK]: CLASSES });
+ expect(requirements.workflows[id].vramGb, id).toBe(16);
+ expect(requirements.workflows[id].cpu, id).toBeUndefined();
+ }
+ for (const c of CLASSES) {
+ expect(PACK_CLASSES[PACK].test(c), c).toBe(true);
+ expect(subset[c]?.python_module, c).toBe(`custom_nodes.${PACK}`);
+ }
+ // No input of the pack names a file: numbers, a switch, a prompt and links.
+ const kinds = CLASSES.flatMap((c) => Object.values({ ...subset[c]!.input.required, ...(subset[c]!.input.optional ?? {}) }).map((s) => (s as [string])[0]));
+ expect([...new Set(kinds)].sort()).toEqual(["BOOLEAN", "CLIP", "IMAGE", "INT", "MASK", "MODEL", "STRING", "VAE"]);
+ expect(subset.MOSSAnyPaintEncode!.input.required.prompt[0]).toBe("STRING");
+ });
+
+ it("records the licences as information: Apache-2.0 weights, MIT nodes", () => {
+ for (const id of IDS) expect(licenceTerms(workflowLicence(entry(id))).flags, id).toEqual([]);
+ expect(NODE_PACKS.find((p) => p.name === PACK)!.licence.name).toBe("MIT");
+ const l = modelLicence(getModel(MODEL)!);
+ expect(l.licence.name).toMatch(/Apache-2\.0/);
+ expect(l.packs).toEqual([PACK]);
+ });
+});
+
+describe("the GPU pre-flight on a stand-in ComfyUI", () => {
+ const SITE = "http://127.0.0.1:3370";
+
+ it("reads Ready with the nodes and the files, and names the add-on when the nodes are missing", async () => {
+ const { parseIndex } = await import("@/lib/gpu/requirements");
+ const { gatherInventory } = await import("@/lib/gpu/gather");
+ const { fetchTransport } = await import("@/lib/gpu/transport");
+ const { workflowReadiness } = await import("@/lib/gpu/readiness");
+ const { startLocalComfy } = await import("./helpers/fake-local-comfy");
+ const idx = parseIndex(read("requirements.json"));
+ const withoutPack = structuredClone(idx);
+ for (const id of IDS) withoutPack.workflows[id].packs = {};
+ for (const [has, ready] of [[idx, true], [withoutPack, false]] as const) {
+ const fake = await startLocalComfy({ cors: SITE, has: has as never });
+ try {
+ const t = fetchTransport("browser", fake.url, (url, init = {}) => fetch(url, { ...init, headers: { ...(init.headers as Record<string, string>), origin: SITE, "sec-fetch-site": "cross-site" } }), { decodes: true });
+ const inv = await gatherInventory(t, idx, { where: "computer" });
+ for (const id of IDS) {
+ const r = workflowReadiness(id, inv, idx, { account: true });
+ if (ready) expect(r.state, id).toBe("ready");
+ else expect(r.needs.map((n) => n.key), id).toContain(`pack:${PACK}`);
+ }
+ } finally {
+ await fake.close();
+ }
+ }
+ });
+});
diff --git a/tests/open-sota-studios.test.ts b/tests/open-sota-studios.test.ts
index 797aaf9e..bdc1ed4b 100644
--- a/tests/open-sota-studios.test.ts
+++ b/tests/open-sota-studios.test.ts
@@ -95,9 +95,12 @@ describe("catalog order: the owner's ranking", () => {
before("oss-krea2-inpaint", "oss-flux-fill");
});
- it("MOSS-Image is main's one model, listed once", () => {
- expect(openIds.filter((id) => id.startsWith("oss-moss"))).toEqual(["oss-moss-image"]);
+ it("MOSS-Image is main's one text to image model, listed once; MOSS AnyPaint follows the Krea 2 Inpaint", () => {
+ expect(openIds.filter((id) => id.startsWith("oss-moss"))).toEqual(["oss-moss-image", "oss-moss-anypaint"]);
expect(getModel("oss-moss-image")!.routes.map((r) => r.endpoint)).toEqual(["moss-image-t2i"]);
+ expect(getModel("oss-moss-anypaint")!.routes.map((r) => r.op)).toEqual(["inpaint", "outpaint"]);
+ before("oss-krea2-inpaint", "oss-moss-anypaint");
+ before("oss-moss-anypaint", "oss-flux-fill");
});
});