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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Any Angle and Relight open to everyone
Adarshf8e781a498f7
diff --git a/scripts/comfy/fixtures/test.spz b/scripts/comfy/fixtures/test.spznew file mode 100644index 00000000..71f46468Binary files /dev/null and b/scripts/comfy/fixtures/test.spz differdiff --git a/scripts/comfy/validate-workflows.mjs b/scripts/comfy/validate-workflows.mjsindex b7e22aeb..5200a991 100644--- a/scripts/comfy/validate-workflows.mjs+++ b/scripts/comfy/validate-workflows.mjs@@ -11,7 +11,7 @@// For each manifest entry:// 1. create zero-byte placeholder files for missing models (models/<folder>/<file>) so loader// combos accept the names (deleted again at the end unless --keep-dummies; real files are never touched),-// 2. upload tiny fixtures (png / mask png / wav / mp4) via POST /upload/image,+// 2. upload tiny fixtures (png / mask png / wav / mp4 / spz) via POST /upload/image,// 3. apply sample values to every binding (exactly what the app will do),// 4. POST /prompt and require HTTP 200 + prompt_id + empty node_errors,// 5. immediately delete it from the queue (POST /queue {"delete":[id]}, POST /interrupt {prompt_id} if it@@ -93,6 +93,7 @@ function sampleValue(key, entry, uploads) {case 'device': return 'cpu';case 'video': case 'video2': case 'video3': case 'video4': return uploads.mp4;case 'audio': case 'audio2': return uploads.wav;+ case 'splatFile': return uploads.spz; // Load3D: a saved 3D view (Any Angle's .spz)case 'tracks': {// Wan-Move: one {x,y} per output frame per track (a moving stroke + a static anchor)const n = Number(entry.defaults?.frames ?? 81);@@ -179,7 +180,7 @@ async function startBlocker(objectInfo) {}// The names the fixtures are uploaded under (upload() overwrites, so they keep them).-const FIXTURE_NAMES = ['fuobe_validate.png', 'fuobe_validate_mask.png', 'fuobe_validate.wav', 'fuobe_validate.mp4'];+const FIXTURE_NAMES = ['fuobe_validate.png', 'fuobe_validate_mask.png', 'fuobe_validate.wav', 'fuobe_validate.mp4', 'fuobe_validate.spz'];/*** object_info.subset.json for every class the library uses. Classes this server lacks keep their recorded definition@@ -234,6 +235,7 @@ async function main() {mask: await upload(path.join(FIXTURES, 'test_mask.png'), 'fuobe_validate_mask.png'),wav: await upload(path.join(FIXTURES, 'test.wav'), 'fuobe_validate.wav'),mp4: await upload(path.join(FIXTURES, 'test.mp4'), 'fuobe_validate.mp4'),+ spz: await upload(path.join(FIXTURES, 'test.spz'), 'fuobe_validate.spz'),};const created = [];diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex a976b4ed..3d87e3d6 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -1,4 +1,16 @@{+ "any-angle-3d": {+ "sha256": "ded5abee5cefe7b9ed8924eb72499f25d0940c548ed06faf73da17e446850452",+ "validated": true,+ "error": null,+ "at": "2026-11-04T03:22:00.489Z"+ },+ "any-angle-shot": {+ "sha256": "9cb1e588631eca3ec945a8c6da6a97301ea0b21531e5aaab19f5dbce9ecdefc9",+ "validated": true,+ "error": null,+ "at": "2026-11-04T03:33:21.938Z"+ },"audio-join-crossfade": {"sha256": "f18c08cd22f37ccadb81cf557c4624e894c71dd718685e7b3030c92c9893be6a","validated": true,@@ -455,6 +467,12 @@"error": null,"at": "2026-11-03T08:03:14.171Z"},+ "qwen-image-21-relight": {+ "sha256": "06d2a199f03cd83e50b525d4bb8fc689ee3ab1268e3ef5da76865f614e9cdbe2",+ "validated": true,+ "error": null,+ "at": "2026-11-04T03:21:58.891Z"+ },"qwen-image-2512-t2i": {"sha256": "c18da4a3488120bdcee722e4ae7d187385544ec4805753e7dae6946ddb6f6ba5","validated": true,@@ -509,6 +527,12 @@"error": null,"at": "2026-10-16T23:33:15.071Z"},+ "relight-scene-read": {+ "sha256": "62ca8f04bbb6f9cbbe8a19e44c90da39f92c3485ecb26520dc922cfc0badfe20",+ "validated": true,+ "error": null,+ "at": "2026-11-04T03:21:59.684Z"+ },"restore-qwen-image-21": {"sha256": "70a711896b815722bee4e62dfda71b7eec7cbb7203dd411f4e169ff407a13705","validated": true,diff --git a/src/lib/catalog/any-angle.ts b/src/lib/catalog/any-angle.tsindex 98dd5fc2..309ec5a2 100644--- a/src/lib/catalog/any-angle.ts+++ b/src/lib/catalog/any-angle.ts@@ -90,8 +90,8 @@ export interface AnglePreset {/*** The presets, as tested on the GPU: turns up to 60° each way, a high and a low angle, a close-up aimed at the face, and a* view from behind at three quarters (people only). Over-the-shoulder, wide and straight-behind views weren't tested, so- * they aren't offered. Heights add to the front view's 10°: from above lands at 40° (35° on a portrait), from below at- * -15°, as tested.+ * they aren't offered. Heights add to the front view's height: from above is 30° over it (20° on a portrait), from below+ * 25° under it, as tested.*/export const ANGLE_PRESETS: readonly AnglePreset[] = [{ id: "left-30", label: "Left 30°", yaw: -30, pitch: 0, distance: 1, aim: "middle" },@@ -104,8 +104,11 @@ export const ANGLE_PRESETS: readonly AnglePreset[] = [{ id: "behind", label: "From behind", yaw: 135, pitch: 5, distance: 1, aim: "middle", people: true },];-/** A portrait's high angle stays at most this far above level: at +40 over the front only the top of the head shows. */-export const PORTRAIT_MAX_PITCH = 35;+/**+ * A portrait's high angle goes at most this far over its front view: at +40 only the top of the head shows, and at +25+ * a head-and-shoulders photo mostly shows hair; +20 keeps the face in view on the photos tested.+ */+export const PORTRAIT_MAX_RISE = 20;/** A head taller than this share of the photo makes it a portrait. */export const PORTRAIT_HEAD_SHARE = 0.2;/** A close-up frames the head at about this share of the picture's height. */@@ -147,7 +150,7 @@ export function closeUpFactor(front: Pick<FrontView, "person" | "headShare">): n/** The highest a camera goes on this photo (absolute degrees): lower on a portrait. */export const maxPitchFor = (front: Pick<FrontView, "headShare" | "pitch">): number =>- front.headShare > PORTRAIT_HEAD_SHARE ? PORTRAIT_MAX_PITCH : front.pitch + CUSTOM_LIMITS.pitchMax;+ front.pitch + (front.headShare > PORTRAIT_HEAD_SHARE ? PORTRAIT_MAX_RISE : CUSTOM_LIMITS.pitchMax);/** The camera a preset makes on a photo whose front view was measured. */export function cameraFor(front: FrontView, preset: AnglePreset): Camera {diff --git a/tests/any-angle.test.ts b/tests/any-angle.test.tsindex 4e3ba6d3..6809a459 100644--- a/tests/any-angle.test.ts+++ b/tests/any-angle.test.ts@@ -16,7 +16,7 @@ import {fromFuobeAngles,fromOrbit,orbitOf,- PORTRAIT_MAX_PITCH,+ PORTRAIT_MAX_RISE,presetById,presetsFor,renderSize,@@ -66,9 +66,12 @@ describe("the cameras", () => {expect(wrapYaw(-190)).toBe(170);});- it("keeps the high angle at 35° above level on a portrait, and the low angle at 25° under the front", () => {+ it("keeps the high angle at 20° over the front on a portrait, and the low angle at 25° under the front", () => {expect(cameraFor(FULL, presetById("above")!).pitch).toBe(40);- expect(cameraFor(PORTRAIT, presetById("above")!).pitch).toBe(PORTRAIT_MAX_PITCH);+ expect(cameraFor(PORTRAIT, presetById("above")!).pitch).toBe(PORTRAIT.pitch + PORTRAIT_MAX_RISE);+ // The cap follows the front view's height, not a fixed angle above level.+ expect(cameraFor({ ...PORTRAIT, pitch: 20 }, presetById("above")!).pitch).toBe(40);+ expect(cameraFor({ ...PORTRAIT, pitch: 0 }, presetById("above")!).pitch).toBe(20);expect(cameraFor(FULL, presetById("below")!).pitch).toBe(-15);expect(cameraFor(FULL, presetById("below")!).distance).toBe(1.74);});@@ -98,7 +101,7 @@ describe("the cameras", () => {it("keeps a camera turned by hand inside what the tests covered", () => {expect(clampCustom(FULL, { yaw: 170, pitch: 80, distance: 3 })).toEqual({ yaw: CUSTOM_LIMITS.yawPeople, pitch: CUSTOM_LIMITS.pitchMax, distance: CUSTOM_LIMITS.distanceMax });expect(clampCustom(BAG, { yaw: -170, pitch: -60, distance: 0.1 })).toEqual({ yaw: -CUSTOM_LIMITS.yawObjects, pitch: CUSTOM_LIMITS.pitchMin, distance: CUSTOM_LIMITS.distanceMin });- expect(clampCustom(PORTRAIT, { yaw: 0, pitch: 40, distance: 1 }).pitch).toBe(PORTRAIT_MAX_PITCH - PORTRAIT.pitch);+ expect(clampCustom(PORTRAIT, { yaw: 0, pitch: 40, distance: 1 }).pitch).toBe(PORTRAIT_MAX_RISE);expect(customCamera(FULL, { yaw: -40, pitch: 10, distance: 0.8 })).toMatchObject({ yaw: 85, pitch: 20, distance: 1.46 });expect(customLabel({ yaw: 40, pitch: 8, distance: 0.7 })).toBe("Custom · 40° right, slightly above, closer");expect(customLabel({ yaw: 0, pitch: 0, distance: 1 })).toBe("Custom · front");diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.tsindex 17903475..269a819e 100644--- a/tests/comfy-library-4.test.ts+++ b/tests/comfy-library-4.test.ts@@ -121,9 +121,6 @@ describe("round-4 ComfyUI workflows", () => {"qwen-image-21-t2i","qwen-image-21-edit","qwen-image-21-turbo-edit",- // Relight's graphs wait for their first GPU run (Viggle's node file isn't on this server).- "qwen-image-21-relight",- "relight-scene-read","qwen-image-21-live-edit","qwen-image-21-inpaint","qwen-image-21-outpaint",@@ -161,10 +158,6 @@ describe("round-4 ComfyUI workflows", () => {"video-character-swap-h3-relay","video-character-swap-h3-segment","video-mask-h3-relay",- // Any Angle's two graphs: run end to end on the GPU, they wait for their /prompt check while that ComfyUI is busy- // rendering (the app stays the owner's until then: src/server/any-angle-live.ts).- "any-angle-3d",- "any-angle-shot","video-regenerate-h3",// Genjutsu's Openjutsu modes not checked against ComfyUI yet; each opens only after its /prompt// check and a real render (workflows/comfyui/gpu-tested.json, src/server/genjutsu-live.ts).diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 6e9f8976..cfc353e9 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -12608,7 +12608,7 @@],"vramGb": 24,"license": "Qwen Research License Agreement (Qwen-Image 2.1 and Viggle's turbo LoRA, a derivative): NON-COMMERCIAL, research and evaluation only; the viggle_turbo node file ships in the same model repo under the same terms",- "validated": false,+ "validated": true,"notes": "Built from Viggle's ComfyUI edit workflow (Viggle/Qwen-Image-2.1-viggle-turbo, comfyui/) with one reference: the int8 Qwen-Image 2.1 model, the v0.2.1 6-step LoRA (r256) on ViggleTurboLora at 1.0 (applied unmerged; it reads lora_alpha / r from the file's metadata), QwenImage21Cache auto, TextEncodeQwenImage21 at resolution 1024 (about 1 MP, sides on the 32 grid), positive only, BasicGuider (no CFG), euler, ViggleTurboSigmas \"1.0, 0.9375, 0.875, 0.75, 0.5, 0.25\" (the raw nodes, shifted for the latent's size), RandomNoise, SamplerCustomAdvanced, VAEDecode. The words come from the placed lights (\"Relight the photo with a strong sunset orange light coming from the left, at face height, far away. The scene is in darkness, lit only by these lights …\"), so the result is lit only by them and the page blends it with the original (Intensity). Image 2 is an optional light-guide picture (the rig drawn over the darkened photo), dropped when not given. The seed comes from the photo, so moving one light changes only that light. A Pruna 8-step v0.1 LoRA in its place must also load through ViggleTurboLora at 1.0: its x2 strength is only in the metadata, so LoraLoaderModelOnly at 1.0 gives half."},{@@ -12666,7 +12666,7 @@"customNodes": [],"vramGb": 6,"license": "Depth Anything 3 mono large: Apache-2.0 (model card) · BiRefNet: MIT",- "validated": false,+ "validated": true,"notes": "One photo in, two grey PNGs out, for the Relight page's depth-true preview: DA3Inference (mono, 504, lower-bound resize) and DA3Render depth with v2_style normalisation (near = bright), and the core background-removal nodes (birefnet.safetensors) with the mask saved as a picture (white = subject). Runs once per photo; its runs are helper steps the Library leaves out."},{@@ -23926,7 +23926,7 @@"customNodes": [],"vramGb": 8,"license": "MIT (VAST-AI/TripoSplat weights); the dino_v3_vit_h image encoder is under the DINOv3 License (royalty-free, commercial use allowed, trade-control limits; the app must show a \"Built with DINOv3\" notice); FLUX.2 VAE Apache-2.0; BiRefNet MIT",- "validated": false,+ "validated": true,"notes": "Step 1 of Any Angle, run once per photo (the server keeps the result by the photo's sha256; feature any-angle-step, out of Library). image-to-splat-triposplat's chain with the cut-out always on (without it a turned camera shows the photo as a flat card with black wedges), seeds fixed at 46 for the sampler and the decoder (the same photo gives the same 3D view), 20 steps, cfg 3, dpmpp_2m, 262,144 Gaussians. Outputs: the splat as .spz (role splat, about 3 MB: every angle reloads it), a 48-frame turntable from yaw 0 at pitch 10, distance 2, fov 33, 512 px, 12 fps (role turntable, shown while picking), the same frames at 192 px as lossless animated WebP, colour (role sweep) and RenderSplat's coverage mask (role sweep-mask), the BiRefNet cut-out (role matte) and a GLB from core SplatToMesh at 256 (role mesh, the desktop drag view). The server compares the sweep with the cut-out photo (silhouette overlap and colour correlation, the GPU test's measure) to find the photo's front yaw and distance: TripoSplat drops its own camera estimate and puts each subject in a pose of its own (the test found yaw 125, 75 and 90 on three photos). GPU test (RTX 5090): cut-out 0.8-1.3 s, TripoSplat 1.0 + 18-19.4 + 0.4 s, .spz save under 0.05 s, 48 frames at 512 px 20-37 s, mesh 0.4-0.5 s; about 8.7 GiB peak."},{@@ -24073,7 +24073,7 @@"customNodes": [],"vramGb": 32,"license": "Qwen Research License Agreement (Qwen-Image 2.1, Qwen3-VL 8B encoder, VAE): NON-COMMERCIAL, research and evaluation only; the AnyAngle LoRA (lilylilith/QI_2.1_AnyAngle) Apache-2.0",- "validated": false,+ "validated": true,"notes": "Step 2 of Any Angle, one job per angle. The saved .spz goes in like any input (splatFile) and Load3D reads it without the browser: its image entry points at the photo (the provider fills it), then File3DToSplat. CreateCameraInfo orbit takes the camera Fuobe works out (the photo's measured front view plus the preset's turn, height and distance; a close-up aims at the face's height), RenderSplat renders it at the photo's shape (up to 2048 px, black background). Qwen-Image 2.1 int8 + the AnyAngle LoRA at 1.0, loaded here (one model loader, so no request LoRA lands on another), TextEncodeQwenImage21 with the LoRA's own prompt \"Change the camera angle from <image2> to <image1>.\", image 1 the original photo, image 2 the render, resolution 1024 (about 1 MP out: 1184x896 from a 1536x1152 photo), KSampler 25 steps, cfg 1, euler, simple, seed 46. GPU test (RTX 5090): reload + render 2.3 s (a rebuild would be about 20 s), text encode 5.4 s, sampler 22.6 s, about 30 s an angle, peak 28.4-29.2 GiB (card total, with the desktop): vramGb 32, since a 24 GB card has no room to spare. Tested against the alternatives: the other image order gives back the original angle, cfg 3 is 5x slower and no better, bf16 is 2x slower, the photo behind the render adds a ghost second person, grey is no better than black."},{