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.

Apps: Body Double, a 3D body for every person, live, from a photo or from a clip

Adarsh47f441d1eb87
diff --git a/CREDITS.md b/CREDITS.md
index 8f7247fb..029c0b97 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -10,7 +10,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, Open-H3 Regenerate, H3 Character Swap · Relay 2.0, Group swap, Scene edit, 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**: Fuobe Character swap, MiniMax H3, MiniMax H3 · FastH3 V2, MiniMax H3 · FastH3 Trim, 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
- **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)
@@ -30,7 +30,7 @@ Some licences ask the app that runs their model to say so.
## Open model licences
-223 models, one row for each set of open weights Fuobe runs: 97 allow commercial use, 47 with conditions, 52 are non-commercial and 29 aren't available everywhere.
+228 models, one row for each set of open weights Fuobe runs: 98 allow commercial use, 48 with conditions, 55 are non-commercial and 29 aren't available everywhere.
| Model | By | Kind | Licence | Note |
| --- | --- | --- | --- | --- |
@@ -56,6 +56,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 |
| 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 |
@@ -138,8 +139,10 @@ Some licences ask the app that runs their model to say so.
| H3 Character Swap · Relay 2.0 | MiniMax × Akatz Labs | Video | [MiniMax H3 Community License (H3 Ref2VA, its video and audio VAEs, the packaged Qwen3-VL text encoder, Akatz Labs' Character Swap LoRA): 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 · SAM 3.1 under Meta's SAM License (commercial use allowed under its terms) · FL2V Turbo LoRA Apache-2.0 at the pinned revision · H3 Relay nodes GPL-3.0 (Sendy Software LLC and contributors; vendored Context Loop and Spectrum GPL-3.0); the graph is H3 Relay's example workflow (GPL-3.0 repository)](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Not available in the US, the EU, the UK and South Korea |
| Group swap | MiniMax × Openjutsu | Video | [MiniMax H3 Community License (H3 Ref2VA, its VAEs, the packaged Qwen3-VL text encoder, the DMAD LoRA derived from it): 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 8B describer Apache-2.0 · SAM 3.1 under Meta's SAM License · graphs from D3voz/openjutsu (MIT) · Context Loop nodes GPL-3.0, Fantastic PromptBuilder MIT, H3 OneClick Swap MIT](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Not available in the US, the EU, the UK and South Korea |
| Scene edit | MiniMax × Openjutsu | Video | [MiniMax H3 Community License (H3 Ref2VA, its VAEs, the packaged Qwen3-VL text encoder, the DMAD LoRA derived from it): 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 8B describer Apache-2.0 · SAM 3.1 under Meta's SAM License · graphs from D3voz/openjutsu (MIT) · Context Loop nodes GPL-3.0, Fantastic PromptBuilder MIT, H3 OneClick Swap MIT](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Not available in the US, the EU, the UK and South Korea |
+| Fuobe Reshoot | MiniMax × Viggle | Video | [Viggle Remake weights: MiniMax H3 Community License (a Model Derivative of MiniMax H3, © Viggle AI); show "MiniMax H3" on the product's interface; commercial use above US$20M yearly revenue needs MiniMax's written authorization · ComfyUI-Viggle-Remake nodes Apache-2.0 · MiniMax H3 text encoder and VAEs under the MiniMax H3 Community License · Qwen3-VL 8B describer Apache-2.0](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Conditions apply |
| From picture · first frame | Black Forest Labs × Openjutsu | Image | [FLUX Kommunity License v1.0 (FLUX 3 Image Klein and its prompt upsampler) · Qwen3-VL 4B Apache-2.0 base · flux2-vae Apache-2.0](https://huggingface.co/black-forest-labs/flux-3-image-klein) | Conditions apply |
| From picture · what happens | Qwen × Openjutsu | Text | [Qwen3-VL 8B: Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | |
+| Describe my character | Qwen × Openjutsu | Text | [Qwen3-VL 8B: Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | |
| From picture | MiniMax × Openjutsu | Video | [MiniMax H3 Community License (H3 Ref2VA, its VAEs, the packaged Qwen3-VL text encoder, the DMAD LoRA derived from it): 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 8B describer Apache-2.0 · SAM 3.1 under Meta's SAM License · graphs from D3voz/openjutsu (MIT) · Context Loop nodes GPL-3.0, Fantastic PromptBuilder MIT, H3 OneClick Swap MIT · SolarRenderer LoRAs (rank 64): MiniMax H3 Community License; SolarRenderer code Apache-2.0 · Metric3D BSD-2-Clause](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Not available in the US, the EU, the UK and South Korea |
| MiniMax H3 | MiniMax × Openjutsu | Video | [MiniMax H3 Community License (H3 Ref2VA, its VAEs, the packaged Qwen3-VL text encoder, the DMAD LoRA derived from it): 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 8B describer Apache-2.0 · SAM 3.1 under Meta's SAM License · graphs from D3voz/openjutsu (MIT) · Context Loop nodes GPL-3.0, Fantastic PromptBuilder MIT, H3 OneClick Swap MIT · Metric3D BSD-2-Clause](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Not available in the US, the EU, the UK and South Korea |
| Fix faces | MiniMax × Openjutsu | Video | [MiniMax H3 Community License (H3 Ref2VA, its VAEs, the packaged Qwen3-VL text encoder, the DMAD LoRA derived from it): 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 8B describer Apache-2.0 · SAM 3.1 under Meta's SAM License · graphs from D3voz/openjutsu (MIT) · Context Loop nodes GPL-3.0, Fantastic PromptBuilder MIT, H3 OneClick Swap MIT · YOLO face/person weights AGPL-3.0 · SAM ViT-B Apache-2.0 · InsightFace buffalo_l (identity tracking): NON-COMMERCIAL research only](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE) | Non-commercial, Not available in the US, the EU, the UK and South Korea |
@@ -216,6 +219,8 @@ Some licences ask the app that runs their model to say so.
| Qwen-Image 2.1 Steam It | Alibaba Qwen | Image | [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; SAM 3.1 under Meta's SAM License (commercial use allowed under its terms); AusBoss nodes MIT](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
| Z-Image Turbo · Grid | Alibaba Tongyi | Image | [Apache-2.0 (Z-Image Turbo)](https://spdx.org/licenses/Apache-2.0.html) | |
| Z-Image Turbo · Soul Cast sheet | Alibaba Tongyi | Image | [Apache-2.0 (Z-Image Turbo)](https://spdx.org/licenses/Apache-2.0.html) | |
+| Body Double | Naturalpad InstantHMR + Meta MHR | Image | [InstantHMR weights SAM License: the medium file is NON-COMMERCIAL (some training images are research-only); instanthmr_medium_commercial is the commercial-use variant. ComfyUI-InstantHMR code Apache-2.0; MHR body model Apache-2.0; RT-DETR v4 Apache-2.0; SAM 3D Body (its rig, for the skinned GLB) SAM License, commercial use allowed under its terms; VideoHelperSuite GPL-3.0 code](https://huggingface.co/Comfy-Org/sam-3d-body) | Non-commercial |
+| Body Double motion capture | Naturalpad InstantHMR + Meta MHR | Video | [InstantHMR weights SAM License: the medium file is NON-COMMERCIAL (some training images are research-only); instanthmr_medium_commercial is the commercial-use variant. ComfyUI-InstantHMR code Apache-2.0; MHR body model Apache-2.0; RT-DETR v4 Apache-2.0; SAM 3D Body (its rig, for the skinned GLB) SAM License, commercial use allowed under its terms; VideoHelperSuite GPL-3.0 code](https://huggingface.co/Comfy-Org/sam-3d-body) | Non-commercial |
| Pixelate faces | Meta SAM 3.1 + ComfyUI | Image | [Meta SAM License (SAM 3.1: royalty-free, commercial use allowed; attribution + acceptable-use terms)](https://huggingface.co/Comfy-Org/sam3.1) | Conditions apply |
| Find watermarks | Qwen3-VL + ComfyUI | Text | [Qwen3-VL 8B Apache-2.0; ComfyUI-Qwen-Watermark nodes MIT](https://spdx.org/licenses/Apache-2.0.html) | |
| Watermark Remover | Qwen-Image 2.1 + ComfyUI | Image | [Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Qwen3-VL 8B Apache-2.0; SAM ViT-B (segment-anything) Apache-2.0; ComfyUI-Qwen-Watermark nodes MIT](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Non-commercial |
@@ -296,7 +301,8 @@ The custom nodes Fuobe's workflows install, with their licences.
| [kandinsky6-sr](https://github.com/kandinskylab/kandinsky-6-sr/tree/b15e2aac526519c51f59dfec2b848355bb8902de/comfyui) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | Kandinsky VSR video upscaling (2x, 2.25x, 4x); Apache-2.0 code. The Kandinsky VSR weights are MIT |
| [ComfyUI-Qwen-Watermark](https://github.com/overflowofedge/ComfyUI-Qwen-Watermark/tree/eef829d34d6e9d0d2ae0c1386fab7371a864cf34) | [MIT](https://spdx.org/licenses/MIT.html) | The Watermark Remover's nodes: find the marks (Qwen3-VL 8B, Apache-2.0), outline stickers (SAM ViT-B, Apache-2.0), repair and check the result; MIT code. The Qwen-Image 2.1 weights the repair runs are non-commercial |
| [h3_character_swap](https://github.com/akatz-labs/h3-character-swap-tool/tree/0670e4fdf95adf2262caa4b81afed2a9c4ae4b7b/worker_nodes/h3_character_swap) | [GPL-3.0](https://spdx.org/licenses/GPL-3.0-only.html) | MiniMax H3 character swap nodes (Akatz Labs); GPL-3.0 code, a modified NVIDIA INT8 kernel inside is Apache-2.0. The MiniMax H3 weights it runs leave out the US, the EU, the UK and South Korea |
-| [h3-relay](https://github.com/akatz-ai/h3-relay/tree/e2a7665b6eb8ea37a88c0de2c9c6b69a8f7c9220) | [GPL-3.0](https://spdx.org/licenses/GPL-3.0-only.html) | H3 Relay 2.0 (Sendy Software LLC and contributors); GPL-3.0 code, vendored Context Loop and Spectrum GPL-3.0. Opt-in (H3_RELAY=1): it registers HTTP routes when it loads |
+| [h3-relay](https://github.com/akatz-ai/h3-relay/tree/e2a7665b6eb8ea37a88c0de2c9c6b69a8f7c9220) | [GPL-3.0](https://spdx.org/licenses/GPL-3.0-only.html) | H3 Relay 2.0 (Sendy Software LLC and contributors); GPL-3.0 code, vendored Context Loop and Spectrum GPL-3.0. Opt-in: it registers HTTP routes when it loads |
+| [ComfyUI-Viggle-Remake](https://huggingface.co/Viggle/Viggle-Remake/tree/21665fa7a1e038e0a5312fb15f37b18d0f06f117/comfyui/ComfyUI-Viggle-Remake) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | Viggle Remake's nodes (Viggle AI): the clip, the painted frames and the soundtrack as MiniMax H3 conditioning, keyframes pinned at real frames; Apache-2.0 code. Powered by Viggle Remake (https://huggingface.co/Viggle/Viggle-Remake). The weights it runs are under the MiniMax H3 Community License |
| [ComfyUI-MiniMaxH3-Context-Loop](https://github.com/ethanfel/ComfyUI-MiniMaxH3-Context-Loop/tree/43afeffcc570beb5f7382593e79e4b211c7e02f6) | [GPL-3.0](https://spdx.org/licenses/GPL-3.0-only.html) | MiniMax H3 Context Loop (NikoDemon80, Ethanfel): long H3 edits clip by clip, each continuing from the last; GPL-3.0 code. It registers local HTTP routes when it loads |
| [ComfyUI-Fantastic-MiniMaxH3-PromptBuilder](https://github.com/Adudeguyman/ComfyUI-Fantastic-MiniMaxH3-PromptBuilder/tree/22e719fe89336c628383363182a4da3cb58d4f9b) | [MIT](https://spdx.org/licenses/MIT.html) | The masked edit latent the H3 edits start from (source, mask and sound); MIT code |
| [comfyui-h3-oneclick-swap](https://github.com/D3voz/comfyui-h3-oneclick-swap/tree/e44a56e92920000e675d14be484aea0d7498d63e) | [MIT](https://spdx.org/licenses/MIT.html) | D3voz's swap, scene edit and face section nodes (plans, role masks, grey mannequins); MIT code. Fuobe applies a patch that words its H3 prompts positively |
@@ -318,6 +324,7 @@ The custom nodes Fuobe's workflows install, with their licences.
| [Comfyui_Minimax_h3_latent_Upscaler](https://github.com/LBH-123-AI/Comfyui_Minimax_h3_latent_Upscaler/tree/40316cf008b2fd8663263270669eb4da23f89d2c) | [MIT](https://spdx.org/licenses/MIT.html) | LBH-123-AI's H3 latent upscaler nodes (the Open-H3 Regenerate nodes call them by name); MIT code, copyright (c) 2026 LBH-123-AI. Its upscaler weights are Apache-2.0 |
| [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/jtydhr88/ComfyUI-InstantHMR/tree/36d85573438e5de5d2fe63ba2dbca927c6a16c9b) | [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) | jtydhr88's InstantHMR nodes; 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_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 |
| [viggle_turbo](https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/tree/009a44a895ef85f7e643c80fdca9543795248867/comfyui) | [Qwen Research License](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) | Viggle's ComfyUI nodes for its Qwen-Image 2.1 turbo LoRA (the loader that reads the LoRA's strength from its metadata, and the 6-step schedule); they ship in the model repo, a Qwen-Image 2.1 derivative under the same research licence |
diff --git a/README.md b/README.md
index a97fd880..198b978c 100644
--- a/README.md
+++ b/README.md
@@ -96,6 +96,7 @@ Real covers from the galleries. Every clip and still below was rendered locally
- **Kinetic Motion.** Motion graphics in your brand, set in your exact words and drawn live in the browser, with presets, timing and versions.
- **Marketing templates.** Ten text templates drawn live in your brand, next to product shots, UGC, TikTok, ads and posters.
- **New apps on your GPU:** Outfit Swap, Head Swap, Restore Photo, Steam It, Tap to Recolor, Photo to 3D and Any Angle, plus MiniMax H3 motion transfer.
+- **Body Double:** a 3D body for every person in a photo, motion capture from a clip as an animated, skinned GLB, and a live 3D mirror of your camera that runs in the browser with no GPU.
<br>
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 50184df2..a503c2ec 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -32,6 +32,9 @@ const COMFYUI_DIR = process.env.COMFYUI_DIR || '/home/user/ComfyUI';
// Which input of which loader holds a model file, and the models/<folder> it is read from.
export const LOADER_FOLDERS = {
UNETLoader: { unet_name: 'diffusion_models' },
+ // Body Double: InstantHMR and the SAM 3D Body rig its skinned GLB is built on (models/detection).
+ InstantHMRLoader: { model_file: 'detection' },
+ SAM3DBody_Loader: { model_file: 'detection' },
CheckpointLoaderSimple: { ckpt_name: 'checkpoints' },
VAELoader: { vae_name: 'vae' },
CLIPLoader: { clip_name: 'text_encoders' },
@@ -132,6 +135,8 @@ export const BINDING_KEYS = new Set([
'image5', 'image6', 'image7', 'image8', 'image9', 'image10',
'width', 'height', 'frames', 'fps', 'seed', 'steps', 'cfg', 'guidance', 'denoise', 'shift',
'loraHigh', 'loraLow', 'lora', 'loraStrength', 'upscaleModel', 'scale', 'duration', 'lyrics', 'tags',
+ // Body Double: the look (render style, mesh shader, opacity over the picture) and how many people a photo may hold
+ 'renderStyle', 'shader', 'opacity', 'maxPeople',
// library extensions
'padLeft', 'padTop', 'padRight', 'padBottom', 'cameraMotion', 'multiplier', 'bpm', 'filenamePrefix',
// comfyui-oss-2 additions (see library.spec.mjs header)
diff --git a/scripts/comfy/hand-built/body-double-clip-instanthmr.json b/scripts/comfy/hand-built/body-double-clip-instanthmr.json
new file mode 100644
index 00000000..983b8314
--- /dev/null
+++ b/scripts/comfy/hand-built/body-double-clip-instanthmr.json
@@ -0,0 +1,245 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 24,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 360,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None"
+ },
+ "_meta": {
+ "title": "Clip (24 fps, up to 15 s)"
+ }
+ },
+ "13": {
+ "class_type": "ImageScaleToMaxDimension",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "upscale_method": "area",
+ "largest_size": 960
+ },
+ "_meta": {
+ "title": "Long side 960 px"
+ }
+ },
+ "2": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "rt_detr_v4-x-hgnet_fp16.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "RT-DETR v4 person detector"
+ }
+ },
+ "3": {
+ "class_type": "RTDETR_detect",
+ "inputs": {
+ "model": [
+ "2",
+ 0
+ ],
+ "image": [
+ "13",
+ 0
+ ],
+ "threshold": 0.5,
+ "class_name": "person",
+ "max_detections": 1
+ },
+ "_meta": {
+ "title": "Find the performer"
+ }
+ },
+ "4": {
+ "class_type": "InstantHMRLoader",
+ "inputs": {
+ "model_file": "instanthmr_medium.safetensors"
+ },
+ "_meta": {
+ "title": "InstantHMR"
+ }
+ },
+ "5": {
+ "class_type": "InstantHMRPredict",
+ "inputs": {
+ "instanthmr_model": [
+ "4",
+ 0
+ ],
+ "image": [
+ "13",
+ 0
+ ],
+ "bboxes": [
+ "3",
+ 0
+ ],
+ "fov": 0.0,
+ "batch_size": 32
+ },
+ "_meta": {
+ "title": "One MHR body per frame"
+ }
+ },
+ "14": {
+ "class_type": "SAM3DBody_Smooth",
+ "inputs": {
+ "mhr_pose_data": [
+ "5",
+ 0
+ ],
+ "strength": 1.0,
+ "method": "gaussian",
+ "window": 7,
+ "rotation_threshold_degrees": 30.0
+ },
+ "_meta": {
+ "title": "Steady motion"
+ }
+ },
+ "6": {
+ "class_type": "SAM3DBody_Render",
+ "inputs": {
+ "pose_data": [
+ "14",
+ 0
+ ],
+ "width": 0,
+ "height": 0,
+ "background": [
+ "13",
+ 0
+ ],
+ "render_style": "mesh",
+ "render_style.shader": "normals",
+ "render_style.shader.rainbow_tilt_z": -35.0,
+ "render_style.shader.rainbow_tilt_x": 0.0,
+ "render_style.opacity": 0.92,
+ "render_style.person_palette_falloff": 0.6,
+ "render_style.region": "full_body",
+ "render_style.radius_m": 0.022,
+ "render_style.hand_style": "dwpose",
+ "render_style.face_style": "disabled"
+ },
+ "_meta": {
+ "title": "Body over the clip (the look)"
+ }
+ },
+ "7": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "6",
+ 0
+ ],
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "fuobe/body-double",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": false,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true
+ },
+ "_meta": {
+ "title": "Result"
+ }
+ },
+ "8": {
+ "class_type": "SAM3DBody_Render",
+ "inputs": {
+ "pose_data": [
+ "14",
+ 0
+ ],
+ "width": 0,
+ "height": 0,
+ "render_style": "scail",
+ "render_style.radius_m": 0.022,
+ "render_style.hand_style": "dwpose",
+ "render_style.face_style": "disabled",
+ "render_style.person_palette_falloff": 0.6
+ },
+ "_meta": {
+ "title": "SCAIL pose on black"
+ }
+ },
+ "9": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "fuobe/body-double-pose",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": false,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true
+ },
+ "_meta": {
+ "title": "Pose video"
+ }
+ },
+ "10": {
+ "class_type": "SAM3DBody_Loader",
+ "inputs": {
+ "model_file": "sam_3d_body_dinov3_int8_convrot.safetensors"
+ },
+ "_meta": {
+ "title": "MHR rig for the skinned GLB"
+ }
+ },
+ "11": {
+ "class_type": "BuildPoseFile",
+ "inputs": {
+ "pose_data": [
+ "14",
+ 0
+ ],
+ "sam3d_body_model": [
+ "10",
+ 0
+ ],
+ "format": "glb",
+ "format.mesh_style": "body_mesh",
+ "format.mesh_style.bone_vis": "off",
+ "format.mesh_style.shader": "default",
+ "format.bone_smooth_window": 0,
+ "fps": 24.0,
+ "camera_translation": "absolute",
+ "track_index": -1
+ },
+ "_meta": {
+ "title": "Animated skinned body GLB"
+ }
+ },
+ "12": {
+ "class_type": "SaveGLB",
+ "inputs": {
+ "mesh": [
+ "11",
+ 0
+ ],
+ "filename_prefix": "fuobe/body-double"
+ },
+ "_meta": {
+ "title": "Motion capture"
+ }
+ }
+}
diff --git a/scripts/comfy/hand-built/body-double-photo-instanthmr.json b/scripts/comfy/hand-built/body-double-photo-instanthmr.json
new file mode 100644
index 00000000..5ed57906
--- /dev/null
+++ b/scripts/comfy/hand-built/body-double-photo-instanthmr.json
@@ -0,0 +1,27 @@
+{
+ "1": {"class_type": "LoadImage", "inputs": {"image": "input.png"}, "_meta": {"title": "Photo"}},
+ "2": {"class_type": "UNETLoader", "inputs": {"unet_name": "rt_detr_v4-x-hgnet_fp16.safetensors", "weight_dtype": "default"}, "_meta": {"title": "RT-DETR v4 person detector"}},
+ "3": {"class_type": "RTDETR_detect", "inputs": {"model": ["2", 0], "image": ["1", 0], "threshold": 0.5, "class_name": "person", "max_detections": 8}, "_meta": {"title": "Find the people"}},
+ "4": {"class_type": "InstantHMRLoader", "inputs": {"model_file": "instanthmr_medium.safetensors"}, "_meta": {"title": "InstantHMR"}},
+ "5": {"class_type": "InstantHMRPredict", "inputs": {"instanthmr_model": ["4", 0], "image": ["1", 0], "bboxes": ["3", 0], "fov": 0.0, "batch_size": 16}, "_meta": {"title": "One MHR body per person"}},
+ "6": {"class_type": "SAM3DBody_Render", "inputs": {
+ "pose_data": ["5", 0], "width": 0, "height": 0, "background": ["1", 0],
+ "render_style": "mesh",
+ "render_style.shader": "normals", "render_style.shader.rainbow_tilt_z": -35.0, "render_style.shader.rainbow_tilt_x": 0.0,
+ "render_style.opacity": 0.92, "render_style.person_palette_falloff": 0.6, "render_style.region": "full_body",
+ "render_style.radius_m": 0.022, "render_style.hand_style": "dwpose", "render_style.face_style": "disabled"
+ }, "_meta": {"title": "Bodies over the photo (the look)"}},
+ "7": {"class_type": "SaveImage", "inputs": {"images": ["6", 0], "filename_prefix": "fuobe/body-double"}, "_meta": {"title": "Result"}},
+ "8": {"class_type": "SAM3DBody_Render", "inputs": {
+ "pose_data": ["5", 0], "width": 0, "height": 0,
+ "render_style": "scail", "render_style.radius_m": 0.022, "render_style.hand_style": "dwpose", "render_style.face_style": "disabled", "render_style.person_palette_falloff": 0.6
+ }, "_meta": {"title": "SCAIL pose on black"}},
+ "9": {"class_type": "SaveImage", "inputs": {"images": ["8", 0], "filename_prefix": "fuobe/body-double-pose"}, "_meta": {"title": "Pose"}},
+ "10": {"class_type": "SAM3DBody_Loader", "inputs": {"model_file": "sam_3d_body_dinov3_int8_convrot.safetensors"}, "_meta": {"title": "MHR rig for the skinned GLB"}},
+ "11": {"class_type": "BuildPoseFile", "inputs": {
+ "pose_data": ["5", 0], "sam3d_body_model": ["10", 0],
+ "format": "glb", "format.mesh_style": "body_mesh", "format.mesh_style.bone_vis": "off", "format.mesh_style.shader": "default",
+ "format.bone_smooth_window": 0, "fps": 24.0, "camera_translation": "centered", "track_index": -1
+ }, "_meta": {"title": "Skinned body GLB"}},
+ "12": {"class_type": "SaveGLB", "inputs": {"mesh": ["11", 0], "filename_prefix": "fuobe/body-double"}, "_meta": {"title": "3D bodies"}}
+}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 28f3c8ab..4bb2d019 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -232,6 +232,7 @@ export const CUSTOM_NODE_REPOS = {
// Clean up voice (NVIDIA RE-USE): Fuobe's own pack, in this repository (comfy-nodes/ComfyUI-RE-USE), pinned at the commit
// that last changed it (tests/reuse-pack-pin.test.ts checks it). install-comfyui.sh copies it from the checkout.
'ComfyUI-RE-USE': 'https://github.com/workingprototype/Fuobe/tree/8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d/comfy-nodes/ComfyUI-RE-USE',
+ 'ComfyUI-InstantHMR': 'https://github.com/jtydhr88/ComfyUI-InstantHMR',
// Hi3D 1.0 mesh refinement (hi3d-refine, docs/research/hi3d-refine.json): T8star's nodes (MIT code, vendored Hi3D code under
// the Hi3D Open License 1.0), v0.5.1. Opt-in in install-comfyui.sh (HI3D=1): it needs an Ampere-or-newer NVIDIA GPU and
// CUDA kernels (spconv, triton), so it is not on the validation server (mesh-refine-hi3d lists it with `packs`).
@@ -307,6 +308,8 @@ export const PACK_CLASSES = {
'ComfyUI-Open-H3-Regenerate': /^OpenH3(Regen(Lora|Sigmas|PrepareDraft|Upscale|RefineLatent|FastVAEDecode|Finish)|SaveRefinedLatent|LoadRefinedLatent|VideoToPrompt)$/,
Comfyui_Minimax_h3_latent_Upscaler: /^(MinimaxH3LatentUpscaler(3D|Node2D)|MMH3(TemporalSplitParamsV10|SpatialSplitParamsV10|SplitUpscale))$/,
'ComfyUI-RE-USE': /^REUSE(Loader|Enhance)$/,
+ // Body Double: only the loader and the predictor are the pack's; the render, smoothing and GLB nodes are ComfyUI's own.
+ 'ComfyUI-InstantHMR': /^InstantHMR(Loader|Predict)$/,
// Live edit's nodes (fuobe_live.py), which Fuobe writes into custom_nodes itself.
'fuobe-live': /FuobeLive$/,
'zen-image-edit-comfyui': /^ZenImage21(AdapterLoader|TextEncode)$/,
@@ -341,6 +344,12 @@ export const PACK_CLASSES = {
// Model download locations for files that the source workflow does not annotate
// (UI templates usually carry node.properties.models; custom-node examples do not).
export const KNOWN_MODELS = {
+ // Body Double: InstantHMR medium (the pack's checkpoint: network + MHR rig), the RT-DETR v4 person detector and the SAM 3D
+ // Body int8 file whose rig the skinned GLB export reads, at the revisions read on 2026-11-08.
+ 'instanthmr_medium.safetensors': { folder: 'detection', url: 'https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium.safetensors' },
+ 'instanthmr_medium_commercial.safetensors': { folder: 'detection', url: 'https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium_commercial.safetensors' },
+ 'rt_detr_v4-x-hgnet_fp16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/RT-DETR/resolve/8d913979f84c84f155b70ee77d96571a4728430b/diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors' },
+ 'sam_3d_body_dinov3_int8_convrot.safetensors': { folder: 'detection', url: 'https://huggingface.co/Comfy-Org/sam-3d-body/resolve/7c974aea58e062252a6cb5b6f9b7f639d545b729/detection/sam_3d_body_dinov3_int8_convrot.safetensors' },
// World mode (nm10-hy-nomas-world): nynxz/Hy-Nomas, Tencent's Hy-Nomas converted for ComfyUI's core loaders, at the
// revision read on 2026-11-03. The DiT is Apache-2.0; the PixelUMM decoder is NVIDIA One-Way Noncommercial (its card).
'nomas_dit_distilled_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/nynxz/Hy-Nomas/resolve/e8ddc4bfa664d69213930552493c220c3af56f41/nomas_dit_distilled_int8_convrot.safetensors' },
@@ -6492,4 +6501,45 @@ export const SPEC = [
"every other pixel is the shot's, which removes Qwen 2.1's colour and detail drift over the whole picture. pasteBack false returns the whole swap (the switch is lazy, SAM does not run). " +
"No head found: the shot comes back unchanged. BFS's own workflow runs the Pruna 8-step LoRA with deis_2m (RES4LYF); this graph keeps core samplers. RTX 5090: about 130 s a photo warm, about 250 s when the models load, peak about 28 GB.",
},
+ // Body Double (app-body-double): InstantHMR (ComfyUI-InstantHMR) recovers every person's MHR body; ComfyUI's own SAM 3D
+ // Body nodes draw it over the picture, render the SCAIL pose and export a skinned GLB.
+ {
+ id: 'body-double-photo-instanthmr',
+ title: 'Body Double photo (InstantHMR: every person\'s 3D body, a pose render and a skinned GLB)',
+ capability: 'body-capture',
+ handBuilt: 'hand-built/body-double-photo-instanthmr.json',
+ packs: ['ComfyUI-InstantHMR'],
+ bindings: { image: [b('1', 'image')], renderStyle: [b('6', 'render_style')], shader: [b('6', 'render_style.shader')], opacity: [b('6', 'render_style.opacity')], maxPeople: [b('3', 'max_detections')] },
+ defaults: { renderStyle: 'mesh', shader: 'normals', opacity: 0.92, maxPeople: 8 },
+ outputs: [{ node: '7', kind: 'image' }, { node: '12', kind: 'model3d', role: 'body' }, { node: '9', kind: 'image', role: 'pose' }],
+ limits: { maxWidth: 4096, maxHeight: 4096 },
+ vramGb: 4,
+ license: 'InstantHMR weights SAM License: the medium file is NON-COMMERCIAL (some training images are research-only); instanthmr_medium_commercial is the commercial-use variant. ComfyUI-InstantHMR code Apache-2.0; MHR body model Apache-2.0; RT-DETR v4 Apache-2.0; SAM 3D Body (its rig, for the skinned GLB) SAM License, commercial use allowed under its terms; VideoHelperSuite GPL-3.0 code',
+ notes:
+ 'RT-DETR v4 x (fp16, class person, threshold 0.5, up to maxPeople boxes) -> InstantHMR medium (HGNetV2-B4, 288 px square crops 1.2x the box, ' +
+ 'focal 1.05x the image diagonal) -> one MHR body per person (pose, shape, hands, 70 keypoints, 18,439-vertex mesh). No person found: the whole frame is one person. ' +
+ 'The look is one SAM3DBody_Render: renderStyle mesh with shader normals (Holo, default), default (Clay), rainbow (Thermal), depth (X-ray), opacity over the photo; ' +
+ 'renderStyle scail draws the SCAIL skeleton over the photo instead. Every style\'s dotted keys stay in the graph (ComfyUI ignores the ones a style does not use). ' +
+ 'Role pose: the SCAIL render on black, the input SCAIL-style motion models read. Role body: BuildPoseFile body_mesh with the SAM 3D Body int8 rig: one skinned mesh per person ' +
+ '(127 joints, 72 face morph targets), centred, about 17 MB. CPU only: about 3 s a photo once loaded; the network itself is about 1 ms a person on a desktop GPU.',
+ },
+ {
+ id: 'body-double-clip-instanthmr',
+ title: 'Body Double clip (InstantHMR motion capture: the body over every frame, a pose video and an animated skinned GLB)',
+ capability: 'body-capture-video',
+ handBuilt: 'hand-built/body-double-clip-instanthmr.json',
+ packs: ['ComfyUI-InstantHMR', 'ComfyUI-VideoHelperSuite'],
+ bindings: { video: [b('1', 'video')], frames: [b('1', 'frame_load_cap')], renderStyle: [b('6', 'render_style')], shader: [b('6', 'render_style.shader')], opacity: [b('6', 'render_style.opacity')] },
+ defaults: { frames: 360, renderStyle: 'mesh', shader: 'normals', opacity: 0.92 },
+ outputs: [{ node: '7', kind: 'video' }, { node: '12', kind: 'model3d', role: 'body' }, { node: '9', kind: 'video', role: 'pose' }],
+ limits: { maxWidth: 4096, maxHeight: 4096 },
+ vramGb: 6,
+ license: 'InstantHMR weights SAM License: the medium file is NON-COMMERCIAL (some training images are research-only); instanthmr_medium_commercial is the commercial-use variant. ComfyUI-InstantHMR code Apache-2.0; MHR body model Apache-2.0; RT-DETR v4 Apache-2.0; SAM 3D Body (its rig, for the skinned GLB) SAM License, commercial use allowed under its terms; VideoHelperSuite GPL-3.0 code',
+ notes:
+ 'VHS_LoadVideo at 24 fps, up to frames (360 = 15 s), scaled to 960 px on the long side -> RT-DETR v4 (the performer: the best person box per frame) -> InstantHMR medium -> ' +
+ 'SAM3DBody_Smooth (gaussian, window 7, flips over 30 degrees kept) -> the same look render as the photo graph over every frame (H.264, metadata off). ' +
+ 'Role pose: the SCAIL pose video on black, ready to drive a SCAIL-style motion transfer. Role body: BuildPoseFile body_mesh, an animated skinned GLB ' +
+ '(127 joints, 72 face morphs, 24 fps, camera translation absolute) for Blender, Unreal or any glTF tool. The clip\'s sound is not carried. ' +
+ 'CPU only: about 95 s for 4 s of video including the first model loads.',
+ },
];
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 102456ca..3296af9f 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -41,6 +41,18 @@
"error": null,
"at": "2026-10-16T20:57:20.767Z"
},
+ "body-double-clip-instanthmr": {
+ "sha256": "74a8844f3f223146b983d3ab2e3f487e6e7c7237a03bb5a9a1da80499c587d3b",
+ "validated": true,
+ "error": null,
+ "at": "2026-11-08T02:22:01.036Z"
+ },
+ "body-double-photo-instanthmr": {
+ "sha256": "48d218bf70b61f843dbeb1e1065e64d96ca5e7770c9295e088abc8033bbef55c",
+ "validated": true,
+ "error": null,
+ "at": "2026-11-08T02:22:00.839Z"
+ },
"captions-burnin": {
"sha256": "8bb4d7bca5145d94ee1d509e50e23ef40e4cd21cb7c152bbba32751eca4ea013",
"validated": true,
diff --git a/scripts/lib/worker-catalog.mjs b/scripts/lib/worker-catalog.mjs
index eb15939e..293c0f0c 100644
--- a/scripts/lib/worker-catalog.mjs
+++ b/scripts/lib/worker-catalog.mjs
@@ -251,6 +251,8 @@ export const FREE_TEXT_INPUTS = [
"RTXTrueHDR.output_colorspace",
"RTXVideoFrameGeneration.mode",
"RTXVideoSuperResolution.quality",
+ // Body Double: the mesh shader is one of SAM3DBody_Render's own choices (the look), never a path.
+ "SAM3DBody_Render.render_style.shader",
"SAM3_Detect.negative_coords",
"SAM3_Detect.positive_coords",
"VHS_VideoCombine.profile",
diff --git a/src/app/(studio)/apps/[id]/page.tsx b/src/app/(studio)/apps/[id]/page.tsx
index 93a6d655..a1319e82 100644
--- a/src/app/(studio)/apps/[id]/page.tsx
+++ b/src/app/(studio)/apps/[id]/page.tsx
@@ -6,6 +6,7 @@ import { CleanVoiceTool } from "@/components/audio-tools/clean-voice-tool";
import { AnyAngleGate } from "@/components/any-angle/any-angle-tool";
import { RelightGate } from "@/components/relight/relight-gate";
import { RecolorTool } from "@/components/recolor/recolor-tool";
+import { BodyDoubleTool } from "@/components/body-double/body-double-tool";
import { WatermarkTool } from "@/components/watermark/watermark-tool";
import { APPS, getModel, getPreset } from "@/lib/catalog";
import { withRecipe } from "@/lib/catalog/preset-recipes";
@@ -35,6 +36,8 @@ async function AppStudio({ params }: { params: PageProps<"/apps/[id]">["params"]
// have passed their check on a GPU; the owner gets it before then.
if (preset.tool === "any-angle") return <AnyAngleGate live={anyAngleToolLive()} app={{ name: preset.name }} />;
if (preset.tool === "recolor") return <RecolorTool app={{ name: preset.name, description: preset.description }} />;
+ // Body Double: Live (in the browser, no GPU) is open to everyone; a photo or a clip runs on a GPU.
+ if (preset.tool === "body-double") return <BodyDoubleTool app={{ name: preset.name, description: preset.description }} />;
// The Watermark Remover: scan, keep what you like, remove the rest (src/components/watermark).
if (preset.tool === "watermark") return <WatermarkTool app={{ name: preset.name, description: preset.description }} cover={presetCover(preset.id)} />;
// The app opens on the model its preview was made with, its own route one pick away.
diff --git a/src/components/body-double/body-double-tool.tsx b/src/components/body-double/body-double-tool.tsx
new file mode 100644
index 00000000..59562e1d
--- /dev/null
+++ b/src/components/body-double/body-double-tool.tsx
@@ -0,0 +1,398 @@
+"use client";
+
+import { Box, ChevronRight, Download, Film, ImagePlus, Library, Loader2, PersonStanding, Upload, X } from "lucide-react";
+import Link from "next/link";
+import { useSearchParams } from "next/navigation";
+import { useCallback, useId, useRef, useState } from "react";
+import { toast } from "sonner";
+import { Button } from "@/components/ui/button";
+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+import { Segmented } from "@/components/faceless/controls";
+import { Panel, ToolHero, ToolShell } from "@/components/av/tool-shell";
+import { fileToSlot, kindOfFile, LibraryGrid, type SlotValue } from "@/components/studio/media-slot";
+import { ModelViewer } from "@/components/studio/result-media";
+import { RunPlaceChip, useOpenRunPlace } from "@/components/studio/run-place-chip";
+import { askToSignUp, useAskBeforeUpload, useCreateGeneration, useGenerations, useIsGuest } from "@/lib/api";
+import { getModel } from "@/lib/catalog";
+import { BODY_DOUBLE, BODY_LOOKS, type BodyLookId, bodyDoubleRequest, bodyLook } from "@/lib/catalog/body-double";
+import type { Generation, GenerationRequest, OutputFile } from "@/lib/catalog/types";
+import { downloadHref } from "@/lib/library";
+import { toastError } from "@/lib/refusals";
+import { postFile } from "@/lib/upload";
+import { cn } from "@/lib/utils";
+import { LiveView } from "./live-view";
+
+type Mode = "live" | "photo" | "clip";
+const SUBTITLE = "A 3D body for every person: live from your camera, from a photo, or from a clip as motion capture you can animate with.";
+const EXAMPLES: Record<"photo" | "clip", { src: string; name: string; label: string }> = {
+ photo: { src: "/previews/presets/ba/1280/app-outfit-shot-after.jpg", name: "body-double-example.jpg", label: "Try it on this photo" },
+ clip: { src: "/previews/presets/app-dance.mp4", name: "body-double-example.mp4", label: "Try it on this dance" },
+};
+
+function AddMedia({ mode, onPick }: { mode: "photo" | "clip"; onPick: (v: SlotValue) => void }) {
+ const [over, setOver] = useState(false);
+ const [picking, setPicking] = useState(false);
+ const askFirst = useAskBeforeUpload();
+ const inputId = useId();
+ const kind = mode === "photo" ? "image" : "video";
+ const example = EXAMPLES[mode];
+ const take = (f: File | undefined) => {
+ if (!f || askFirst()) return;
+ if (kindOfFile(f) !== kind) return void toast(mode === "photo" ? "Photos only here. For a clip, open Clip." : "Clips only here. For a photo, open Photo.");
+ void fileToSlot(f, (v) => v && onPick(v), kind);
+ };
+ return (
+ <div
+ className={cn(
+ "flex flex-col items-center justify-center gap-3 rounded-2xl border-2 border-dashed border-border-strong bg-background px-4 py-10 text-center transition-colors",
+ over && "border-primary bg-brand-faint",
+ )}
+ onDragOver={(e) => {
+ e.preventDefault();
+ setOver(true);
+ }}
+ onDragLeave={() => setOver(false)}
+ onDrop={(e) => {
+ e.preventDefault();
+ setOver(false);
+ take(e.dataTransfer.files?.[0]);
+ }}
+ >
+ <span className="grid size-12 place-items-center rounded-2xl bg-brand-faint text-brand-text">{mode === "photo" ? <ImagePlus className="size-5" /> : <Film className="size-5" />}</span>
+ <div>
+ <p className="text-[15px] font-medium">{mode === "photo" ? "Add a photo" : "Add a clip"}</p>
+ <p className="mt-1 text-[13px] text-muted-foreground">
+ {mode === "photo" ? "Everyone in full view gets a body, hands and pose included" : `One performer, up to ${BODY_DOUBLE.maxClipSeconds} seconds: dance, walk, sport`}
+ </p>
+ </div>
+ <div className="flex flex-wrap items-center justify-center gap-1.5">
+ <Button size="lg" className="rounded-full" onClick={() => askFirst() || document.getElementById(inputId)?.click()}>
+ <Upload className="size-4" /> Upload
+ </Button>
+ <Popover open={picking} onOpenChange={setPicking}>
+ <PopoverTrigger asChild>
+ <Button variant="ghost" size="lg" className="rounded-full">
+ <Library className="size-4" /> From your Library
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent className="w-[min(92vw,360px)] p-2" collisionPadding={12}>
+ <p className="px-1 pb-2 text-[13px] font-medium">From your library</p>
+ {picking && (
+ <LibraryGrid
+ kinds={[kind]}
+ onPick={(v) => {
+ onPick(v);
+ setPicking(false);
+ }}
+ />
+ )}
+ </PopoverContent>
+ </Popover>
+ </div>
+ <button
+ type="button"
+ onClick={() => onPick({ ref: "", preview: example.src, kind, name: example.name })}
+ className="mt-1 flex items-center gap-3 rounded-xl border bg-card p-1.5 pr-4 text-left outline-none transition hover:border-border-strong focus-visible:ring-2 focus-visible:ring-ring"
+ >
+ {mode === "photo" ? (
+ // eslint-disable-next-line @next/next/no-img-element
+ <img src={example.src} alt="" width={64} height={48} className="h-12 w-16 rounded-lg object-cover" />
+ ) : (
+ <video src={example.src} muted playsInline preload="metadata" className="h-12 w-16 rounded-lg object-cover" />
+ )}
+ <span className="block text-[13px] font-medium">{example.label}</span>
+ </button>
+ <input
+ id={inputId}
+ type="file"
+ accept={mode === "photo" ? "image/png,image/jpeg,image/webp" : "video/mp4,video/quicktime,video/webm"}
+ hidden
+ onChange={(e) => {
+ take(e.target.files?.[0]);
+ e.target.value = "";
+ }}
+ />
+ </div>
+ );
+}
+
+function LookPicker({ value, onChange }: { value: BodyLookId; onChange: (v: BodyLookId) => void }) {
+ return (
+ <div className="space-y-2">
+ <div className="flex flex-wrap gap-1.5" role="radiogroup" aria-label="Look">
+ {BODY_LOOKS.map((l) => (
+ <button
+ key={l.value}
+ type="button"
+ role="radio"
+ aria-checked={value === l.value}
+ onClick={() => onChange(l.value)}
+ className={cn(
+ "h-8 rounded-full border px-3 text-[13px] outline-none transition focus-visible:ring-2 focus-visible:ring-ring",
+ value === l.value ? "border-foreground bg-foreground text-background" : "bg-background text-muted-foreground hover:text-foreground",
+ )}
+ >
+ {l.label}
+ </button>
+ ))}
+ </div>
+ <p className="text-[12px] text-muted-foreground">{bodyLook(value).hint}</p>
+ </div>
+ );
+}
+
+/**
+ * Body Double: Live (the camera, or a sample clip, in this browser), Photo (every person's body) and Clip (motion capture).
+ * Photo and Clip are runs on the open engine (InstantHMR); each returns the body drawn over the input in the picked look,
+ * a skinned GLB (animated for a clip) and the pose render.
+ */
+export function BodyDoubleTool({ app }: { app: { name: string; description: string } }) {
+ // ?mode=photo or ?mode=clip (the GPU board's links) opens on that mode.
+ const asked = useSearchParams().get("mode");
+ const [mode, setMode] = useState<Mode>(asked === "photo" || asked === "clip" ? asked : "live");
+ const [media, setMedia] = useState<SlotValue | null>(null);
+ const [look, setLook] = useState<BodyLookId>("holo");
+ const [sending, setSending] = useState(false);
+ const create = useCreateGeneration();
+ const askFirst = useAskBeforeUpload();
+ const guest = useIsGuest();
+ const current = useRef<SlotValue | null>(null);
+
+ const switchMode = useCallback((m: Mode) => {
+ setMode(m);
+ setMedia(null);
+ current.current = null;
+ }, []);
+ const take = useCallback((v: SlotValue | null) => {
+ current.current = v;
+ setMedia(v);
+ }, []);
+
+ const runMode = mode === "live" ? null : mode;
+ const example = runMode && media?.preview === EXAMPLES[runMode].src && !media.ref;
+ const ready = media && !media.uploading && (media.ref || example) ? media : null;
+ const kind = mode === "clip" ? "video" : "image";
+ const quoteReq: GenerationRequest | null = ready?.ref ? bodyDoubleRequest({ kind, ref: ready.ref, look }) : null;
+ const place = useOpenRunPlace([getModel(mode === "clip" ? BODY_DOUBLE.clipModel : BODY_DOUBLE.photoModel)?.name ?? "Body Double"], quoteReq);
+
+ const go = async () => {
+ if (!runMode || !ready) return void toast(mode === "clip" ? "Add a clip" : "Add a photo");
+ if (place?.refused) return void toast(place.refused);
+ if (example && guest) return askToSignUp("run");
+ if (example && askFirst()) return;
+ setSending(true);
+ try {
+ let ref = ready.ref;
+ if (!ref) {
+ const ex = EXAMPLES[runMode];
+ const blob = await (await fetch(ex.src)).blob();
+ ref = (await postFile(new File([blob], ex.name, { type: blob.type || (runMode === "clip" ? "video/mp4" : "image/jpeg") }))).url;
+ take({ ref, preview: ex.src, kind, name: ex.name });
+ }
+ await create.mutateAsync(bodyDoubleRequest({ kind, ref, look }));
+ toast.success(mode === "clip" ? "Capturing the motion" : "Finding every body");
+ document.getElementById("body-double-results")?.scrollIntoView({ behavior: "smooth", block: "start" });
+ } catch (e) {
+ toastError(e, "That didn't start. Please try again.");
+ } finally {
+ setSending(false);
+ }
+ };
+
+ return (
+ <ToolShell
+ title="Apps"
+ engineSwitch={false}
+ header={
+ <nav aria-label="Breadcrumb" className="hidden items-center gap-1 text-[13px] text-muted-foreground sm:flex">
+ <Link href="/apps" className="hover:text-foreground">
+ Apps
+ </Link>
+ <ChevronRight className="size-3.5" />
+ <span className="text-foreground">{app.name}</span>
+ </nav>
+ }
+ >
+ <ToolHero title={app.name} subtitle={SUBTITLE} />
+ <div className="mx-auto mt-4 flex max-w-[1040px] justify-center">
+ <Segmented
+ label="Mode"
+ value={mode}
+ onChange={switchMode}
+ options={[
+ { value: "live", label: "Live" },
+ { value: "photo", label: "Photo" },
+ { value: "clip", label: "Clip" },
+ ]}
+ />
+ </div>
+ <div className="mx-auto mt-4 max-w-[1040px]">
+ {mode === "live" ? (
+ <LiveView />
+ ) : !media ? (
+ <div className="mx-auto max-w-[640px]">
+ <AddMedia key={mode} mode={mode} onPick={take} />
+ </div>
+ ) : (
+ <div className="grid gap-3 lg:grid-cols-[minmax(0,1fr)_340px] lg:items-start">
+ <Panel
+ title={mode === "clip" ? "Your clip" : "Your photo"}
+ aside={
+ <Button variant="ghost" size="icon-sm" className="rounded-full" aria-label="Remove it" onClick={() => take(null)}>
+ <X className="size-4" />
+ </Button>
+ }
+ >
+ <div className="overflow-hidden rounded-xl bg-media">
+ {mode === "clip" ? (
+ <video src={media.preview} controls muted playsInline loop className="block max-h-[52vh] w-full object-contain" />
+ ) : (
+ // eslint-disable-next-line @next/next/no-img-element
+ <img src={media.preview} alt="Your photo" className="block max-h-[52vh] w-full object-contain" />
+ )}
+ </div>
+ <p className="mt-2 text-[12px] text-muted-foreground" aria-live="polite">
+ {media.uploading ? "Uploading…" : mode === "clip" ? `The first ${BODY_DOUBLE.maxClipSeconds} seconds are captured at 24 fps.` : "Every person in full view gets a body."}
+ </p>
+ </Panel>
+ <Panel className="space-y-5">
+ <div className="space-y-2">
+ <h3 className="text-[13px] font-semibold">Look</h3>
+ <LookPicker value={look} onChange={setLook} />
+ </div>
+ <ul className="space-y-1 text-[12px] text-muted-foreground">
+ <li>• The body drawn over your {mode === "clip" ? "clip" : "photo"}</li>
+ <li>• {mode === "clip" ? "An animated 3D body (GLB) for Blender, Unreal or any 3D app" : "A 3D body (GLB) with a full skeleton"}</li>
+ <li>• The pose {mode === "clip" ? "video" : "picture"}, ready to drive motion transfer</li>
+ </ul>
+ <div className="space-y-2">
+ <div className="flex justify-center">
+ <RunPlaceChip place={place} />
+ </div>
+ <Button size="lg" className="h-11 w-full rounded-full text-[15px]" onClick={go} disabled={sending || !ready || !!place?.refused} title={place?.send ? `Generate · ${place.send}` : undefined}>
+ {sending ? <Loader2 className="size-4 animate-spin" /> : <PersonStanding className="size-4" />}
+ {mode === "clip" ? "Capture the motion" : "Find every body"}
+ </Button>
+ {place?.refused && ready && (
+ <p className="text-center text-[12px] text-muted-foreground" aria-live="polite">
+ {place.refused}
+ </p>
+ )}
+ </div>
+ </Panel>
+ </div>
+ )}
+ </div>
+ <Results />
+ </ToolShell>
+ );
+}
+
+type View = "over" | "3d" | "pose";
+
+/** One run: the body over the input, the 3D body and the pose, with their downloads. */
+function BodyResult({ g }: { g: Generation }) {
+ const [view, setView] = useState<View>("over");
+ const busy = g.status === "queued" || g.status === "running";
+ const done = g.status === "succeeded";
+ const clip = g.request.op === BODY_DOUBLE.clipOp;
+ const over = done ? g.outputs.find((o) => !o.meta?.role && o.kind !== "model3d") : undefined;
+ const body = done ? g.outputs.find((o) => o.kind === "model3d") : undefined;
+ const pose = done ? g.outputs.find((o) => o.meta?.role === "pose") : undefined;
+ const look = bodyLook(g.request.presetOptions?.look);
+ const shown: OutputFile | undefined = view === "pose" ? pose : over;
+ return (
+ <article className="space-y-2 rounded-2xl border bg-background p-2.5 shadow-soft">
+ <div className="flex items-center gap-2 px-0.5">
+ <span className="min-w-0 flex-1 truncate text-[13px] font-medium">
+ {clip ? "Motion capture" : "Bodies"} · {look.label}
+ </span>
+ {done && (
+ <Segmented
+ label="Show"
+ value={view}
+ onChange={setView}
+ options={[
+ { value: "over", label: "On it" },
+ ...(body ? [{ value: "3d" as const, label: "3D" }] : []),
+ ...(pose ? [{ value: "pose" as const, label: "Pose" }] : []),
+ ]}
+ />
+ )}
+ </div>
+ {done && view === "3d" && body ? (
+ <div className="aspect-[4/5] overflow-hidden rounded-xl bg-media">
+ <ModelViewer output={body} g={g} />
+ </div>
+ ) : done && shown ? (
+ <div className="overflow-hidden rounded-xl bg-media">
+ {shown.kind === "video" ? (
+ <video src={shown.url} autoPlay muted loop playsInline controls className="block aspect-[4/5] w-full object-contain" />
+ ) : (
+ // eslint-disable-next-line @next/next/no-img-element
+ <img src={shown.url} alt={view === "pose" ? "The pose" : "The bodies over the photo"} className="block aspect-[4/5] w-full object-contain" />
+ )}
+ </div>
+ ) : (
+ <div className="grid aspect-[4/5] place-items-center rounded-xl bg-media p-4 text-center">
+ {busy ? (
+ <p className="inline-flex items-center gap-2 rounded-full bg-black/55 px-3 py-1.5 text-[13px] text-white backdrop-blur" role="status">
+ <Loader2 className="size-3.5 animate-spin" /> {clip ? "Capturing the motion…" : "Finding every body…"}
+ {g.progress ? ` ${Math.round(g.progress * 100)}%` : ""}
+ </p>
+ ) : (
+ <p className="rounded-xl bg-black/60 px-3 py-2 text-[13px] text-white backdrop-blur" role="alert">
+ {g.error ?? "This one didn't come out. Try again."}
+ </p>
+ )}
+ </div>
+ )}
+ {done && (
+ <div className="flex flex-wrap gap-1.5">
+ {over && (
+ <Button variant="outline" size="sm" className="rounded-full" asChild>
+ <a href={downloadHref(over.url, clip ? "body-double.mp4" : "body-double.png")} download>
+ <Download className="size-3.5" /> {clip ? "Video" : "Picture"}
+ </a>
+ </Button>
+ )}
+ {body && (
+ <Button variant="outline" size="sm" className="rounded-full" asChild>
+ <a href={downloadHref(body.url, clip ? "body-double-motion.glb" : "body-double.glb")} download>
+ <Box className="size-3.5" /> 3D body (GLB)
+ </a>
+ </Button>
+ )}
+ {pose && (
+ <Button variant="outline" size="sm" className="rounded-full" asChild>
+ <a href={downloadHref(pose.url, clip ? "body-double-pose.mp4" : "body-double-pose.png")} download>
+ <PersonStanding className="size-3.5" /> Pose
+ </a>
+ </Button>
+ )}
+ </div>
+ )}
+ </article>
+ );
+}
+
+/** The runs so far, newest first. */
+function Results() {
+ const runs = useGenerations({ features: [BODY_DOUBLE.feature], limit: 24 });
+ const items = runs.data ?? [];
+ if (!items.length) return null;
+ return (
+ <section className="mx-auto mt-10 max-w-[1040px]" aria-labelledby="body-double-results">
+ <h3 id="body-double-results" className="mb-3 scroll-mt-20 font-heading text-[22px]">
+ Your body doubles
+ </h3>
+ <ul className="grid grid-cols-1 gap-3 min-[480px]:grid-cols-2 lg:grid-cols-3">
+ {items.map((g) => (
+ <li key={g.id}>
+ <BodyResult g={g} />
+ </li>
+ ))}
+ </ul>
+ </section>
+ );
+}
diff --git a/src/components/body-double/live-view.tsx b/src/components/body-double/live-view.tsx
new file mode 100644
index 00000000..d5e6544e
--- /dev/null
+++ b/src/components/body-double/live-view.tsx
@@ -0,0 +1,455 @@
+"use client";
+
+import { Camera, Circle, Film, Loader2, RefreshCw, Square } from "lucide-react";
+import { useCallback, useEffect, useRef, useState } from "react";
+import * as THREE from "three";
+import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
+import { RoomEnvironment } from "three/examples/jsm/environments/RoomEnvironment.js";
+import { toast } from "sonner";
+import { Button } from "@/components/ui/button";
+import { createHmr, type Hmr, N_VERTS } from "@/lib/body-double/hmr";
+import { cn } from "@/lib/utils";
+
+/** A clip anyone can try Live on before turning on their camera. */
+export const LIVE_SAMPLES = [
+ { src: "/previews/presets/app-dance.mp4", label: "Ballroom dance" },
+ { src: "/previews/presets/motion-catwalk.mp4", label: "Runway walk" },
+] as const;
+
+export type LiveLook = "chrome" | "iris" | "holo" | "wire";
+export const LIVE_LOOKS: { value: LiveLook; label: string }[] = [
+ { value: "chrome", label: "Chrome" },
+ { value: "iris", label: "Iridescent" },
+ { value: "holo", label: "Hologram" },
+ { value: "wire", label: "Wireframe" },
+];
+
+function holoMaterial() {
+ return new THREE.ShaderMaterial({
+ transparent: true,
+ depthWrite: false,
+ blending: THREE.AdditiveBlending,
+ side: THREE.DoubleSide,
+ uniforms: { uTime: { value: 0 } },
+ vertexShader: `varying vec3 vN; varying vec3 vV; varying float vY;
+ void main(){ vec4 mv = modelViewMatrix * vec4(position,1.); vN = normalize(normalMatrix*normal); vV = normalize(-mv.xyz); vY = position.y; gl_Position = projectionMatrix*mv; }`,
+ fragmentShader: `uniform float uTime; varying vec3 vN; varying vec3 vV; varying float vY;
+ void main(){ float fr = pow(1. - abs(dot(normalize(vN), vV)), 2.2);
+ vec3 c = mix(vec3(.72,.55,1.), vec3(.35,.95,1.), .5 + .5*sin(vY*3. + uTime*.8));
+ float scan = .75 + .25*sin(vY*220. - uTime*6.);
+ gl_FragColor = vec4(c*(.18 + 1.4*fr)*scan, .9); }`,
+ });
+}
+
+function lookMaterial(look: LiveLook, envMap: THREE.Texture): THREE.Material {
+ if (look === "holo") return holoMaterial();
+ if (look === "wire") return new THREE.MeshBasicMaterial({ color: 0xece4ff, wireframe: true, transparent: true, opacity: 0.55 });
+ if (look === "iris")
+ return new THREE.MeshPhysicalMaterial({
+ color: 0xffffff,
+ metalness: 0.85,
+ roughness: 0.14,
+ envMap,
+ envMapIntensity: 1.25,
+ iridescence: 1,
+ iridescenceIOR: 1.8,
+ iridescenceThicknessRange: [220, 820],
+ clearcoat: 1,
+ clearcoatRoughness: 0.08,
+ });
+ return new THREE.MeshPhysicalMaterial({ color: 0xf3f0ff, metalness: 1, roughness: 0.07, envMap, envMapIntensity: 1.35, clearcoat: 1, clearcoatRoughness: 0.04 });
+}
+
+type Scenes = {
+ geometry: THREE.BufferGeometry;
+ positions: Float32Array;
+ overlay: { r: THREE.WebGLRenderer; scene: THREE.Scene; cam: THREE.PerspectiveCamera; mesh: THREE.Mesh; env: THREE.Texture };
+ orbit: { r: THREE.WebGLRenderer; scene: THREE.Scene; cam: THREE.PerspectiveCamera; mesh: THREE.Mesh; env: THREE.Texture; body: THREE.Group; floor: THREE.Object3D[]; controls: OrbitControls };
+ dispose(): void;
+};
+
+function makeScenes(overlayCanvas: HTMLCanvasElement, orbitCanvas: HTMLCanvasElement, look: LiveLook): Scenes {
+ const renderer = (canvas: HTMLCanvasElement) => {
+ const r = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true, preserveDrawingBuffer: true });
+ r.setPixelRatio(Math.min(window.devicePixelRatio, 2));
+ r.toneMapping = THREE.ACESFilmicToneMapping;
+ r.outputColorSpace = THREE.SRGBColorSpace;
+ return r;
+ };
+ const geometry = new THREE.BufferGeometry();
+ const positions = new Float32Array(N_VERTS * 3);
+ geometry.setAttribute("position", new THREE.BufferAttribute(positions, 3).setUsage(THREE.DynamicDrawUsage));
+
+ const or = renderer(overlayCanvas);
+ const oEnv = new THREE.PMREMGenerator(or).fromScene(new RoomEnvironment(), 0.04).texture;
+ const oScene = new THREE.Scene();
+ const oCam = new THREE.PerspectiveCamera(50, 4 / 3, 0.05, 100);
+ const oMesh = new THREE.Mesh(geometry, lookMaterial(look, oEnv));
+ oMesh.visible = false;
+ oScene.add(oMesh);
+ const key = new THREE.DirectionalLight(0xffffff, 1.6);
+ key.position.set(-1, 2, 1);
+ oScene.add(key);
+
+ const rr = renderer(orbitCanvas);
+ const rEnv = new THREE.PMREMGenerator(rr).fromScene(new RoomEnvironment(), 0.04).texture;
+ const rScene = new THREE.Scene();
+ const rCam = new THREE.PerspectiveCamera(32, 1, 0.05, 100);
+ rCam.position.set(0, 0.25, 4.2);
+ const controls = new OrbitControls(rCam, orbitCanvas);
+ controls.enableDamping = true;
+ controls.autoRotate = true;
+ controls.autoRotateSpeed = 1.4;
+ const body = new THREE.Group();
+ const rMesh = new THREE.Mesh(geometry, lookMaterial(look, rEnv));
+ body.add(rMesh);
+ rScene.add(body);
+ const disc = new THREE.Mesh(new THREE.CircleGeometry(0.9, 64), new THREE.MeshBasicMaterial({ color: 0xb9a8ff, transparent: true, opacity: 0.08 }));
+ const ring = new THREE.Mesh(new THREE.RingGeometry(0.88, 0.9, 96), new THREE.MeshBasicMaterial({ color: 0xd9c7ff, transparent: true, opacity: 0.35 }));
+ for (const m of [disc, ring]) {
+ m.rotation.x = -Math.PI / 2;
+ rScene.add(m);
+ }
+ const key2 = new THREE.DirectionalLight(0xffffff, 1.4);
+ key2.position.set(1, 2, 2);
+ rScene.add(key2);
+
+ return {
+ geometry,
+ positions,
+ overlay: { r: or, scene: oScene, cam: oCam, mesh: oMesh, env: oEnv },
+ orbit: { r: rr, scene: rScene, cam: rCam, mesh: rMesh, env: rEnv, body, floor: [disc, ring], controls },
+ dispose() {
+ controls.dispose();
+ geometry.dispose();
+ for (const m of [oMesh, rMesh]) (m.material as THREE.Material).dispose();
+ oEnv.dispose();
+ rEnv.dispose();
+ or.dispose();
+ rr.dispose();
+ },
+ };
+}
+
+/** The body into both views: over the picture through the camera's own lens, and centred on the disc. */
+function drawBody(s: Scenes, verts: Float32Array, cam: Float32Array, f: number, W: number, H: number, t: number) {
+ const p = s.positions;
+ let minY = Infinity, sx = 0, sy = 0, sz = 0;
+ // Camera frame (x right, y down, z forward) → three.js (y up, looking down −z).
+ for (let i = 0; i < N_VERTS; i++) {
+ const x = verts[3 * i] + cam[0], y = -(verts[3 * i + 1] + cam[1]), z = -(verts[3 * i + 2] + cam[2]);
+ p[3 * i] = x;
+ p[3 * i + 1] = y;
+ p[3 * i + 2] = z;
+ sx += x;
+ sy += y;
+ sz += z;
+ if (y < minY) minY = y;
+ }
+ s.geometry.attributes.position.needsUpdate = true;
+ s.geometry.computeVertexNormals();
+ s.geometry.computeBoundingSphere();
+ s.overlay.cam.fov = (2 * Math.atan(H / (2 * f)) * 180) / Math.PI;
+ s.overlay.cam.aspect = W / H;
+ s.overlay.cam.updateProjectionMatrix();
+ s.overlay.mesh.visible = true;
+ sx /= N_VERTS;
+ sy /= N_VERTS;
+ sz /= N_VERTS;
+ s.orbit.body.position.set(-sx, -sy, -sz);
+ for (const m of s.orbit.floor) m.position.y = minY - sy - 0.002;
+ for (const m of [s.overlay.mesh, s.orbit.mesh]) {
+ const u = (m.material as THREE.ShaderMaterial).uniforms;
+ if (u?.uTime) u.uTime.value = t;
+ }
+ s.orbit.controls.update();
+ s.overlay.r.render(s.overlay.scene, s.overlay.cam);
+ s.orbit.r.render(s.orbit.scene, s.orbit.cam);
+}
+
+type Source = { kind: "camera" } | { kind: "sample"; src: string };
+
+/**
+ * Body Double Live: the camera (or a sample clip) in, a 3D body on the person and in a turning view beside it, at the
+ * browser's frame rate. Nothing leaves the device: InstantHMR runs on the visitor's own GPU (WebGPU) or CPU. One person
+ * at a time. Record keeps the picture with the body on it as a WebM.
+ */
+export function LiveView() {
+ const stageRef = useRef<HTMLDivElement>(null);
+ const videoRef = useRef<HTMLVideoElement>(null);
+ const overlayRef = useRef<HTMLCanvasElement>(null);
+ const orbitRef = useRef<HTMLCanvasElement>(null);
+ const scenes = useRef<Scenes | null>(null);
+ const hmr = useRef<Hmr | null>(null);
+ const run = useRef({ on: false, busy: false, lastTime: -1, fps: [] as number[] });
+ const tickRef = useRef<() => void>(() => {});
+ const rec = useRef<{ recorder: MediaRecorder; canvas: HTMLCanvasElement; chunks: Blob[] } | null>(null);
+ const [source, setSource] = useState<Source | null>(null);
+ const [look, setLook] = useState<LiveLook>("chrome");
+ const [mirror, setMirror] = useState(true);
+ const [status, setStatus] = useState<{ kind: "idle" | "loading" | "live" | "error"; text?: string; share?: number }>({ kind: "idle" });
+ const [stats, setStats] = useState<{ fps: number; ms: number; engine: string } | null>(null);
+ const [recording, setRecording] = useState(false);
+
+ // The scenes live as long as the view.
+ useEffect(() => {
+ if (!overlayRef.current || !orbitRef.current) return;
+ const s = makeScenes(overlayRef.current, orbitRef.current, "chrome");
+ scenes.current = s;
+ const r = run.current;
+ let frame = 0;
+ const idle = () => {
+ if (!r.busy) {
+ s.orbit.controls.update();
+ s.orbit.r.render(s.orbit.scene, s.orbit.cam);
+ }
+ frame = requestAnimationFrame(idle);
+ };
+ frame = requestAnimationFrame(idle);
+ return () => {
+ cancelAnimationFrame(frame);
+ r.on = false;
+ s.dispose();
+ scenes.current = null;
+ };
+ }, []);
+
+ useEffect(() => {
+ const s = scenes.current;
+ if (!s) return;
+ for (const [m, env] of [
+ [s.overlay.mesh, s.overlay.env],
+ [s.orbit.mesh, s.orbit.env],
+ ] as const) {
+ (m.material as THREE.Material).dispose();
+ m.material = lookMaterial(look, env);
+ }
+ }, [look]);
+
+ const size = useCallback((W: number, H: number) => {
+ const s = scenes.current, stage = stageRef.current, orbit = orbitRef.current;
+ if (!s || !stage || !orbit) return;
+ stage.style.aspectRatio = `${W} / ${H}`;
+ const r = stage.getBoundingClientRect();
+ s.overlay.r.setSize(r.width, r.height, false);
+ const o = orbit.getBoundingClientRect();
+ s.orbit.r.setSize(o.width, o.height, false);
+ s.orbit.cam.aspect = o.width / Math.max(1, o.height);
+ s.orbit.cam.updateProjectionMatrix();
+ }, []);
+
+ const tick = useCallback(async () => {
+ const r = run.current, video = videoRef.current, engine = hmr.current;
+ if (!r.on || !video || !engine) return;
+ const W = video.videoWidth, H = video.videoHeight;
+ if (W && H && !r.busy && video.currentTime !== r.lastTime) {
+ r.lastTime = video.currentTime;
+ r.busy = true;
+ const stage = stageRef.current;
+ if (stage && stage.dataset.size !== `${W}x${H}`) {
+ size(W, H);
+ stage.dataset.size = `${W}x${H}`;
+ }
+ const now = performance.now();
+ try {
+ const res = await engine.step(video, W, H, now / 1000);
+ if (scenes.current) drawBody(scenes.current, res.verts, res.cam, res.f, W, H, now / 1000);
+ if (rec.current) composite(rec.current.canvas, video, overlayRef.current, mirror && source?.kind === "camera");
+ r.fps.push(now);
+ while (r.fps.length > 30) r.fps.shift();
+ if (r.fps.length % 10 === 0) {
+ const fps = r.fps.length > 1 ? (1000 * (r.fps.length - 1)) / (r.fps[r.fps.length - 1] - r.fps[0]) : 0;
+ setStats({ fps, ms: res.ms.prep + res.ms.network + res.ms.body, engine: engine.engine });
+ }
+ } catch (e) {
+ r.on = false;
+ setStatus({ kind: "error", text: e instanceof Error ? e.message : "Live stopped" });
+ }
+ r.busy = false;
+ }
+ requestAnimationFrame(() => tickRef.current());
+ }, [size, mirror, source]);
+ useEffect(() => {
+ tickRef.current = () => void tick();
+ }, [tick]);
+
+ const start = useCallback(
+ async (next: Source) => {
+ const video = videoRef.current;
+ if (!video) return;
+ run.current.on = false;
+ const old = video.srcObject as MediaStream | null;
+ old?.getTracks().forEach((t) => t.stop());
+ video.srcObject = null;
+ try {
+ if (next.kind === "camera") {
+ video.removeAttribute("src");
+ video.srcObject = await navigator.mediaDevices.getUserMedia({ video: { facingMode: "user", width: { ideal: 1280 }, height: { ideal: 720 } }, audio: false });
+ } else {
+ video.src = next.src;
+ video.loop = true;
+ }
+ await video.play();
+ } catch {
+ setStatus({ kind: "error", text: next.kind === "camera" ? "The camera didn't open. Allow it in the browser, or try a sample clip." : "That clip didn't play." });
+ return;
+ }
+ setSource(next);
+ if (!hmr.current) {
+ setStatus({ kind: "loading", share: 0 });
+ try {
+ const engine = await createHmr((share) => setStatus({ kind: "loading", share }));
+ scenes.current?.geometry.setIndex(new THREE.BufferAttribute(engine.faces, 1));
+ hmr.current = engine;
+ } catch (e) {
+ setStatus({ kind: "error", text: e instanceof Error ? e.message : "Live didn't start" });
+ return;
+ }
+ }
+ hmr.current.resetTrack();
+ setStatus({ kind: "live" });
+ run.current.on = true;
+ run.current.lastTime = -1;
+ tickRef.current();
+ },
+ [],
+ );
+
+ // Stop the camera and the loop when the view goes.
+ useEffect(() => {
+ const video = videoRef.current;
+ const r = run.current;
+ return () => {
+ r.on = false;
+ (video?.srcObject as MediaStream | null)?.getTracks().forEach((t) => t.stop());
+ };
+ }, []);
+
+ const toggleRecord = () => {
+ if (rec.current) {
+ rec.current.recorder.stop();
+ return;
+ }
+ const video = videoRef.current;
+ if (!video?.videoWidth) return;
+ const canvas = Object.assign(document.createElement("canvas"), { width: video.videoWidth, height: video.videoHeight });
+ const type = ["video/webm;codecs=vp9", "video/webm"].find((t) => MediaRecorder.isTypeSupported(t));
+ if (!type) return void toast("This browser can't record the view.");
+ const recorder = new MediaRecorder(canvas.captureStream(30), { mimeType: type, videoBitsPerSecond: 8_000_000 });
+ const chunks: Blob[] = [];
+ recorder.ondataavailable = (e) => e.data.size && chunks.push(e.data);
+ recorder.onstop = () => {
+ rec.current = null;
+ setRecording(false);
+ const a = Object.assign(document.createElement("a"), { href: URL.createObjectURL(new Blob(chunks, { type: "video/webm" })), download: "body-double-live.webm" });
+ a.click();
+ setTimeout(() => URL.revokeObjectURL(a.href), 10_000);
+ };
+ rec.current = { recorder, canvas, chunks };
+ recorder.start(250);
+ setRecording(true);
+ };
+
+ const flipped = mirror && source?.kind === "camera";
+ return (
+ <div className="grid gap-3 lg:grid-cols-[minmax(0,1fr)_300px]">
+ <div ref={stageRef} className="relative overflow-hidden rounded-2xl bg-media" style={{ aspectRatio: "4 / 3" }}>
+ <video ref={videoRef} muted playsInline className={cn("absolute inset-0 size-full object-contain", flipped && "-scale-x-100")} />
+ <canvas ref={overlayRef} className={cn("pointer-events-none absolute inset-0 size-full", flipped && "-scale-x-100")} aria-hidden />
+ {status.kind !== "live" && (
+ <div className="absolute inset-0 grid place-items-center bg-black/35 p-4 text-center backdrop-blur-[2px]">
+ {status.kind === "loading" ? (
+ <p className="inline-flex items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 text-[13px] text-white" role="status">
+ <Loader2 className="size-3.5 animate-spin" /> Getting the body model ready{status.share ? ` · ${Math.round(status.share * 100)}%` : "…"}
+ </p>
+ ) : (
+ <div className="max-w-sm space-y-3">
+ {status.kind === "error" && (
+ <p className="rounded-xl bg-black/60 px-3 py-2 text-[13px] text-white" role="alert">
+ {status.text}
+ </p>
+ )}
+ <div className="flex flex-wrap justify-center gap-2">
+ <Button size="lg" className="rounded-full" onClick={() => void start({ kind: "camera" })}>
+ <Camera className="size-4" /> Use my camera
+ </Button>
+ {LIVE_SAMPLES.map((s) => (
+ <Button key={s.src} size="lg" variant="secondary" className="rounded-full" onClick={() => void start({ kind: "sample", src: s.src })}>
+ <Film className="size-4" /> {s.label}
+ </Button>
+ ))}
+ </div>
+ <p className="text-[12px] text-white/80">Runs in this browser. Your camera stays on this device.</p>
+ </div>
+ )}
+ </div>
+ )}
+ {status.kind === "live" && (
+ <span className="pointer-events-none absolute top-2 left-2 inline-flex items-center gap-1.5 rounded-full bg-black/55 px-2.5 py-1 text-[11px] font-medium text-white backdrop-blur">
+ <span className={cn("size-1.5 rounded-full", recording ? "animate-pulse bg-red-500" : "bg-emerald-400")} aria-hidden />
+ {recording ? "Recording" : "Live"}
+ {stats && ` · ${Math.round(stats.fps)} fps · ${stats.engine}`}
+ </span>
+ )}
+ </div>
+ <div className="space-y-3">
+ <div className="overflow-hidden rounded-2xl bg-[radial-gradient(ellipse_at_top,#2a2340,#0d0c12)]">
+ <canvas ref={orbitRef} className="block aspect-square w-full touch-none" aria-label="Your 3D body, turning" />
+ </div>
+ <div className="space-y-3 rounded-2xl border bg-card p-3">
+ <div className="flex flex-wrap gap-1.5" role="radiogroup" aria-label="Look">
+ {LIVE_LOOKS.map((l) => (
+ <button
+ key={l.value}
+ type="button"
+ role="radio"
+ aria-checked={look === l.value}
+ onClick={() => setLook(l.value)}
+ className={cn(
+ "h-8 rounded-full border px-3 text-[13px] outline-none transition focus-visible:ring-2 focus-visible:ring-ring",
+ look === l.value ? "border-foreground bg-foreground text-background" : "bg-background text-muted-foreground hover:text-foreground",
+ )}
+ >
+ {l.label}
+ </button>
+ ))}
+ </div>
+ {status.kind === "live" && (
+ <div className="flex flex-wrap gap-1.5">
+ <Button variant={recording ? "destructive" : "outline"} size="sm" className="rounded-full" onClick={toggleRecord}>
+ {recording ? <Square className="size-3.5" /> : <Circle className="size-3.5" />} {recording ? "Stop and save" : "Record"}
+ </Button>
+ <Button variant="outline" size="sm" className="rounded-full" onClick={() => hmr.current?.resetTrack()}>
+ <RefreshCw className="size-3.5" /> Find me again
+ </Button>
+ {source?.kind === "camera" ? (
+ <Button variant="outline" size="sm" className="rounded-full" aria-pressed={mirror} onClick={() => setMirror((m) => !m)}>
+ Mirror
+ </Button>
+ ) : (
+ <Button variant="outline" size="sm" className="rounded-full" onClick={() => void start({ kind: "camera" })}>
+ <Camera className="size-3.5" /> Use my camera
+ </Button>
+ )}
+ </div>
+ )}
+ <p className="text-[12px] text-muted-foreground">One person at a time, best in full view. For everyone in a shot, or a file to animate with, use Photo or Clip.</p>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+/** The picture with the body on it, into the recording's canvas. */
+function composite(canvas: HTMLCanvasElement, video: HTMLVideoElement, overlay: HTMLCanvasElement | null, flip: boolean) {
+ const ctx = canvas.getContext("2d");
+ if (!ctx) return;
+ ctx.save();
+ if (flip) {
+ ctx.translate(canvas.width, 0);
+ ctx.scale(-1, 1);
+ }
+ ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
+ if (overlay) ctx.drawImage(overlay, 0, 0, canvas.width, canvas.height);
+ ctx.restore();
+}
diff --git a/src/lib/body-double/hmr.ts b/src/lib/body-double/hmr.ts
new file mode 100644
index 00000000..63a79083
--- /dev/null
+++ b/src/lib/body-double/hmr.ts
@@ -0,0 +1,336 @@
+/**
+ * Body Double Live: InstantHMR in the browser, for one person, tracked by its own keypoints (no person detector).
+ *
+ * It mirrors the reference inference: the tight person box → a 1.2× square crop at 288 px with ImageNet normalisation,
+ * and the CLIFF vector [atan((cx−W/2)/f), atan((cy−H/2)/f), box/f] with f = 1.05 × the frame's diagonal. The network
+ * returns the MHR pose and shape, the camera translation and 70 keypoints in the crop; the body model (skinning only, no
+ * weights) turns the pose and shape into 18,439 vertices. The face list travels in the body model's metadata.
+ *
+ * onnxruntime-web is loaded from its pinned CDN build when Live starts, so its WebAssembly never enters the app's bundle.
+ * The model files are kept in the browser's Cache Storage after the first visit.
+ */
+
+const ORT_VERSION = "1.30.0";
+const ORT_BASE = `https://cdn.jsdelivr.net/npm/onnxruntime-web@${ORT_VERSION}/dist/`;
+
+/** The InstantHMR files at a pinned revision; NEXT_PUBLIC_BODY_DOUBLE_MODELS can point at a host of the same files. */
+const HF = "https://huggingface.co/momolesang/InstantHMR/resolve/282df6966ee10b5d7e75d305edfb016697fd7974";
+const BASE = process.env.NEXT_PUBLIC_BODY_DOUBLE_MODELS?.replace(/\/$/, "");
+export const LIVE_FILES = {
+ network: BASE ? `${BASE}/instanthmr-nano-w16.onnx` : `${HF}/instanthmr-nano.onnx`,
+ body: BASE ? `${BASE}/mhr-body.onnx` : `${HF}/mhr-body.onnx`,
+};
+const CACHE = "fuobe-body-double-v1";
+
+export const N_VERTS = 18439;
+const MEAN = [0.485, 0.456, 0.406];
+const STD = [0.229, 0.224, 0.225];
+const SIZE = 288;
+const EXPAND = 1.2;
+/** Body joints that frame the next crop (no finger tips: they swing far and fast). */
+const BOX_JOINTS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 41, 62, 69];
+const FIT_JOINTS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 41, 62, 69];
+
+// The slice of onnxruntime-web this file uses.
+type OrtTensor = { data: Float32Array; location?: string; dispose(): void };
+type OrtSession = { run(feeds: Record<string, OrtTensor>): Promise<Record<string, OrtTensor>> };
+type Ort = {
+ env: { wasm: { wasmPaths: string }; logLevel: string };
+ Tensor: new (type: "float32", data: Float32Array, dims: number[]) => OrtTensor;
+ InferenceSession: { create(model: Uint8Array, options: Record<string, unknown>): Promise<OrtSession> };
+};
+
+let ortLoading: Promise<Ort> | null = null;
+function loadOrt(webgpu: boolean): Promise<Ort> {
+ ortLoading ??= import(/* webpackIgnore: true */ /* turbopackIgnore: true */ `${ORT_BASE}${webgpu ? "ort.webgpu.min.mjs" : "ort.min.mjs"}`).then((m: Ort & { default?: Ort }) => {
+ const ort = m.default ?? m;
+ ort.env.wasm.wasmPaths = ORT_BASE;
+ ort.env.logLevel = "error";
+ return ort;
+ });
+ return ortLoading;
+}
+
+/** A model file, from Cache Storage when it was fetched before; `onBytes` follows a first download. */
+async function fetchModel(url: string, onBytes?: (got: number, total: number) => void): Promise<Uint8Array> {
+ let cache: Cache | null = null;
+ try {
+ cache = await caches.open(CACHE);
+ const hit = await cache.match(url);
+ if (hit) return new Uint8Array(await hit.arrayBuffer());
+ } catch {
+ cache = null;
+ }
+ const res = await fetch(url);
+ if (!res.ok || !res.body) throw new Error(`The body model didn't download (${res.status})`);
+ const total = Number(res.headers.get("content-length")) || 0;
+ const reader = res.body.getReader();
+ const parts: Uint8Array[] = [];
+ let got = 0;
+ for (;;) {
+ const { done, value } = await reader.read();
+ if (done) break;
+ parts.push(value);
+ got += value.length;
+ onBytes?.(got, total);
+ }
+ const bytes = new Uint8Array(got);
+ let at = 0;
+ for (const p of parts) {
+ bytes.set(p, at);
+ at += p.length;
+ }
+ try {
+ await cache?.put(url, new Response(bytes, { headers: { "content-type": "application/octet-stream" } }));
+ } catch {
+ // A full or blocked cache: the next visit downloads again.
+ }
+ return bytes;
+}
+
+/** 1 Euro filter over a flat array (Casiez et al. 2012), the filter the reference smoothing uses. */
+class OneEuro {
+ private x: Float32Array;
+ private dx: Float32Array;
+ private t = -1;
+ private mincutoff: number;
+ private beta: number;
+ private dcutoff: number;
+ constructor(n: number, mincutoff: number, beta: number, dcutoff = 1) {
+ this.x = new Float32Array(n);
+ this.dx = new Float32Array(n);
+ this.mincutoff = mincutoff;
+ this.beta = beta;
+ this.dcutoff = dcutoff;
+ }
+ reset() {
+ this.t = -1;
+ }
+ apply(v: ArrayLike<number>, t: number): Float32Array {
+ if (this.t < 0) {
+ this.x.set(v);
+ this.dx.fill(0);
+ this.t = t;
+ return this.x;
+ }
+ const dt = t > this.t ? t - this.t : 1 / 30;
+ this.t = t;
+ const ad = 1 / (1 + 1 / (2 * Math.PI * this.dcutoff * dt));
+ const { x, dx, mincutoff, beta } = this;
+ for (let i = 0; i < v.length; i++) {
+ const d = (ad * (v[i] - x[i])) / dt + (1 - ad) * dx[i];
+ dx[i] = d;
+ const a = 1 / (1 + 1 / (2 * Math.PI * (mincutoff + beta * Math.abs(d)) * dt));
+ x[i] = a * v[i] + (1 - a) * x[i];
+ }
+ return x;
+ }
+}
+
+export type HmrFrame = { verts: Float32Array; cam: Float32Array; f: number; ms: { prep: number; network: number; body: number } };
+export type Hmr = { step(source: CanvasImageSource, W: number, H: number, t: number): Promise<HmrFrame>; resetTrack(): void; faces: Uint32Array; engine: "WebGPU" | "WebAssembly" };
+
+export const hasWebGpu = () => typeof navigator !== "undefined" && "gpu" in navigator;
+
+export async function createHmr(onProgress?: (share: number) => void): Promise<Hmr> {
+ const webgpu = hasWebGpu();
+ const sizes = { network: 0, body: 0 };
+ const got = { network: 0, body: 0 };
+ const report = () => onProgress?.(sizes.network + sizes.body > 0 ? (got.network + got.body) / (sizes.network + sizes.body) : 0);
+ const track = (k: "network" | "body") => (g: number, t: number) => {
+ got[k] = g;
+ sizes[k] = t;
+ report();
+ };
+ const [ort, netBytes, bodyBytes] = await Promise.all([loadOrt(webgpu), fetchModel(LIVE_FILES.network, track("network")), fetchModel(LIVE_FILES.body, track("body"))]);
+ const make = async (gpu: boolean) => {
+ // logSeverityLevel 3: errors only (the WebGPU provider warns about the few nodes it leaves to the CPU).
+ const opts = { executionProviders: gpu ? ["webgpu", "wasm"] : ["wasm"], graphOptimizationLevel: "all", logSeverityLevel: 3 };
+ // On WebGPU the pose stays on the GPU and goes straight into the body model.
+ const netOpts = gpu ? { ...opts, preferredOutputLocation: { mhr_params: "gpu-buffer", shape_params: "gpu-buffer" } } : opts;
+ // One at a time: onnxruntime-web refuses a second WebGPU session while one is being created.
+ const n = await ort.InferenceSession.create(netBytes, netOpts);
+ return [n, await ort.InferenceSession.create(bodyBytes, opts)] as const;
+ };
+ let engine: Hmr["engine"] = webgpu ? "WebGPU" : "WebAssembly";
+ let net: OrtSession, body: OrtSession;
+ try {
+ [net, body] = await make(webgpu);
+ } catch (e) {
+ if (!webgpu) throw e;
+ // A browser that lists WebGPU but can't open an adapter: WebAssembly.
+ engine = "WebAssembly";
+ [net, body] = await make(false);
+ }
+ const faces = readFaces(bodyBytes);
+
+ const crop = typeof OffscreenCanvas !== "undefined" ? new OffscreenCanvas(SIZE, SIZE) : Object.assign(document.createElement("canvas"), { width: SIZE, height: SIZE });
+ const cctx = crop.getContext("2d", { willReadFrequently: true }) as OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D;
+ const input = new Float32Array(3 * SIZE * SIZE);
+ let box: number[] | null = null;
+ const smoothVerts = new OneEuro(N_VERTS * 3, 1.0, 4.0);
+ const smoothCam = new OneEuro(3, 0.6, 2.0);
+
+ const resetTrack = () => {
+ box = null;
+ smoothVerts.reset();
+ smoothCam.reset();
+ };
+
+ async function step(source: CanvasImageSource, W: number, H: number, t: number): Promise<HmrFrame> {
+ const f = 1.05 * Math.hypot(W, H);
+ if (!box) {
+ const s = Math.min(W, H) / EXPAND;
+ box = [W / 2 - s / 2, H / 2 - s / 2, W / 2 + s / 2, H / 2 + s / 2];
+ }
+ const t0 = performance.now();
+ const [x1, y1, x2, y2] = box;
+ const cx = (x1 + x2) / 2;
+ const cy = (y1 + y2) / 2;
+ const s = Math.max(x2 - x1, y2 - y1);
+ const cliff = new Float32Array([Math.atan((cx - W / 2) / f), Math.atan((cy - H / 2) / f), s / f]);
+ const side = s * EXPAND;
+ const sx = cx - side / 2;
+ const sy = cy - side / 2;
+ // The pixel-aligned patch around the square, resized to 288 (the reference's floor/ceil crop); outside is black.
+ const ix = Math.floor(sx);
+ const iy = Math.floor(sy);
+ cctx.fillStyle = "#000";
+ cctx.fillRect(0, 0, SIZE, SIZE);
+ cctx.drawImage(source, ix, iy, Math.ceil(sx + side) - ix, Math.ceil(sy + side) - iy, 0, 0, SIZE, SIZE);
+ const px = cctx.getImageData(0, 0, SIZE, SIZE).data;
+ const plane = SIZE * SIZE;
+ for (let i = 0, p = 0; i < plane; i++, p += 4) {
+ input[i] = (px[p] / 255 - MEAN[0]) / STD[0];
+ input[i + plane] = (px[p + 1] / 255 - MEAN[1]) / STD[1];
+ input[i + 2 * plane] = (px[p + 2] / 255 - MEAN[2]) / STD[2];
+ }
+ const t1 = performance.now();
+ const out = await net.run({ image: new ort.Tensor("float32", input, [1, 3, SIZE, SIZE]), cliff_cond: new ort.Tensor("float32", cliff, [1, 3]) });
+ const t2 = performance.now();
+ const b = await body.run({ mhr_params: out.mhr_params, shape_params: out.shape_params });
+ if (out.mhr_params.location === "gpu-buffer") {
+ out.mhr_params.dispose();
+ out.shape_params.dispose();
+ }
+ const t3 = performance.now();
+ const jn = out.joints_2d.data;
+ const kp = new Float32Array(140);
+ for (let j = 0; j < 70; j++) {
+ kp[2 * j] = (jn[2 * j] + 1) * 0.5 * side + sx;
+ kp[2 * j + 1] = (jn[2 * j + 1] + 1) * 0.5 * side + sy;
+ }
+ box = nextBox(kp, W, H);
+ // The network's translation sits a few percent off its own keypoints: fit it so the body's joints land on them.
+ const cam = smoothCam.apply(fitTranslation(b.joints_3d.data, out.cam_trans.data, kp, f, W / 2, H / 2), t);
+ const verts = smoothVerts.apply(b.vertices.data, t);
+ return { verts, cam, f, ms: { prep: t1 - t0, network: t2 - t1, body: t3 - t2 } };
+ }
+
+ return { step, resetTrack, faces, engine };
+}
+
+function nextBox(kp: Float32Array, W: number, H: number): number[] | null {
+ let x1 = Infinity, y1 = Infinity, x2 = -Infinity, y2 = -Infinity;
+ for (const j of BOX_JOINTS) {
+ const x = kp[2 * j], y = kp[2 * j + 1];
+ if (x < x1) x1 = x;
+ if (x > x2) x2 = x;
+ if (y < y1) y1 = y;
+ if (y > y2) y2 = y;
+ }
+ const bw = x2 - x1, bh = y2 - y1;
+ y1 -= 0.12 * bh; // room above the eyes for the head
+ const nb = [x1 - 0.06 * bw, y1 - 0.06 * bh, x2 + 0.06 * bw, y2 + 0.06 * bh];
+ const cx = (nb[0] + nb[2]) / 2, cy = (nb[1] + nb[3]) / 2, size = Math.max(nb[2] - nb[0], nb[3] - nb[1]);
+ // Lost (tiny, huge or off the frame): start again from the centred square.
+ if (!(size > 0.12 * Math.min(W, H)) || size > 2.5 * Math.max(W, H) || cx < 0 || cx > W || cy < 0 || cy > H) return null;
+ return nb;
+}
+
+/** Gauss-Newton on the 3 translation unknowns so the 3D joints project onto the 2D keypoints. */
+function fitTranslation(j3: Float32Array, cam: Float32Array, kp: Float32Array, f: number, cx: number, cy: number): Float32Array {
+ let tx = cam[0], ty = cam[1], tz = cam[2];
+ for (let it = 0; it < 6; it++) {
+ let a00 = 1e-6, a02 = 0, a11 = 1e-6, a12 = 0, a22 = 1e-6, b0 = 0, b1 = 0, b2 = 0;
+ for (const j of FIT_JOINTS) {
+ const X = j3[3 * j] + tx, Y = j3[3 * j + 1] + ty, Z = Math.max(j3[3 * j + 2] + tz, 0.1);
+ const ru = (f * X) / Z + cx - kp[2 * j], rv = (f * Y) / Z + cy - kp[2 * j + 1];
+ const fz = f / Z, gx = (-f * X) / (Z * Z), gy = (-f * Y) / (Z * Z);
+ a00 += fz * fz;
+ a02 += fz * gx;
+ a22 += gx * gx + gy * gy;
+ a11 += fz * fz;
+ a12 += fz * gy;
+ b0 += fz * ru;
+ b1 += fz * rv;
+ b2 += gx * ru + gy * rv;
+ }
+ // The symmetric 3×3 (a01 is 0), by Cramer's rule.
+ const det = a00 * (a11 * a22 - a12 * a12) + a02 * (-a11 * a02);
+ if (!(Math.abs(det) > 1e-12)) break;
+ const d0 = (b0 * (a11 * a22 - a12 * a12) + a02 * (b1 * a12 - a11 * b2)) / det;
+ const d1 = (a00 * (b1 * a22 - a12 * b2) - b0 * (-a12 * a02) + a02 * (-b1 * a02)) / det;
+ const d2 = (a00 * (a11 * b2 - b1 * a12) + b0 * (-a11 * a02)) / det;
+ tx -= d0;
+ ty -= d1;
+ tz -= d2;
+ }
+ // The network's answer when the fit runs away (keypoints off the person).
+ if (!(tz > 0.3 && tz < 50) || Math.abs(tz - cam[2]) > 0.5 * cam[2]) return cam;
+ return new Float32Array([tx, ty, tz]);
+}
+
+/** The mesh faces from the body model's metadata ("mesh_faces", base64 int32): the ONNX protobuf, read just that far. */
+function readFaces(u8: Uint8Array): Uint32Array {
+ let p = 0;
+ const varint = () => {
+ let r = 0, s = 0, b: number;
+ do {
+ b = u8[p++];
+ r += (b & 0x7f) * 2 ** s;
+ s += 7;
+ } while (b & 0x80);
+ return r;
+ };
+ const dec = new TextDecoder();
+ while (p < u8.length) {
+ const key = varint(), field = key >>> 3, wire = key & 7;
+ if (wire === 0) {
+ varint();
+ continue;
+ }
+ if (wire === 1) {
+ p += 8;
+ continue;
+ }
+ if (wire === 5) {
+ p += 4;
+ continue;
+ }
+ const len = varint(), start = p;
+ p += len;
+ if (field !== 14) continue;
+ let q = start, k = "", v = "";
+ while (q < start + len) {
+ const kk = u8[q++];
+ let l = 0, s = 0, b: number;
+ do {
+ b = u8[q++];
+ l += (b & 0x7f) * 2 ** s;
+ s += 7;
+ } while (b & 0x80);
+ const str = dec.decode(u8.subarray(q, q + l));
+ q += l;
+ if (kk >>> 3 === 1) k = str;
+ else v = str;
+ }
+ if (k === "mesh_faces") {
+ const bin = atob(v);
+ const bytes = new Uint8Array(bin.length);
+ for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i);
+ return new Uint32Array(new Int32Array(bytes.buffer));
+ }
+ }
+ throw new Error("The body model has no face list");
+}
diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.ts
index 72db4123..640b3611 100644
--- a/src/lib/catalog/apps.ts
+++ b/src/lib/catalog/apps.ts
@@ -1,5 +1,6 @@
import { QMA_MODEL } from "@/lib/qma";
import { ANGLES_2511_LORA } from "./open-tools";
+import { BODY_DOUBLE, BODY_LOOKS } from "./body-double";
import { CUSTOM_COLOUR, ITEMS, RECOLOR, RECOLOR_TEMPLATE, SWATCHES } from "./recolor";
import { CAST_LOOK } from "./soul-cards";
import type { InputSlot, Preset, PresetOption, PresetRoute } from "./types";
@@ -186,6 +187,25 @@ export const APPS: Preset[] = [
open: { modelId: "oss-qwen-head-swap", promptTemplate: HEAD_SWAP_OPEN },
parity: "Brings the whole head over: face, hair and ears, lit like the shot. Everything else stays exactly as it was.",
}),
+ // Body Double: a tool of its own (src/components/body-double/body-double-tool.tsx). A photo or a clip runs InstantHMR on the
+ // GPU (the body drawn over it, a skinned GLB, the pose); Live runs it in the browser from the camera, with no GPU at all.
+ app({
+ id: BODY_DOUBLE.appId,
+ name: "Body Double",
+ category: "Identity",
+ description: "Your 3D body twin from a photo, a clip or your camera",
+ icon: "PersonStanding",
+ hue: 265,
+ badges: ["new"],
+ tool: "body-double",
+ inputs: [{ key: "image", label: "Photo", accept: "image", required: true, hint: "Anyone in full view; every person gets a body" }],
+ options: [{ key: "look", label: "Look", choices: BODY_LOOKS.map((l) => ({ value: l.value, label: l.label, prompt: l.hint, extra: { ...l.extra } })) }],
+ prompt: "Body capture",
+ cloud: null,
+ open: { modelId: BODY_DOUBLE.photoModel, op: BODY_DOUBLE.photoOp },
+ openAlso: [{ modelId: BODY_DOUBLE.clipModel, op: BODY_DOUBLE.clipOp }],
+ parity: "Every person's 3D body, pose and hands. Photos and clips run on a GPU; Live runs in your browser.",
+ }),
app({
name: "Character Swap",
category: "Identity",
diff --git a/src/lib/catalog/body-double.ts b/src/lib/catalog/body-double.ts
new file mode 100644
index 00000000..c64132b3
--- /dev/null
+++ b/src/lib/catalog/body-double.ts
@@ -0,0 +1,57 @@
+import type { GenerationRequest } from "./types";
+
+/**
+ * Body Double: every person's 3D body from a photo or a clip (InstantHMR on ComfyUI), or live from a camera in the
+ * browser (src/components/body-double/live). The photo and clip runs return the body drawn over the input, a skinned GLB
+ * (animated for a clip) and a SCAIL pose render.
+ */
+export const BODY_DOUBLE = {
+ appId: "app-body-double",
+ feature: "app:app-body-double",
+ photoModel: "oss-body-double",
+ clipModel: "oss-body-double-video",
+ photoOp: "body-capture",
+ clipOp: "body-capture-video",
+ photoGraph: "body-double-photo-instanthmr",
+ clipGraph: "body-double-clip-instanthmr",
+ /** The longest clip a run takes, in seconds (the graph reads 24 fps, up to 360 frames). */
+ maxClipSeconds: 15,
+} as const;
+
+export type BodyLookId = "holo" | "clay" | "thermal" | "ghost" | "xray" | "skeleton";
+
+export type BodyLook = {
+ value: BodyLookId;
+ label: string;
+ hint: string;
+ /** The graph's look: SAM3DBody_Render's style, mesh shader and opacity over the picture (params.extra). */
+ extra: { renderStyle: "mesh" | "scail"; shader: "normals" | "default" | "rainbow" | "depth"; opacity: number };
+};
+
+/** The looks, the default first. Holo is the surface normals, so the body reads as a sculpted, iridescent shell. */
+export const BODY_LOOKS: readonly BodyLook[] = [
+ { value: "holo", label: "Holo", hint: "An iridescent body shell", extra: { renderStyle: "mesh", shader: "normals", opacity: 0.92 } },
+ { value: "clay", label: "Clay", hint: "A matte sculpt, like a fitting mannequin", extra: { renderStyle: "mesh", shader: "default", opacity: 1 } },
+ { value: "thermal", label: "Thermal", hint: "A heat-map gradient from head to toe", extra: { renderStyle: "mesh", shader: "rainbow", opacity: 0.9 } },
+ { value: "ghost", label: "Ghost", hint: "A see-through body over the picture", extra: { renderStyle: "mesh", shader: "default", opacity: 0.5 } },
+ { value: "xray", label: "X-ray", hint: "Depth shading, near is bright", extra: { renderStyle: "mesh", shader: "depth", opacity: 0.95 } },
+ { value: "skeleton", label: "Skeleton", hint: "The SCAIL skeleton over the picture", extra: { renderStyle: "scail", shader: "normals", opacity: 1 } },
+];
+
+export const bodyLook = (value: unknown): BodyLook => BODY_LOOKS.find((l) => l.value === value) ?? BODY_LOOKS[0];
+
+/** A photo or a clip, in the look picked. */
+export function bodyDoubleRequest(o: { kind: "image" | "video"; ref: string; look?: BodyLookId }): GenerationRequest {
+ const look = bodyLook(o.look);
+ const clip = o.kind === "video";
+ return {
+ feature: BODY_DOUBLE.feature,
+ presetId: BODY_DOUBLE.appId,
+ modelId: clip ? BODY_DOUBLE.clipModel : BODY_DOUBLE.photoModel,
+ op: clip ? BODY_DOUBLE.clipOp : BODY_DOUBLE.photoOp,
+ engine: "open",
+ inputs: clip ? { video: o.ref } : { images: [o.ref] },
+ presetOptions: { look: look.value },
+ params: { extra: { ...look.extra } },
+ };
+}
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index cf12875f..4e392746 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -11,6 +11,7 @@ import { loraEntry, loraRef } from "./loras";
import { AUTO_IMAGE, AUTO_NAME } from "@/lib/auto-image";
import { ANGLES_LORA, ANY_ANGLE_LORA, MOSAIC_SCALE, MOSAIC_TARGET, SPEAK_GRAPH, SPEAK_LORA, SPEAK_PROMPT } from "./open-tools";
import { ANY_ANGLE } from "./any-angle";
+import { BODY_DOUBLE } from "./body-double";
import { RECOLOR_TAP_FIRST } from "./recolor";
import { CINEMA_CROP, SOUL_ASPECTS, SOUL_TIERS } from "./soul";
import { RESTORE, offlineRestorePrompt } from "./restore";
@@ -2775,6 +2776,30 @@ const open: ModelDef[] = [
defaults: {},
hidden: true,
}),
+ // Body Double's models (the app's own page runs them): InstantHMR finds every person's MHR body, ComfyUI's SAM 3D Body
+ // nodes draw it in the picked look, render the SCAIL pose and export a skinned GLB. Listed for their licence and switch.
+ o({
+ id: BODY_DOUBLE.photoModel,
+ name: "Body Double",
+ vendor: "Naturalpad InstantHMR + Meta MHR",
+ family: "instanthmr",
+ kind: "image",
+ tagline: "Every person's 3D body from a photo: drawn over it, a skinned GLB and the pose · 4 GB GPU",
+ routes: [{ ...comfy(BODY_DOUBLE.photoOp, BODY_DOUBLE.photoGraph, "RT-DETR finds the people, InstantHMR medium recovers each body"), maxImages: 1 }],
+ options: { promptless: true, maxImages: 1, requires: { images: 1, msg: "Add a photo with people in it" } },
+ hidden: true,
+ }),
+ o({
+ id: BODY_DOUBLE.clipModel,
+ name: "Body Double motion capture",
+ vendor: "Naturalpad InstantHMR + Meta MHR",
+ family: "instanthmr",
+ kind: "video",
+ tagline: "Motion capture from a clip: the body over every frame, an animated skinned GLB and the pose video · 6 GB GPU",
+ routes: [comfy(BODY_DOUBLE.clipOp, BODY_DOUBLE.clipGraph, "24 fps, up to 15 s, smoothed")],
+ options: { promptless: true },
+ hidden: true,
+ }),
];
/** fal's FFmpeg utilities (docs/research/paid-model-apis-2.md): the cloud side of join clips and Kling extend. */
diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.ts
index 3b798ce0..c1e296eb 100644
--- a/src/lib/catalog/plan.ts
+++ b/src/lib/catalog/plan.ts
@@ -393,6 +393,8 @@ const PROMPTLESS = new Set<Operation>([
"trim", "transcribe", "mux", "separate-audio", "enhance-voice", "speech-edit", "layers", "image-to-3d", "captions", "text-layers", "vectorize", "level",
// av-tools: the dub voice track (clips placed on the video's timeline)
"timeline",
+ // Body Double: the body comes from the picture or the clip
+ "body-capture", "body-capture-video",
// round 4: tools that work from their inputs (removing an object needs a prompt only on models that read one)
"sdr-to-hdr", "export-video", "ocr", "still-motion", "audio-loop", "audio-join", "scene-3d", "splat", "rig-3d", "refine-3d", "extract-frames", "images-to-video", "overlay", "composite",
// round 5 (O11): the face mosaic names the faces itself ("face")
@@ -1048,6 +1050,8 @@ const NEEDS: Partial<
captions: { video: true, msg: "Add the video to caption" },
layers: { images: 1, msg: "Add the image to split into layers" },
"image-to-3d": { images: 1, msg: "Add a product or object photo" },
+ "body-capture": { images: 1, msg: "Add a photo with people in it" },
+ "body-capture-video": { video: true, msg: "Add a clip of someone moving" },
// round 3 (cloud catalog)
"text-layers": { images: 1, msg: "Add the image to lift the text from" },
vectorize: { images: 1, msg: "Add the image to turn into an SVG" },
diff --git a/src/lib/catalog/preset-recipe-routes.ts b/src/lib/catalog/preset-recipe-routes.ts
index 33042d50..d468066b 100644
--- a/src/lib/catalog/preset-recipe-routes.ts
+++ b/src/lib/catalog/preset-recipe-routes.ts
@@ -55,6 +55,7 @@ export type RecipeKind = "h3" | "orbit" | "qwen";
* - Outfit Swap: its Outfit Swap LoRA keeps everything but the clothes in place, where a plain edit moves the picture.
* - Photo to 3D: only its own graph makes the GLB, the splat and the orbit clip together.
* - Watermark Remover: a tool of its own (scan, keep, remove) that changes nothing outside the marks.
+ * - Body Double: a tool of its own; its 3D bodies come from InstantHMR, never from an image or video model.
*/
export const OWN_ROUTE_APPS: ReadonlySet<string> = new Set([
"app-fuobe-angles",
@@ -76,6 +77,7 @@ export const OWN_ROUTE_APPS: ReadonlySet<string> = new Set([
"app-steam-it",
"app-restore-photo",
"app-head-swap",
+ "app-body-double",
"app-outfit-swap",
"app-photo-to-3d",
"app-watermark-remover",
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index 7c570d33..b708618c 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -108,6 +108,9 @@ export type Operation =
| "scene-edit" // video part (+ a picture) + params.extra (change / remove / new background) → the scene edited, the rest kept
| "picture-frame" // video part (+ a character picture) → its first frame with the character in that pose (or relit)
| "picture-video" // video part + an approved first frame (+ what happens) → the frame animated with the part's motion
+ // Body Double (InstantHMR)
+ | "body-capture" // image → every person's 3D body drawn over it (params.extra look), a skinned GLB of the bodies and a pose picture
+ | "body-capture-video" // video → the body drawn over every frame, an animated skinned GLB (motion capture) and a pose video
// Hosted tools: insert a moment, retexture
| "insert-moment" // video + params.startTime / params.endTime (+ prompt, reference images and clips, params.duration: the new scene's length) → the clip with a new scene between them
| "retexture-3d" // 3D model (inputs.model3d) + prompt or a style image → the same model with new textures
@@ -156,6 +159,8 @@ export const OPERATION_LABELS: Record<Operation, string> = {
dub: "Translate & dub",
"bg-remove-video": "Video background removal",
"depth-video": "Video depth map",
+ "body-capture": "Body capture",
+ "body-capture-video": "Video body capture",
"relight-video": "Video relight",
concat: "Join clips",
frame: "Extract frame",
@@ -249,6 +254,8 @@ export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
dub: "video",
"bg-remove-video": "video",
"depth-video": "video",
+ "body-capture": "image",
+ "body-capture-video": "video",
"relight-video": "video",
concat: "video",
frame: "image",
@@ -1762,7 +1769,7 @@ export interface Preset {
/** Fuobe DoP's relight effects: a step that makes the start frame first, on each engine (src/lib/catalog/dop.ts). */
prestep?: PresetPrestep;
/** An app that is a tool of its own: its page renders that tool rather than the composer (Clean up voice, Relight, Any Angle, Tap to Recolor, Watermark Remover). */
- tool?: "clean-voice" | "relight" | "any-angle" | "recolor" | "watermark";
+ tool?: "clean-voice" | "relight" | "any-angle" | "recolor" | "body-double" | "watermark";
/** The recipe its preview was made with (src/lib/catalog/preset-recipe-book.json): the route it opens on follows it. */
recipe?: PresetRecipeBook;
}
diff --git a/src/lib/comfy.ts b/src/lib/comfy.ts
index 57fca16d..2cb51c4c 100644
--- a/src/lib/comfy.ts
+++ b/src/lib/comfy.ts
@@ -100,7 +100,10 @@ export interface ManifestOutput {
// Watermark Remover: the repair's verdict (QWMFinal), folded into the picture outputs' meta.
| "quality"
// Watermark Remover: a tile's scan report (QWMDetect on a quarter of the photo), merged into the "report" output.
- | "scan-tile";
+ | "scan-tile"
+ // Body Double: the SCAIL pose render (on black) and the skinned body GLB (animated for a clip).
+ | "pose"
+ | "body";
}
export interface ManifestWorkflow {
diff --git a/src/lib/licences.ts b/src/lib/licences.ts
index 01851b7b..bd18fbe9 100644
--- a/src/lib/licences.ts
+++ b/src/lib/licences.ts
@@ -671,6 +671,13 @@ export const NODE_PACKS: NodePack[] = [
url: SPDX("MIT"),
note: "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",
}),
+ // Body Double: InstantHMR for ComfyUI (loader and predictor; the SAM 3D Body nodes it feeds are ComfyUI's own).
+ pack("ComfyUI-InstantHMR", "https://github.com/jtydhr88/ComfyUI-InstantHMR/tree/36d85573438e5de5d2fe63ba2dbca927c6a16c9b", {
+ name: "Apache-2.0",
+ class: "commercial",
+ url: SPDX("Apache-2.0"),
+ note: "jtydhr88's InstantHMR nodes; 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",
+ }),
// NVIDIA RTX Video (Quick · RTX, RTX Frame Generation, RTX Video HDR): an NVIDIA RTX card only; installed on RTX hosts.
pack("ComfyUI_Nvidia_VFX_Nodes", "https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes/tree/38d790ded00650681fa3645362efe28c8560cf40", {
name: "Apache-2.0",
diff --git a/src/lib/own-setup.ts b/src/lib/own-setup.ts
index aa4f0735..aeab7f4d 100644
--- a/src/lib/own-setup.ts
+++ b/src/lib/own-setup.ts
@@ -106,6 +106,10 @@ const ITEMS: Record<string, Entry> = {
"video-tools:remove-person": { setup: gpu(24), passes: "remove-person" },
"video-tools:remove-object-void": { setup: gpu(40), passes: "remove-object-void" },
"cinema:world": { setup: gpu(24, { files: true }) },
+ // Body Double's photo and clip runs (InstantHMR and its pack), on this studio's GPU once a real render passes there.
+ // Live needs no setup: it runs in the visitor's own browser.
+ "oss-body-double": { setup: gpu(4, { files: true }), passes: "body-double-photo" },
+ "oss-body-double-video": { setup: gpu(6, { files: true }), passes: "body-double-clip" },
"oss-hy-nomas-world": { setup: gpu(24, { files: true }) },
};
diff --git a/src/lib/preset-featured.ts b/src/lib/preset-featured.ts
index a56d244e..e1528203 100644
--- a/src/lib/preset-featured.ts
+++ b/src/lib/preset-featured.ts
@@ -17,7 +17,7 @@ const ORDER: Record<"app" | "motion" | "effect", string[]> = {
`,
`
app-hairstyle-try-on app-fuobe-angles app-any-angle app-product-placement app-link-to-video-ad app-style-snap app-steam-it app-urban-cuts
- app-signboard app-j-poster app-giallo-horror app-face-swap app-head-swap app-character-swap app-headshot-generator
+ app-signboard app-j-poster app-giallo-horror app-face-swap app-head-swap app-body-double app-character-swap app-headshot-generator
app-skin-enhancer app-zooms app-what-s-next app-packshot app-billboard-ad app-macro-scene app-asmr-promo
app-ai-stylist app-colorize app-bring-to-life app-dance app-clipcut app-sticker-match-cut app-latex app-sand-worm
app-storm-creature app-renaissance app-3d-rotation app-ghoulgao app-object-remover
diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.ts
index a39950f8..5f06e343 100644
--- a/src/server/gpu/tools.ts
+++ b/src/server/gpu/tools.ts
@@ -207,6 +207,9 @@ export const STUDIO_ROWS: StudioRowDef[] = [
},
// idol-7: Image to 3D's quick mesh (From an image, Idol 3D quick mesh): Idol's splat turned into a vertex-coloured mesh.
{ href: "/image-to-3d?model=oss-idol-mesh", label: "Image to 3D, quick mesh", group: "Images", steps: [{ modelId: "oss-idol-mesh", op: "image-to-3d" }] },
+ // Body Double: every person's 3D body from a photo, and motion capture from a clip (Live needs no GPU).
+ { href: "/apps/app-body-double", label: "Body Double · photo", group: "Images", steps: [{ modelId: "oss-body-double", op: "body-capture" }] },
+ { href: "/apps/app-body-double?mode=clip", label: "Body Double · motion capture", group: "Video", steps: [{ modelId: "oss-body-double-video", op: "body-capture-video" }] },
// idol-8: From several images' "Make the other sides from the front": Idol 3D's four views, which need the ComfyUI-Idol pack.
{ href: "/image-to-3d?mode=multi", label: "Other sides from one picture", group: "Images", kind: "image", workflows: [IDOL_VIEWS_WORKFLOW] },
// MiniMax H3's references (Pika H3 Flex Ref2VA) need the Ref2VA partition and Pika's adapter: a row of their own, so the
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index c2de3b93..49215bc4 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -792,6 +792,8 @@ export function collectOutputs(entry: HistoryEntry, manifest: ManifestWorkflow |
const meta: Record<string, unknown> = {};
if (spec?.stem) meta.stem = spec.stem;
if (spec?.role) meta.role = spec.role;
+ // Body Double's skinned body GLB carries its own animation (a clip's motion capture): viewers play it.
+ if (spec?.role === "body" && kind === "model3d") meta.rigged = true;
// A splat says what it is (the viewer and the download name go by it): spz, ply or ksplat.
if (spec?.role === "splat" && ext) meta.format = ext;
if (spec?.role === "splat" && idolSplat) Object.assign(meta, idolSplat);
diff --git a/tests/body-double.test.ts b/tests/body-double.test.ts
new file mode 100644
index 00000000..bfdf7f3d
--- /dev/null
+++ b/tests/body-double.test.ts
@@ -0,0 +1,126 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, describe, expect, it } from "vitest";
+import type { GenInput } from "@/lib/catalog/types";
+import type { ComfyWorkflow, ManifestWorkflow } from "@/lib/comfy";
+
+// Body Double: every person's 3D body from a photo, motion capture from a clip (InstantHMR on ComfyUI), and Live in the
+// browser. Everything here runs without a GPU or a ComfyUI.
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-body-double-"));
+process.env.FUOBE_DATA_DIR = tmp;
+process.env.COMFYUI_URL = "http://comfy.test:8188";
+const { prepareWorkflow } = await import("@/server/providers/comfyui");
+const { getModel, getPreset } = await import("@/lib/catalog");
+const { planGeneration } = await import("@/lib/catalog/plan");
+const B = await import("@/lib/catalog/body-double");
+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));
+
+const LIBRARY = path.join(process.cwd(), "workflows/comfyui");
+const read = (f: string) => JSON.parse(fs.readFileSync(path.join(LIBRARY, f), "utf8"));
+const manifest = read("manifest.json") as { workflows: ManifestWorkflow[] };
+const entry = (id: string) => manifest.workflows.find((w) => w.id === id)!;
+const plan = (r: Parameters<typeof planGeneration>[0]) => planGeneration(r, getModel, getPreset);
+
+async function prepare(id: string, op: string, input: GenInput) {
+ return prepareWorkflow(id, input, {
+ generationId: "g",
+ op: op as never,
+ upload: async (_d, _t, name) => `up_${name}`,
+ media: () => undefined,
+ serverRam: async () => undefined,
+ });
+}
+const at = (id: string, wf: ComfyWorkflow, key: string) => (entry(id).bindings[key] ?? []).map((t) => wf[t.node].inputs[t.input]);
+
+describe("Body Double in the catalog", () => {
+ it("is an Identity app with its own page, on the open engine only, with a look to pick", () => {
+ const app = getPreset(B.BODY_DOUBLE.appId)!;
+ expect(app.type).toBe("app");
+ expect(app.name).toBe("Body Double");
+ expect(app.category).toBe("Identity");
+ expect(app.tool).toBe("body-double");
+ expect(app.cloud).toBeNull();
+ expect(app.open).toMatchObject({ modelId: "oss-body-double", op: "body-capture" });
+ expect(app.openAlso).toEqual([{ modelId: "oss-body-double-video", op: "body-capture-video" }]);
+ expect(app.options?.[0].choices.map((c) => c.value)).toEqual(["holo", "clay", "thermal", "ghost", "xray", "skeleton"]);
+ });
+
+ it("runs on two hidden open models, one per op, without a prompt", () => {
+ const photo = getModel(B.BODY_DOUBLE.photoModel)!;
+ const clip = getModel(B.BODY_DOUBLE.clipModel)!;
+ for (const m of [photo, clip]) {
+ expect(m.engine).toBe("open");
+ expect(m.hidden).toBe(true);
+ expect(m.options.promptless).toBe(true);
+ }
+ expect(photo.kind).toBe("image");
+ expect(clip.kind).toBe("video");
+ expect(photo.routes.map((r) => [r.op, r.endpoint])).toEqual([["body-capture", "body-double-photo-instanthmr"]]);
+ expect(clip.routes.map((r) => [r.op, r.endpoint])).toEqual([["body-capture-video", "body-double-clip-instanthmr"]]);
+ });
+
+ it("plans a photo run and a clip run from the tool's requests, with the look as graph settings", () => {
+ const p = plan(B.bodyDoubleRequest({ kind: "image", ref: "/api/files/a.png", look: "thermal" }));
+ expect(p.model.id).toBe("oss-body-double");
+ expect(p.op).toBe("body-capture");
+ const c = plan(B.bodyDoubleRequest({ kind: "video", ref: "/api/files/a.mp4", look: "skeleton" }));
+ expect(c.model.id).toBe("oss-body-double-video");
+ expect(c.op).toBe("body-capture-video");
+ expect(B.bodyDoubleRequest({ kind: "video", ref: "x", look: "skeleton" }).params?.extra).toEqual({ renderStyle: "scail", shader: "normals", opacity: 1 });
+ // An unknown look is the default one.
+ expect(B.bodyLook("sparkly").value).toBe("holo");
+ });
+
+ it("asks for a photo or a clip", () => {
+ expect(() => plan({ ...B.bodyDoubleRequest({ kind: "image", ref: "x" }), inputs: {} })).toThrow("Add a photo with people in it");
+ expect(() => plan({ ...B.bodyDoubleRequest({ kind: "video", ref: "x" }), inputs: {} })).toThrow("Add a clip of someone moving");
+ });
+});
+
+describe("Body Double's graphs", () => {
+ const PHOTO = "body-double-photo-instanthmr";
+ const CLIP = "body-double-clip-instanthmr";
+
+ it("are listed with their pack, their pinned files and their outputs, validated", () => {
+ for (const id of [PHOTO, CLIP]) {
+ const e = entry(id);
+ expect(e.validated, id).toBe(true);
+ expect(e.models.map((m) => m.file).sort()).toEqual(["instanthmr_medium.safetensors", "rt_detr_v4-x-hgnet_fp16.safetensors", "sam_3d_body_dinov3_int8_convrot.safetensors"]);
+ for (const m of e.models) expect(m.url, m.file).toMatch(/^https:\/\/huggingface\.co\/[^/]+\/[^/]+\/resolve\/[0-9a-f]{40}\//);
+ expect(e.customNodes.map((c) => c.name)).toContain("ComfyUI-InstantHMR");
+ expect(e.outputs.map((o) => [o.kind, o.role ?? null])).toEqual([[id === PHOTO ? "image" : "video", null], ["model3d", "body"], [id === PHOTO ? "image" : "video", "pose"]]);
+ }
+ const pins = read("model-pins.json") as Record<string, { sha256: string }>;
+ for (const m of entry(PHOTO).models) expect(pins[m.url!]?.sha256, m.file).toMatch(/^[0-9a-f]{64}$/);
+ const packs = read("packs.json") as Record<string, { commit: string }>;
+ expect(packs["ComfyUI-InstantHMR"].commit).toMatch(/^[0-9a-f]{40}$/);
+ });
+
+ it("keep metadata out of saved clips", () => {
+ const wf = read(`${CLIP}.json`) as ComfyWorkflow;
+ for (const n of Object.values(wf)) if (n.class_type === "VHS_VideoCombine") expect(n.inputs.save_metadata).toBe(false);
+ });
+
+ it("bind the input, the look and the run's prefix", async () => {
+ const { workflow } = await prepare(PHOTO, "body-capture", { images: ["photo.png"], extra: { renderStyle: "mesh", shader: "rainbow", opacity: 0.9 } } as GenInput);
+ expect(at(PHOTO, workflow, "image")).toEqual(["photo.png"]);
+ expect(at(PHOTO, workflow, "shader")).toEqual(["rainbow"]);
+ expect(at(PHOTO, workflow, "opacity")).toEqual([0.9]);
+ expect(at(PHOTO, workflow, "renderStyle")).toEqual(["mesh"]);
+ const { workflow: clip } = await prepare(CLIP, "body-capture-video", { video: "clip.mp4", extra: { renderStyle: "scail", shader: "normals", opacity: 1 } } as GenInput);
+ expect(at(CLIP, clip, "video")).toEqual(["clip.mp4"]);
+ expect(at(CLIP, clip, "renderStyle")).toEqual(["scail"]);
+ for (const p of at(CLIP, clip, "filenamePrefix")) expect(p).toBe("fuobe/g");
+ });
+
+ it("export a skinned body (body_mesh with the SAM 3D Body rig), never the simple stick figure", () => {
+ for (const id of [PHOTO, CLIP]) {
+ const wf = read(`${id}.json`) as ComfyWorkflow;
+ const build = Object.values(wf).find((n) => n.class_type === "BuildPoseFile")!;
+ expect(build.inputs["format"]).toBe("glb");
+ expect(build.inputs["format.mesh_style"]).toBe("body_mesh");
+ expect(wf[String((build.inputs.sam3d_body_model as [string, number])[0])].class_type).toBe("SAM3DBody_Loader");
+ }
+ });
+});
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index e9043fd1..f23eb6f1 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -70,6 +70,8 @@ const ROLES: NonNullable<ManifestOutput["role"]>[] = [
"quality",
// Watermark Remover: the four tiles' scan reports, merged into the whole photo's report.
"scan-tile",
+ // Body Double: the SCAIL pose render and the skinned body GLB.
+ "pose", "body",
];
describe("round-4 ComfyUI workflows", () => {
diff --git a/tests/gpu-requirements.test.ts b/tests/gpu-requirements.test.ts
index ee38f6f4..3ce2125b 100644
--- a/tests/gpu-requirements.test.ts
+++ b/tests/gpu-requirements.test.ts
@@ -134,9 +134,11 @@ describe("requirements.json", () => {
// dialogue and MiniMax H3 on smaller cards (eleven graphs and their files) took it to 264 KB / 33.1 KB gzipped, so the budget
// moves to 320 KB / 40 KB. Green screen, RTX Video, Edit speech, Pika H3 Flex, Kandinsky 6.0, World mode, MiniMax H3's 2K
// draft and finish, Hi3D and Idol 3D's clean splats, quick mesh and four views beside them took it to 310 KB / 38.7 KB gzipped.
- it("stays within its size budget (320 KB, 40 KB gzipped)", () => {
- expect(Buffer.byteLength(text)).toBeLessThanOrEqual(320 * 1024);
- expect(zlib.gzipSync(text).length).toBeLessThanOrEqual(40 * 1024);
+ // The apps since then and Body Double (two graphs, a pack, four files) took it to 318 KB / 40.1 KB, so the budget moves to
+ // 352 KB / 44 KB.
+ it("stays within its size budget (352 KB, 44 KB gzipped)", () => {
+ expect(Buffer.byteLength(text)).toBeLessThanOrEqual(352 * 1024);
+ expect(zlib.gzipSync(text).length).toBeLessThanOrEqual(44 * 1024);
});
});
diff --git a/tests/preset-recipes.test.ts b/tests/preset-recipes.test.ts
index 50f43137..14526e8d 100644
--- a/tests/preset-recipes.test.ts
+++ b/tests/preset-recipes.test.ts
@@ -67,7 +67,7 @@ describe("which presets get a recipe", () => {
// Graded presets whose clip was graded afterwards and that have no recipe in the book.
const gradesWithoutRecipe = [...MOTIONS, ...EFFECTS].filter((x) => x.grade && !recipeKind(x));
expect(new Set(none.map((x) => x.id))).toEqual(new Set([...gradesWithoutRecipe.map((x) => x.id), ...OWN_ROUTE_APPS]));
- expect(none).toHaveLength(35);
+ expect(none).toHaveLength(36);
for (const x of none) for (const engine of ["open", "cloud"] as const) expect(presetRecipe(x, engine, inCatalog), x.id).toBeUndefined();
});
diff --git a/workflows/comfyui/body-double-clip-instanthmr.json b/workflows/comfyui/body-double-clip-instanthmr.json
new file mode 100644
index 00000000..863ff7f1
--- /dev/null
+++ b/workflows/comfyui/body-double-clip-instanthmr.json
@@ -0,0 +1,245 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 24,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 360,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None"
+ },
+ "_meta": {
+ "title": "Clip (24 fps, up to 15 s)"
+ }
+ },
+ "2": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "rt_detr_v4-x-hgnet_fp16.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "RT-DETR v4 person detector"
+ }
+ },
+ "3": {
+ "class_type": "RTDETR_detect",
+ "inputs": {
+ "model": [
+ "2",
+ 0
+ ],
+ "image": [
+ "13",
+ 0
+ ],
+ "threshold": 0.5,
+ "class_name": "person",
+ "max_detections": 1
+ },
+ "_meta": {
+ "title": "Find the performer"
+ }
+ },
+ "4": {
+ "class_type": "InstantHMRLoader",
+ "inputs": {
+ "model_file": "instanthmr_medium.safetensors"
+ },
+ "_meta": {
+ "title": "InstantHMR"
+ }
+ },
+ "5": {
+ "class_type": "InstantHMRPredict",
+ "inputs": {
+ "instanthmr_model": [
+ "4",
+ 0
+ ],
+ "image": [
+ "13",
+ 0
+ ],
+ "bboxes": [
+ "3",
+ 0
+ ],
+ "fov": 0,
+ "batch_size": 32
+ },
+ "_meta": {
+ "title": "One MHR body per frame"
+ }
+ },
+ "6": {
+ "class_type": "SAM3DBody_Render",
+ "inputs": {
+ "pose_data": [
+ "14",
+ 0
+ ],
+ "width": 0,
+ "height": 0,
+ "background": [
+ "13",
+ 0
+ ],
+ "render_style": "mesh",
+ "render_style.shader": "normals",
+ "render_style.shader.rainbow_tilt_z": -35,
+ "render_style.shader.rainbow_tilt_x": 0,
+ "render_style.opacity": 0.92,
+ "render_style.person_palette_falloff": 0.6,
+ "render_style.region": "full_body",
+ "render_style.radius_m": 0.022,
+ "render_style.hand_style": "dwpose",
+ "render_style.face_style": "disabled"
+ },
+ "_meta": {
+ "title": "Body over the clip (the look)"
+ }
+ },
+ "7": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "6",
+ 0
+ ],
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "fuobe/body-double-clip-instanthmr",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": false,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true
+ },
+ "_meta": {
+ "title": "Result"
+ }
+ },
+ "8": {
+ "class_type": "SAM3DBody_Render",
+ "inputs": {
+ "pose_data": [
+ "14",
+ 0
+ ],
+ "width": 0,
+ "height": 0,
+ "render_style": "scail",
+ "render_style.radius_m": 0.022,
+ "render_style.hand_style": "dwpose",
+ "render_style.face_style": "disabled",
+ "render_style.person_palette_falloff": 0.6
+ },
+ "_meta": {
+ "title": "SCAIL pose on black"
+ }
+ },
+ "9": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "frame_rate": 24,
+ "loop_count": 0,
+ "filename_prefix": "fuobe/body-double-clip-instanthmr",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 19,
+ "save_metadata": false,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true
+ },
+ "_meta": {
+ "title": "Pose video"
+ }
+ },
+ "10": {
+ "class_type": "SAM3DBody_Loader",
+ "inputs": {
+ "model_file": "sam_3d_body_dinov3_int8_convrot.safetensors"
+ },
+ "_meta": {
+ "title": "MHR rig for the skinned GLB"
+ }
+ },
+ "11": {
+ "class_type": "BuildPoseFile",
+ "inputs": {
+ "pose_data": [
+ "14",
+ 0
+ ],
+ "sam3d_body_model": [
+ "10",
+ 0
+ ],
+ "format": "glb",
+ "format.mesh_style": "body_mesh",
+ "format.mesh_style.bone_vis": "off",
+ "format.mesh_style.shader": "default",
+ "format.bone_smooth_window": 0,
+ "fps": 24,
+ "camera_translation": "absolute",
+ "track_index": -1
+ },
+ "_meta": {
+ "title": "Animated skinned body GLB"
+ }
+ },
+ "12": {
+ "class_type": "SaveGLB",
+ "inputs": {
+ "mesh": [
+ "11",
+ 0
+ ],
+ "filename_prefix": "fuobe/body-double-clip-instanthmr"
+ },
+ "_meta": {
+ "title": "Motion capture"
+ }
+ },
+ "13": {
+ "class_type": "ImageScaleToMaxDimension",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "upscale_method": "area",
+ "largest_size": 960
+ },
+ "_meta": {
+ "title": "Long side 960 px"
+ }
+ },
+ "14": {
+ "class_type": "SAM3DBody_Smooth",
+ "inputs": {
+ "mhr_pose_data": [
+ "5",
+ 0
+ ],
+ "strength": 1,
+ "method": "gaussian",
+ "window": 7,
+ "rotation_threshold_degrees": 30
+ },
+ "_meta": {
+ "title": "Steady motion"
+ }
+ }
+}
diff --git a/workflows/comfyui/body-double-photo-instanthmr.json b/workflows/comfyui/body-double-photo-instanthmr.json
new file mode 100644
index 00000000..8f80a4c2
--- /dev/null
+++ b/workflows/comfyui/body-double-photo-instanthmr.json
@@ -0,0 +1,190 @@
+{
+ "1": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "input.png"
+ },
+ "_meta": {
+ "title": "Photo"
+ }
+ },
+ "2": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "rt_detr_v4-x-hgnet_fp16.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "RT-DETR v4 person detector"
+ }
+ },
+ "3": {
+ "class_type": "RTDETR_detect",
+ "inputs": {
+ "model": [
+ "2",
+ 0
+ ],
+ "image": [
+ "1",
+ 0
+ ],
+ "threshold": 0.5,
+ "class_name": "person",
+ "max_detections": 8
+ },
+ "_meta": {
+ "title": "Find the people"
+ }
+ },
+ "4": {
+ "class_type": "InstantHMRLoader",
+ "inputs": {
+ "model_file": "instanthmr_medium.safetensors"
+ },
+ "_meta": {
+ "title": "InstantHMR"
+ }
+ },
+ "5": {
+ "class_type": "InstantHMRPredict",
+ "inputs": {
+ "instanthmr_model": [
+ "4",
+ 0
+ ],
+ "image": [
+ "1",
+ 0
+ ],
+ "bboxes": [
+ "3",
+ 0
+ ],
+ "fov": 0,
+ "batch_size": 16
+ },
+ "_meta": {
+ "title": "One MHR body per person"
+ }
+ },
+ "6": {
+ "class_type": "SAM3DBody_Render",
+ "inputs": {
+ "pose_data": [
+ "5",
+ 0
+ ],
+ "width": 0,
+ "height": 0,
+ "background": [
+ "1",
+ 0
+ ],
+ "render_style": "mesh",
+ "render_style.shader": "normals",
+ "render_style.shader.rainbow_tilt_z": -35,
+ "render_style.shader.rainbow_tilt_x": 0,
+ "render_style.opacity": 0.92,
+ "render_style.person_palette_falloff": 0.6,
+ "render_style.region": "full_body",
+ "render_style.radius_m": 0.022,
+ "render_style.hand_style": "dwpose",
+ "render_style.face_style": "disabled"
+ },
+ "_meta": {
+ "title": "Bodies over the photo (the look)"
+ }
+ },
+ "7": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "6",
+ 0
+ ],
+ "filename_prefix": "fuobe/body-double-photo-instanthmr"
+ },
+ "_meta": {
+ "title": "Result"
+ }
+ },
+ "8": {
+ "class_type": "SAM3DBody_Render",
+ "inputs": {
+ "pose_data": [
+ "5",
+ 0
+ ],
+ "width": 0,
+ "height": 0,
+ "render_style": "scail",
+ "render_style.radius_m": 0.022,
+ "render_style.hand_style": "dwpose",
+ "render_style.face_style": "disabled",
+ "render_style.person_palette_falloff": 0.6
+ },
+ "_meta": {
+ "title": "SCAIL pose on black"
+ }
+ },
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "filename_prefix": "fuobe/body-double-photo-instanthmr"
+ },
+ "_meta": {
+ "title": "Pose"
+ }
+ },
+ "10": {
+ "class_type": "SAM3DBody_Loader",
+ "inputs": {
+ "model_file": "sam_3d_body_dinov3_int8_convrot.safetensors"
+ },
+ "_meta": {
+ "title": "MHR rig for the skinned GLB"
+ }
+ },
+ "11": {
+ "class_type": "BuildPoseFile",
+ "inputs": {
+ "pose_data": [
+ "5",
+ 0
+ ],
+ "sam3d_body_model": [
+ "10",
+ 0
+ ],
+ "format": "glb",
+ "format.mesh_style": "body_mesh",
+ "format.mesh_style.bone_vis": "off",
+ "format.mesh_style.shader": "default",
+ "format.bone_smooth_window": 0,
+ "fps": 24,
+ "camera_translation": "centered",
+ "track_index": -1
+ },
+ "_meta": {
+ "title": "Skinned body GLB"
+ }
+ },
+ "12": {
+ "class_type": "SaveGLB",
+ "inputs": {
+ "mesh": [
+ "11",
+ 0
+ ],
+ "filename_prefix": "fuobe/body-double-photo-instanthmr"
+ },
+ "_meta": {
+ "title": "3D bodies"
+ }
+ }
+}
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index f523339a..306ef38d 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -28922,6 +28922,228 @@
"license": "n/a (no model; Image Detail Contrast MIT, Orion4D_FXMax MIT, VideoHelperSuite GPL-3.0 code)",
"validated": true,
"notes": "params.extra.openjutsu: finish soft | filmic | rich | off (the tone mapper's settings travel in raw_settings, no preset files), strength 0-1 (Orion 0-0.5), soften 0-1 (detail contrast 0 to -0.6; 0 drops the step). Both steps work frame by frame, so the clip goes through in passes (VHS_BatchManager re-queues the prompt until the clip is done, as upscale-video-esrgan-chunked does) into one H.264 encode that stays open; the last pass writes the file with the source's sound. framesPerBatch: the provider sizes it from the clip's header so a pass holds about 1.5 GB of frames (three frame-sized copies: decoded, softened, toned), so memory stays flat whatever the length."
+ },
+ {
+ "id": "body-double-photo-instanthmr",
+ "title": "Body Double photo (InstantHMR: every person's 3D body, a pose render and a skinned GLB)",
+ "capability": "body-capture",
+ "file": "body-double-photo-instanthmr.json",
+ "source": "hand-built (scripts/comfy/hand-built/body-double-photo-instanthmr.json)",
+ "bindings": {
+ "image": [
+ {
+ "node": "1",
+ "input": "image"
+ }
+ ],
+ "renderStyle": [
+ {
+ "node": "6",
+ "input": "render_style"
+ }
+ ],
+ "shader": [
+ {
+ "node": "6",
+ "input": "render_style.shader"
+ }
+ ],
+ "opacity": [
+ {
+ "node": "6",
+ "input": "render_style.opacity"
+ }
+ ],
+ "maxPeople": [
+ {
+ "node": "3",
+ "input": "max_detections"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "7",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "12",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "9",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "7",
+ "kind": "image"
+ },
+ {
+ "node": "12",
+ "kind": "model3d",
+ "role": "body"
+ },
+ {
+ "node": "9",
+ "kind": "image",
+ "role": "pose"
+ }
+ ],
+ "defaults": {
+ "renderStyle": "mesh",
+ "shader": "normals",
+ "opacity": 0.92,
+ "maxPeople": 8
+ },
+ "limits": {
+ "maxWidth": 4096,
+ "maxHeight": 4096
+ },
+ "models": [
+ {
+ "file": "rt_detr_v4-x-hgnet_fp16.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Comfy-Org/RT-DETR/resolve/8d913979f84c84f155b70ee77d96571a4728430b/diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors",
+ "sizeGb": 0.12
+ },
+ {
+ "file": "instanthmr_medium.safetensors",
+ "folder": "detection",
+ "url": "https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium.safetensors",
+ "sizeGb": 0.18
+ },
+ {
+ "file": "sam_3d_body_dinov3_int8_convrot.safetensors",
+ "folder": "detection",
+ "url": "https://huggingface.co/Comfy-Org/sam-3d-body/resolve/7c974aea58e062252a6cb5b6f9b7f639d545b729/detection/sam_3d_body_dinov3_int8_convrot.safetensors",
+ "sizeGb": 1.99
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-InstantHMR",
+ "repo": "https://github.com/jtydhr88/ComfyUI-InstantHMR"
+ }
+ ],
+ "vramGb": 4,
+ "license": "InstantHMR weights SAM License: the medium file is NON-COMMERCIAL (some training images are research-only); instanthmr_medium_commercial is the commercial-use variant. ComfyUI-InstantHMR code Apache-2.0; MHR body model Apache-2.0; RT-DETR v4 Apache-2.0; SAM 3D Body (its rig, for the skinned GLB) SAM License, commercial use allowed under its terms; VideoHelperSuite GPL-3.0 code",
+ "validated": true,
+ "notes": "RT-DETR v4 x (fp16, class person, threshold 0.5, up to maxPeople boxes) -> InstantHMR medium (HGNetV2-B4, 288 px square crops 1.2x the box, focal 1.05x the image diagonal) -> one MHR body per person (pose, shape, hands, 70 keypoints, 18,439-vertex mesh). No person found: the whole frame is one person. The look is one SAM3DBody_Render: renderStyle mesh with shader normals (Holo, default), default (Clay), rainbow (Thermal), depth (X-ray), opacity over the photo; renderStyle scail draws the SCAIL skeleton over the photo instead. Every style's dotted keys stay in the graph (ComfyUI ignores the ones a style does not use). Role pose: the SCAIL render on black, the input SCAIL-style motion models read. Role body: BuildPoseFile body_mesh with the SAM 3D Body int8 rig: one skinned mesh per person (127 joints, 72 face morph targets), centred, about 17 MB. CPU only: about 3 s a photo once loaded; the network itself is about 1 ms a person on a desktop GPU."
+ },
+ {
+ "id": "body-double-clip-instanthmr",
+ "title": "Body Double clip (InstantHMR motion capture: the body over every frame, a pose video and an animated skinned GLB)",
+ "capability": "body-capture-video",
+ "file": "body-double-clip-instanthmr.json",
+ "source": "hand-built (scripts/comfy/hand-built/body-double-clip-instanthmr.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "1",
+ "input": "video"
+ }
+ ],
+ "frames": [
+ {
+ "node": "1",
+ "input": "frame_load_cap"
+ }
+ ],
+ "renderStyle": [
+ {
+ "node": "6",
+ "input": "render_style"
+ }
+ ],
+ "shader": [
+ {
+ "node": "6",
+ "input": "render_style.shader"
+ }
+ ],
+ "opacity": [
+ {
+ "node": "6",
+ "input": "render_style.opacity"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "7",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "12",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "9",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "7",
+ "kind": "video"
+ },
+ {
+ "node": "12",
+ "kind": "model3d",
+ "role": "body"
+ },
+ {
+ "node": "9",
+ "kind": "video",
+ "role": "pose"
+ }
+ ],
+ "defaults": {
+ "frames": 360,
+ "renderStyle": "mesh",
+ "shader": "normals",
+ "opacity": 0.92
+ },
+ "limits": {
+ "maxWidth": 4096,
+ "maxHeight": 4096
+ },
+ "models": [
+ {
+ "file": "rt_detr_v4-x-hgnet_fp16.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Comfy-Org/RT-DETR/resolve/8d913979f84c84f155b70ee77d96571a4728430b/diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors",
+ "sizeGb": 0.12
+ },
+ {
+ "file": "instanthmr_medium.safetensors",
+ "folder": "detection",
+ "url": "https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium.safetensors",
+ "sizeGb": 0.18
+ },
+ {
+ "file": "sam_3d_body_dinov3_int8_convrot.safetensors",
+ "folder": "detection",
+ "url": "https://huggingface.co/Comfy-Org/sam-3d-body/resolve/7c974aea58e062252a6cb5b6f9b7f639d545b729/detection/sam_3d_body_dinov3_int8_convrot.safetensors",
+ "sizeGb": 1.99
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-InstantHMR",
+ "repo": "https://github.com/jtydhr88/ComfyUI-InstantHMR"
+ },
+ {
+ "name": "ComfyUI-VideoHelperSuite",
+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"
+ }
+ ],
+ "vramGb": 6,
+ "license": "InstantHMR weights SAM License: the medium file is NON-COMMERCIAL (some training images are research-only); instanthmr_medium_commercial is the commercial-use variant. ComfyUI-InstantHMR code Apache-2.0; MHR body model Apache-2.0; RT-DETR v4 Apache-2.0; SAM 3D Body (its rig, for the skinned GLB) SAM License, commercial use allowed under its terms; VideoHelperSuite GPL-3.0 code",
+ "validated": true,
+ "notes": "VHS_LoadVideo at 24 fps, up to frames (360 = 15 s), scaled to 960 px on the long side -> RT-DETR v4 (the performer: the best person box per frame) -> InstantHMR medium -> SAM3DBody_Smooth (gaussian, window 7, flips over 30 degrees kept) -> the same look render as the photo graph over every frame (H.264, metadata off). Role pose: the SCAIL pose video on black, ready to drive a SCAIL-style motion transfer. Role body: BuildPoseFile body_mesh, an animated skinned GLB (127 joints, 72 face morphs, 24 fps, camera translation absolute) for Blender, Unreal or any glTF tool. The clip's sound is not carried. CPU only: about 95 s for 4 s of video including the first model loads."
}
]
}
diff --git a/workflows/comfyui/model-pins.json b/workflows/comfyui/model-pins.json
index 4094d04b..c854c762 100644
--- a/workflows/comfyui/model-pins.json
+++ b/workflows/comfyui/model-pins.json
@@ -1468,5 +1468,25 @@
"revision": "21665fa7a1e038e0a5312fb15f37b18d0f06f117",
"sizeBytes": 20970379616,
"sha256": "7ba8cf79f8f09944f743f99b69d85300a70a4bc9493156cb1fff3a68a9716a47"
+ },
+ "https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium.safetensors": {
+ "revision": "964effb58c3358ca8a0e35da386f49de1480ac9e",
+ "sizeBytes": 180730516,
+ "sha256": "76bd71c76683b5c0ea156b8b9c527b8f392832701c3a0377f81b8ba14277ca5e"
+ },
+ "https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium_commercial.safetensors": {
+ "revision": "964effb58c3358ca8a0e35da386f49de1480ac9e",
+ "sizeBytes": 180730516,
+ "sha256": "6fb700552d994da13f8c35434dbcd5836ee01eeba1bba7026764cf06fb7c7d42"
+ },
+ "https://huggingface.co/Comfy-Org/RT-DETR/resolve/8d913979f84c84f155b70ee77d96571a4728430b/diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors": {
+ "revision": "8d913979f84c84f155b70ee77d96571a4728430b",
+ "sizeBytes": 123968978,
+ "sha256": "581f9af9bbabb664d1891cbccd823308b176ecd409146f954dfa39af3bec2476"
+ },
+ "https://huggingface.co/Comfy-Org/sam-3d-body/resolve/7c974aea58e062252a6cb5b6f9b7f639d545b729/detection/sam_3d_body_dinov3_int8_convrot.safetensors": {
+ "revision": "7c974aea58e062252a6cb5b6f9b7f639d545b729",
+ "sizeBytes": 1994073596,
+ "sha256": "ba8d4c34a81bc072b3f53db5241074d370b26e3b72ae793630be5344efd28934"
}
}
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 6bebc169..72e4dbf4 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -3310,6 +3310,540 @@
"essentials_category": null,
"has_intermediate_output": false
},
+ "BuildPoseFile": {
+ "input": {
+ "required": {
+ "pose_data": [
+ "MHR_POSE_DATA,KIMODO_POSE_DATA",
+ {
+ "tooltip": "3D pose data."
+ }
+ ],
+ "format": [
+ "COMFY_DYNAMICCOMBO_V3",
+ {
+ "tooltip": "Output format, both fed to Save 3D Model to write to disk. 'glb' = animated GLB (mesh / bones / openpose / scail). 'bvh' = BVH mocap clip (one skeleton; needs the model).",
+ "options": [
+ {
+ "key": "glb",
+ "inputs": {
+ "required": {
+ "mesh_style": [
+ "COMFY_DYNAMICCOMBO_V3",
+ {
+ "tooltip": "'body_mesh' = real Armature (127 bones, skinning, TRS keyframes, 72 face morphs; needs model). 'bones_only' = bone-shape primitives at each joint (preview armature). 'openpose' = OpenPose-18 3D skeleton from keypoints 'scail' = SCAIL 3D capsule rig (open cylinders capped flush by joint spheres).",
+ "options": [
+ {
+ "key": "body_mesh",
+ "inputs": {
+ "required": {
+ "bone_vis": [
+ "COMFY_DYNAMICCOMBO_V3",
+ {
+ "tooltip": "Bone vis shape, rigidly skinned to each joint. ",
+ "options": [
+ {
+ "key": "off",
+ "inputs": {
+ "required": {}
+ }
+ },
+ {
+ "key": "octahedrons",
+ "inputs": {
+ "required": {
+ "bone_vis_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Radius in m (sphere radius / octahedron half-width).",
+ "advanced": true,
+ "default": 0.02,
+ "min": 0.005,
+ "max": 0.5,
+ "step": 0.005
+ }
+ ],
+ "bone_vis_color": [
+ "COMBO",
+ {
+ "tooltip": "Per-bone vertex colors (unlit material). 'white' = none, 'rainbow_y' = head→toe jet.",
+ "default": "rainbow_y",
+ "multiselect": false,
+ "options": [
+ "white",
+ "rainbow_y"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "shader": [
+ "COMFY_DYNAMICCOMBO_V3",
+ {
+ "tooltip": "Bake per-vertex colors matching the Render node's shaders (COLOR_0 + KHR_materials_unlit). 'default' = no colors.",
+ "options": [
+ {
+ "key": "default",
+ "inputs": {
+ "required": {}
+ }
+ },
+ {
+ "key": "rainbow",
+ "inputs": {
+ "required": {
+ "rainbow_tilt_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around Z (forward). Differentiates left/right.",
+ "default": -35,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "rainbow_tilt_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around X (right). Differentiates front/back.",
+ "default": 0,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "person_palette_falloff": [
+ "FLOAT",
+ {
+ "tooltip": "Per-person desaturation: each track gets (1 - falloff^k) pastel mix.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "rainbow_face_normal",
+ "inputs": {
+ "required": {
+ "rainbow_tilt_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around Z (forward). Differentiates left/right.",
+ "default": -35,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "rainbow_tilt_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around X (right). Differentiates front/back.",
+ "default": 0,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "person_palette_falloff": [
+ "FLOAT",
+ {
+ "tooltip": "Per-person desaturation: each track gets (1 - falloff^k) pastel mix.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "rainbow_face_semantic",
+ "inputs": {
+ "required": {
+ "rainbow_tilt_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around Z (forward). Differentiates left/right.",
+ "default": -35,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "rainbow_tilt_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around X (right). Differentiates front/back.",
+ "default": 0,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "person_palette_falloff": [
+ "FLOAT",
+ {
+ "tooltip": "Per-person desaturation: each track gets (1 - falloff^k) pastel mix.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "bones_only",
+ "inputs": {
+ "required": {
+ "bone_vis": [
+ "COMFY_DYNAMICCOMBO_V3",
+ {
+ "tooltip": "Bone vis shape, rigidly skinned to each joint. 'octahedrons' = Blender-style directional bones (joint → primary child).",
+ "options": [
+ {
+ "key": "octahedrons",
+ "inputs": {
+ "required": {
+ "bone_vis_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Radius in m (sphere radius / octahedron half-width).",
+ "advanced": true,
+ "default": 0.02,
+ "min": 0.005,
+ "max": 0.5,
+ "step": 0.005
+ }
+ ],
+ "bone_vis_color": [
+ "COMBO",
+ {
+ "tooltip": "Per-bone vertex colors (unlit material). 'white' = none, 'rainbow_y' = head→toe jet.",
+ "default": "rainbow_y",
+ "multiselect": false,
+ "options": [
+ "white",
+ "rainbow_y"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "openpose",
+ "inputs": {
+ "required": {
+ "marker_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Sphere radius in m.",
+ "advanced": true,
+ "default": 0.01,
+ "min": 0.005,
+ "max": 0.1,
+ "step": 0.001
+ }
+ ],
+ "stick_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Limb half-width in m. Auto-clamped to bone_length x 0.1.",
+ "advanced": true,
+ "default": 0.008,
+ "min": 0.002,
+ "max": 0.05,
+ "step": 0.001
+ }
+ ],
+ "include_hands": [
+ "BOOLEAN",
+ {
+ "tooltip": "Append 21+21 OpenPose hands (wrist + 5 fingers x 4 joints, base→tip) sourced from pred_keypoints_3d.",
+ "default": false
+ }
+ ],
+ "hand_marker_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Hand sphere radius in m.",
+ "advanced": true,
+ "default": 0.005,
+ "min": 0.001,
+ "max": 0.1,
+ "step": 0.001
+ }
+ ],
+ "hand_stick_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Hand limb half-width in m.",
+ "advanced": true,
+ "default": 0.003,
+ "min": 0.001,
+ "max": 0.05,
+ "step": 0.001
+ }
+ ],
+ "face_style": [
+ "COMBO",
+ {
+ "tooltip": "Face-contour landmarks sampled from pred_vertices at fixed head-mesh vertex IDs (needs canonical_colors on pose_data). 'full' = all ~30 points; 'eyes_mouth' = eyes + outer lips only.",
+ "default": "disabled",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "full",
+ "eyes_mouth"
+ ]
+ }
+ ],
+ "face_marker_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Face dot radius. 0 = auto = 0.3 x marker_radius_m.",
+ "advanced": true,
+ "default": 0,
+ "min": 0,
+ "max": 0.05,
+ "step": 0.0005
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scail",
+ "inputs": {
+ "required": {
+ "stick_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Cylinder radius in m. Bones are open cylinders at constant radius; joint spheres (auto-sized to match) cap the open ends. SCAIL reference = 0.0215 m.",
+ "advanced": true,
+ "default": 0.022,
+ "min": 0.002,
+ "max": 0.1,
+ "step": 0.001
+ }
+ ],
+ "marker_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Joint sphere radius. 0 = auto = stick_radius_m (flush cap).",
+ "advanced": true,
+ "default": 0,
+ "min": 0,
+ "max": 0.1,
+ "step": 0.001
+ }
+ ],
+ "material_roughness": [
+ "FLOAT",
+ {
+ "tooltip": "PBR roughness. SCAIL ref = 0.3. 1 = matte; 0 = chrome.",
+ "advanced": true,
+ "default": 0.3,
+ "min": 0,
+ "max": 1,
+ "step": 0.05
+ }
+ ],
+ "include_hands": [
+ "BOOLEAN",
+ {
+ "tooltip": "Append 21+21 hand keypoints + capsule sticks per track.",
+ "default": false
+ }
+ ],
+ "hand_marker_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Hand sphere radius in m.",
+ "advanced": true,
+ "default": 0.005,
+ "min": 0.001,
+ "max": 0.05,
+ "step": 0.001
+ }
+ ],
+ "hand_stick_radius_m": [
+ "FLOAT",
+ {
+ "tooltip": "Hand cylinder radius in m.",
+ "advanced": true,
+ "default": 0.003,
+ "min": 0.001,
+ "max": 0.05,
+ "step": 0.001
+ }
+ ],
+ "face_style": [
+ "COMBO",
+ {
+ "tooltip": "Face-contour landmarks sampled from pred_vertices (needs canonical_colors on pose_data). 'full' = all ~30 points; 'eyes_mouth' = eyes + outer lips only.",
+ "default": "disabled",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "full",
+ "eyes_mouth"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "bone_smooth_window": [
+ "INT",
+ {
+ "tooltip": "Gaussian smoothing window on per-bone rotation keyframes / keypoint tracks. 0 = off. 7-15 calms spins/jitter where upstream Smooth misses spikes.",
+ "default": 0,
+ "min": 0,
+ "max": 51,
+ "step": 2
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "bvh",
+ "inputs": {
+ "required": {
+ "units": [
+ "COMBO",
+ {
+ "tooltip": "BVH OFFSET/position units. 'cm' is the mocap standard.",
+ "default": "cm",
+ "multiselect": false,
+ "options": [
+ "cm",
+ "m"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "fps": [
+ "FLOAT",
+ {
+ "tooltip": "Animation frame rate.",
+ "default": 24,
+ "min": 1,
+ "max": 240,
+ "step": 1
+ }
+ ],
+ "camera_translation": [
+ "COMBO",
+ {
+ "tooltip": "Bake pred_cam_t into the root's translation 'off' = bind position 'centered' = delta from frame 0 'absolute' = raw (Z is camera depth — usually meters away).",
+ "default": "off",
+ "multiselect": false,
+ "options": [
+ "off",
+ "centered",
+ "absolute"
+ ]
+ }
+ ],
+ "track_index": [
+ "INT",
+ {
+ "tooltip": "-1 = all tracks; ≥0 = single track.",
+ "default": -1,
+ "min": -1,
+ "max": 15
+ }
+ ]
+ },
+ "optional": {
+ "sam3d_body_model": [
+ "SAM3D_BODY_MODEL",
+ {}
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "pose_data",
+ "format",
+ "fps",
+ "camera_translation",
+ "track_index"
+ ],
+ "optional": [
+ "sam3d_body_model"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "FILE_3D"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "model_3d"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "BuildPoseFile",
+ "display_name": "Create 3D Animation File",
+ "description": "Build an animated GLB from pose data, or save a BVH mocap file.",
+ "python_module": "comfy_extras.nodes_sam3d_body",
+ "category": "3d",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "pose animation",
+ "mocap",
+ "glb",
+ "bvh",
+ "build pose file",
+ "save pose file"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
"CFGGuider": {
"input": {
"required": {
@@ -12499,23 +13033,170 @@
"LATENT"
],
"output_is_list": [
- false,
- false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "positive",
+ "negative",
+ "latent"
+ ],
+ "name": "InpaintModelConditioning",
+ "display_name": "InpaintModelConditioning",
+ "description": "",
+ "python_module": "nodes",
+ "category": "model/conditioning",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "InstantHMRLoader": {
+ "input": {
+ "required": {
+ "model_file": [
+ "COMBO",
+ {
+ "multiselect": false,
+ "options": [
+ "instanthmr_medium.safetensors",
+ "instanthmr_medium_commercial.safetensors",
+ "sam_3d_body_dinov3_int8_convrot.safetensors"
+ ]
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model_file"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "INSTANTHMR_MODEL"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "instanthmr_model"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "InstantHMRLoader",
+ "display_name": "Load InstantHMR Model",
+ "description": "",
+ "python_module": "custom_nodes.ComfyUI-InstantHMR",
+ "category": "image/detection",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "InstantHMRPredict": {
+ "input": {
+ "required": {
+ "instanthmr_model": [
+ "INSTANTHMR_MODEL",
+ {}
+ ],
+ "image": [
+ "IMAGE",
+ {}
+ ],
+ "fov": [
+ "FLOAT",
+ {
+ "tooltip": "Vertical FoV in degrees. Sets the depth and absolute scale. 0 = focal of 1.05x the image diagonal.",
+ "advanced": true,
+ "default": 0,
+ "min": 0,
+ "max": 180,
+ "step": 0.1
+ }
+ ],
+ "batch_size": [
+ "INT",
+ {
+ "tooltip": "Person crops per forward pass",
+ "advanced": true,
+ "default": 64,
+ "min": 1,
+ "max": 1024
+ }
+ ]
+ },
+ "optional": {
+ "track_data": [
+ "SAM3_TRACK_DATA",
+ {
+ "tooltip": "Person tracks from SAM3 Video Track, for multi-person video"
+ }
+ ],
+ "bboxes": [
+ "BOUNDING_BOX",
+ {
+ "tooltip": "Per-frame person boxes, e.g. from RT-DETR Detect with class 'person'",
+ "default": {
+ "x": 0,
+ "y": 0,
+ "width": 512,
+ "height": 512
+ },
+ "socketless": true,
+ "forceInput": true
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "instanthmr_model",
+ "image",
+ "fov",
+ "batch_size"
+ ],
+ "optional": [
+ "track_data",
+ "bboxes"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MHR_POSE_DATA"
+ ],
+ "output_is_list": [
false
],
"output_name": [
- "positive",
- "negative",
- "latent"
+ "mhr_pose_data"
],
- "name": "InpaintModelConditioning",
- "display_name": "InpaintModelConditioning",
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "InstantHMRPredict",
+ "display_name": "Run InstantHMR Prediction",
"description": "",
- "python_module": "nodes",
- "category": "model/conditioning",
+ "python_module": "custom_nodes.ComfyUI-InstantHMR",
+ "category": "image/detection",
"output_node": false,
- "has_intermediate_output": false,
- "search_aliases": []
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
},
"InvertMask": {
"input": {
@@ -20638,6 +21319,172 @@
"has_intermediate_output": false,
"search_aliases": []
},
+ "RTDETR_detect": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL",
+ {
+ "display_name": "model"
+ }
+ ],
+ "image": [
+ "IMAGE",
+ {
+ "display_name": "image"
+ }
+ ],
+ "threshold": [
+ "FLOAT",
+ {
+ "display_name": "threshold",
+ "default": 0.5
+ }
+ ],
+ "class_name": [
+ "COMBO",
+ {
+ "tooltip": "Filter detections by class. Set to 'all' to disable filtering.",
+ "default": "all",
+ "multiselect": false,
+ "options": [
+ "all",
+ "person",
+ "bicycle",
+ "car",
+ "motorcycle",
+ "airplane",
+ "bus",
+ "train",
+ "truck",
+ "boat",
+ "traffic light",
+ "fire hydrant",
+ "stop sign",
+ "parking meter",
+ "bench",
+ "bird",
+ "cat",
+ "dog",
+ "horse",
+ "sheep",
+ "cow",
+ "elephant",
+ "bear",
+ "zebra",
+ "giraffe",
+ "backpack",
+ "umbrella",
+ "handbag",
+ "tie",
+ "suitcase",
+ "frisbee",
+ "skis",
+ "snowboard",
+ "sports ball",
+ "kite",
+ "baseball bat",
+ "baseball glove",
+ "skateboard",
+ "surfboard",
+ "tennis racket",
+ "bottle",
+ "wine glass",
+ "cup",
+ "fork",
+ "knife",
+ "spoon",
+ "bowl",
+ "banana",
+ "apple",
+ "sandwich",
+ "orange",
+ "broccoli",
+ "carrot",
+ "hot dog",
+ "pizza",
+ "donut",
+ "cake",
+ "chair",
+ "couch",
+ "potted plant",
+ "bed",
+ "dining table",
+ "toilet",
+ "tv",
+ "laptop",
+ "mouse",
+ "remote",
+ "keyboard",
+ "cell phone",
+ "microwave",
+ "oven",
+ "toaster",
+ "sink",
+ "refrigerator",
+ "book",
+ "clock",
+ "vase",
+ "scissors",
+ "teddy bear",
+ "hair drier",
+ "toothbrush"
+ ]
+ }
+ ],
+ "max_detections": [
+ "INT",
+ {
+ "display_name": "max_detections",
+ "tooltip": "Maximum number of detections to return per image. In order of descending confidence score.",
+ "default": 100
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "image",
+ "threshold",
+ "class_name",
+ "max_detections"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "BOUNDING_BOX"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "bboxes"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "RTDETR_detect",
+ "display_name": "Run Real-Time Detection (RT-DETR)",
+ "description": "",
+ "python_module": "comfy_extras.nodes_rtdetr",
+ "category": "image/detection",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "bbox",
+ "bounding box",
+ "object detection",
+ "coco"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
"RTXTrueHDR": null,
"RTXVideoFrameGeneration": null,
"RTXVideoSuperResolution": null,
@@ -21905,94 +22752,453 @@
"step": 0.05
}
],
- "opacity_threshold": [
+ "opacity_threshold": [
+ "FLOAT",
+ {
+ "tooltip": "Cull gaussians with opacity below this (removes faint floaters).",
+ "advanced": true,
+ "default": 0,
+ "min": 0,
+ "max": 1,
+ "step": 0.01
+ }
+ ],
+ "render_style": [
+ "COMBO",
+ {
+ "tooltip": "What the image output shows: color, clay (neutral-albedo shaded), depth (near=bright), normal (OpenGL normal map).",
+ "multiselect": false,
+ "options": [
+ "color",
+ "clay",
+ "depth",
+ "normal"
+ ]
+ }
+ ],
+ "background": [
+ "COLOR",
+ {
+ "default": "#000000",
+ "socketless": true
+ }
+ ]
+ },
+ "optional": {
+ "bg_image": [
+ "IMAGE",
+ {
+ "tooltip": "Optional background plate composited behind the splat (overrides the solid background colour). Resized to the render size; a batch is used per frame, a single image for all. color/clay only."
+ }
+ ],
+ "camera_info": [
+ "LOAD3D_CAMERA",
+ {
+ "tooltip": "Camera to render from - a Load3D / Preview3D camera or a Create Camera Info node. If empty, the splat is auto-framed from a default 3/4 view."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "splat",
+ "width",
+ "height",
+ "frames",
+ "splat_scale",
+ "sharpen",
+ "headlight_shading",
+ "opacity_threshold",
+ "render_style",
+ "background"
+ ],
+ "optional": [
+ "bg_image",
+ "camera_info"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "MASK"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "image",
+ "mask"
+ ],
+ "output_tooltips": [
+ null,
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "RenderSplat",
+ "display_name": "Render Splat",
+ "description": "Render a gaussian splat as an image with an anisotropic EWA rasterizer (oriented elliptical splats, antialiased, depth-sorted front-to-back). The camera comes from a camera_info input (Load / Preview 3D, or a Create Camera Info node); leave it empty to auto-frame the splat. Set frames greater than 1 for a turntable batch of images to feed a Video node.",
+ "python_module": "comfy_extras.nodes_gaussian_splat",
+ "category": "3d/splat",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "splat to image",
+ "render splat",
+ "gaussian turntable"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "RepeatImageBatch": {
+ "input": {
+ "required": {
+ "image": [
+ "IMAGE",
+ {}
+ ],
+ "amount": [
+ "INT",
+ {
+ "default": 1,
+ "min": 1,
+ "max": 4096
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "image",
+ "amount"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "IMAGE"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "RepeatImageBatch",
+ "display_name": "Repeat Image Batch",
+ "description": "",
+ "python_module": "comfy_extras.nodes_images",
+ "category": "image/batch",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "duplicate image",
+ "clone image"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "RescaleCFG": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL"
+ ],
+ "multiplier": [
"FLOAT",
{
- "tooltip": "Cull gaussians with opacity below this (removes faint floaters).",
- "advanced": true,
- "default": 0,
+ "default": 0.7,
"min": 0,
"max": 1,
"step": 0.01
}
- ],
- "render_style": [
- "COMBO",
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "multiplier"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MODEL"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "MODEL"
+ ],
+ "name": "RescaleCFG",
+ "display_name": "RescaleCFG",
+ "description": "",
+ "python_module": "comfy_extras.nodes_model_advanced",
+ "category": "model/patch",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "ResizeImageMaskNode": {
+ "input": {
+ "required": {
+ "input": [
+ "COMFY_MATCHTYPE_V3",
{
- "tooltip": "What the image output shows: color, clay (neutral-albedo shaded), depth (near=bright), normal (OpenGL normal map).",
- "multiselect": false,
- "options": [
- "color",
- "clay",
- "depth",
- "normal"
- ]
+ "template": {
+ "template_id": "input_type",
+ "allowed_types": "IMAGE,MASK"
+ }
}
],
- "background": [
- "COLOR",
- {
- "default": "#000000",
- "socketless": true
- }
- ]
- },
- "optional": {
- "bg_image": [
- "IMAGE",
+ "resize_type": [
+ "COMFY_DYNAMICCOMBO_V3",
{
- "tooltip": "Optional background plate composited behind the splat (overrides the solid background colour). Resized to the render size; a batch is used per frame, a single image for all. color/clay only."
+ "tooltip": "Select how to resize: by exact dimensions, scale factor, matching another image, etc.",
+ "options": [
+ {
+ "key": "scale dimensions",
+ "inputs": {
+ "required": {
+ "width": [
+ "INT",
+ {
+ "tooltip": "Target width in pixels. Set to 0 to auto-calculate from height while preserving aspect ratio.",
+ "default": 512,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ],
+ "height": [
+ "INT",
+ {
+ "tooltip": "Target height in pixels. Set to 0 to auto-calculate from width while preserving aspect ratio.",
+ "default": 512,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ],
+ "crop": [
+ "COMBO",
+ {
+ "tooltip": "How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.",
+ "default": "center",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "center"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale by multiplier",
+ "inputs": {
+ "required": {
+ "multiplier": [
+ "FLOAT",
+ {
+ "tooltip": "Scale factor (e.g., 2.0 doubles size, 0.5 halves size).",
+ "default": 1,
+ "min": 0.01,
+ "max": 8,
+ "step": 0.01
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale longer dimension",
+ "inputs": {
+ "required": {
+ "longer_size": [
+ "INT",
+ {
+ "tooltip": "The longer edge will be resized to this value. Aspect ratio is preserved.",
+ "default": 512,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale shorter dimension",
+ "inputs": {
+ "required": {
+ "shorter_size": [
+ "INT",
+ {
+ "tooltip": "The shorter edge will be resized to this value. Aspect ratio is preserved.",
+ "default": 512,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale width",
+ "inputs": {
+ "required": {
+ "width": [
+ "INT",
+ {
+ "tooltip": "Target width in pixels. Height auto-adjusts to preserve aspect ratio.",
+ "default": 512,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale height",
+ "inputs": {
+ "required": {
+ "height": [
+ "INT",
+ {
+ "tooltip": "Target height in pixels. Width auto-adjusts to preserve aspect ratio.",
+ "default": 512,
+ "min": 0,
+ "max": 16384,
+ "step": 1
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale total pixels",
+ "inputs": {
+ "required": {
+ "megapixels": [
+ "FLOAT",
+ {
+ "tooltip": "Target total megapixels (e.g., 1.0 ≈ 1024×1024). Aspect ratio is preserved.",
+ "default": 1,
+ "min": 0.01,
+ "max": 16,
+ "step": 0.01
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "match size",
+ "inputs": {
+ "required": {
+ "match": [
+ "IMAGE,MASK",
+ {
+ "tooltip": "Resize input to match the dimensions of this reference image or mask."
+ }
+ ],
+ "crop": [
+ "COMBO",
+ {
+ "tooltip": "How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.",
+ "default": "center",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "center"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "scale to multiple",
+ "inputs": {
+ "required": {
+ "multiple": [
+ "INT",
+ {
+ "tooltip": "Resize so width and height are divisible by this number. Useful for latent alignment (e.g., 8 or 64).",
+ "default": 8,
+ "min": 1,
+ "max": 16384,
+ "step": 1
+ }
+ ]
+ }
+ }
+ }
+ ]
}
],
- "camera_info": [
- "LOAD3D_CAMERA",
+ "scale_method": [
+ "COMBO",
{
- "tooltip": "Camera to render from - a Load3D / Preview3D camera or a Create Camera Info node. If empty, the splat is auto-framed from a default 3/4 view."
+ "tooltip": "Interpolation algorithm. 'area' is best for downscaling, 'lanczos' for upscaling, 'nearest-exact' for pixel art.",
+ "default": "area",
+ "multiselect": false,
+ "options": [
+ "nearest-exact",
+ "bilinear",
+ "area",
+ "bicubic",
+ "lanczos"
+ ]
}
]
}
},
"input_order": {
"required": [
- "splat",
- "width",
- "height",
- "frames",
- "splat_scale",
- "sharpen",
- "headlight_shading",
- "opacity_threshold",
- "render_style",
- "background"
- ],
- "optional": [
- "bg_image",
- "camera_info"
+ "input",
+ "resize_type",
+ "scale_method"
]
},
"is_input_list": false,
"output": [
- "IMAGE",
- "MASK"
+ "COMFY_MATCHTYPE_V3"
],
"output_is_list": [
- false,
false
],
"output_name": [
- "image",
- "mask"
+ "resized"
],
"output_tooltips": [
- null,
null
],
- "output_matchtypes": null,
- "name": "RenderSplat",
- "display_name": "Render Splat",
- "description": "Render a gaussian splat as an image with an anisotropic EWA rasterizer (oriented elliptical splats, antialiased, depth-sorted front-to-back). The camera comes from a camera_info input (Load / Preview 3D, or a Create Camera Info node); leave it empty to auto-frame the splat. Set frames greater than 1 for a turntable batch of images to feed a Video node.",
- "python_module": "comfy_extras.nodes_gaussian_splat",
- "category": "3d/splat",
+ "output_matchtypes": [
+ "input_type"
+ ],
+ "name": "ResizeImageMaskNode",
+ "display_name": "Resize Image/Mask",
+ "description": "Resize an image or mask using various scaling methods.",
+ "python_module": "comfy_extras.nodes_post_processing",
+ "category": "image/transform",
"output_node": false,
"deprecated": false,
"experimental": false,
@@ -22000,34 +23206,45 @@
"api_node": false,
"price_badge": null,
"search_aliases": [
- "splat to image",
- "render splat",
- "gaussian turntable"
+ "resize",
+ "resize image",
+ "resize mask",
+ "scale",
+ "scale image",
+ "scale mask",
+ "image resize",
+ "change size",
+ "dimensions",
+ "shrink",
+ "enlarge"
],
"essentials_category": null,
"has_intermediate_output": false
},
- "RepeatImageBatch": {
+ "ResizeImagesByLongerEdge": {
"input": {
"required": {
- "image": [
+ "images": [
"IMAGE",
- {}
+ {
+ "tooltip": "Image to process."
+ }
],
- "amount": [
+ "longer_edge": [
"INT",
{
- "default": 1,
+ "tooltip": "Target dimension for the longer edge.",
+ "default": 1024,
"min": 1,
- "max": 4096
+ "max": 8192
}
]
}
},
"input_order": {
"required": [
- "image",
- "amount"
+ "images",
+ "longer_edge"
]
},
"is_input_list": false,
@@ -22038,122 +23255,382 @@
false
],
"output_name": [
- "IMAGE"
+ "images"
+ ],
+ "output_tooltips": [
+ "Processed images"
+ ],
+ "output_matchtypes": null,
+ "name": "ResizeImagesByLongerEdge",
+ "display_name": "Resize Images by Longer Edge (DEPRECATED)",
+ "description": "Resize images so that the longer edge matches the specified dimension while preserving aspect ratio.",
+ "python_module": "comfy_extras.nodes_dataset",
+ "category": "image/transform",
+ "output_node": false,
+ "deprecated": true,
+ "experimental": true,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "RotateMesh": {
+ "input": {
+ "required": {
+ "mesh": [
+ "MESH",
+ {}
+ ],
+ "mode": [
+ "COMFY_DYNAMICCOMBO_V3",
+ {
+ "options": [
+ {
+ "key": "euler_xyz",
+ "inputs": {
+ "required": {
+ "angle_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotation around the X axis in degrees.",
+ "default": 0,
+ "min": -360,
+ "max": 360,
+ "step": 0.1
+ }
+ ],
+ "angle_y": [
+ "FLOAT",
+ {
+ "tooltip": "Rotation around the Y axis in degrees.",
+ "default": 0,
+ "min": -360,
+ "max": 360,
+ "step": 0.1
+ }
+ ],
+ "angle_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotation around the Z axis in degrees.",
+ "default": 0,
+ "min": -360,
+ "max": 360,
+ "step": 0.1
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "quaternion",
+ "inputs": {
+ "required": {
+ "qw": [
+ "FLOAT",
+ {
+ "default": 1,
+ "min": -1,
+ "max": 1,
+ "step": 0.001
+ }
+ ],
+ "qx": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": -1,
+ "max": 1,
+ "step": 0.001
+ }
+ ],
+ "qy": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": -1,
+ "max": 1,
+ "step": 0.001
+ }
+ ],
+ "qz": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": -1,
+ "max": 1,
+ "step": 0.001
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "mesh",
+ "mode"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MESH"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "mesh"
],
"output_tooltips": [
null
],
"output_matchtypes": null,
- "name": "RepeatImageBatch",
- "display_name": "Repeat Image Batch",
- "description": "",
- "python_module": "comfy_extras.nodes_images",
- "category": "image/batch",
+ "name": "RotateMesh",
+ "display_name": "Rotate Mesh",
+ "description": "Rotate a mesh. Euler XYZ applies X then Y then Z about the world axes (degrees). Quaternion is (w, x, y, z), auto-normalized.",
+ "python_module": "comfy_extras.nodes_save_3d",
+ "category": "3d/mesh",
"output_node": false,
"deprecated": false,
"experimental": false,
"dev_only": false,
"api_node": false,
"price_badge": null,
- "search_aliases": [
- "duplicate image",
- "clone image"
- ],
+ "search_aliases": null,
"essentials_category": null,
"has_intermediate_output": false
},
- "RescaleCFG": {
+ "SAM3DBody_Loader": {
"input": {
"required": {
- "model": [
- "MODEL"
- ],
- "multiplier": [
- "FLOAT",
+ "model_file": [
+ "COMBO",
{
- "default": 0.7,
- "min": 0,
- "max": 1,
- "step": 0.01
+ "multiselect": false,
+ "options": [
+ "instanthmr_medium.safetensors",
+ "instanthmr_medium_commercial.safetensors",
+ "sam_3d_body_dinov3_int8_convrot.safetensors"
+ ]
}
]
}
},
"input_order": {
"required": [
- "model",
- "multiplier"
+ "model_file"
]
},
"is_input_list": false,
"output": [
- "MODEL"
+ "SAM3D_BODY_MODEL"
],
"output_is_list": [
false
],
"output_name": [
- "MODEL"
+ "sam3d_body_model"
],
- "name": "RescaleCFG",
- "display_name": "RescaleCFG",
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "SAM3DBody_Loader",
+ "display_name": "Load SAM3D Body Model",
"description": "",
- "python_module": "comfy_extras.nodes_model_advanced",
- "category": "model/patch",
+ "python_module": "comfy_extras.nodes_sam3d_body",
+ "category": "image/detection",
"output_node": false,
- "has_intermediate_output": false,
- "search_aliases": []
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
},
- "ResizeImageMaskNode": {
+ "SAM3DBody_Render": {
"input": {
"required": {
- "input": [
- "COMFY_MATCHTYPE_V3",
+ "pose_data": [
+ "MHR_POSE_DATA,KIMODO_POSE_DATA",
{
- "template": {
- "template_id": "input_type",
- "allowed_types": "IMAGE,MASK"
- }
+ "tooltip": "MHR pose data, or external Y-up rig pose data (KimodoSample). All render styles work for external rigs that carry OpenPose joint maps in their _skeleton_override (KimodoSample does)."
}
],
- "resize_type": [
+ "width": [
+ "INT",
+ {
+ "tooltip": "Output width in pixels. 0 = use pose data's native image_size. If only one of width/height is set, the other is derived preserving the original aspect.",
+ "default": 0,
+ "min": 0,
+ "max": 16384,
+ "step": 8
+ }
+ ],
+ "height": [
+ "INT",
+ {
+ "tooltip": "Output height in pixels. 0 = use pose data's native image_size. If only one of width/height is set, the other is derived preserving the original aspect.",
+ "default": 0,
+ "min": 0,
+ "max": 16384,
+ "step": 8
+ }
+ ],
+ "render_style": [
"COMFY_DYNAMICCOMBO_V3",
{
- "tooltip": "Select how to resize: by exact dimensions, scale factor, matching another image, etc.",
+ "tooltip": "'mesh' = 3D MHR mesh rasterized through the camera. 'silhouette' = binary mask of the mesh. 'openpose_2d' = flat 2D skeleton 'openpose_3d' = openpose skeleton as flat-shaded 3D model 'scail' = SCAIL 3D capsules ",
"options": [
{
- "key": "scale dimensions",
+ "key": "mesh",
"inputs": {
"required": {
- "width": [
- "INT",
+ "shader": [
+ "COMFY_DYNAMICCOMBO_V3",
{
- "tooltip": "Target width in pixels. Set to 0 to auto-calculate from height while preserving aspect ratio.",
- "default": 512,
- "min": 0,
- "max": 16384,
- "step": 1
+ "tooltip": "Preset shader. 'normals' = current surface normal in camera space (OpenGL Y+ normal-map convention: +X→R, +Y→G, +Z→B). 'rainbow' = RealisDance style body-Y jet; the 'rainbow_face_*' variants override face verts with normal/per-region colors; 'depth' = linear gray.",
+ "options": [
+ {
+ "key": "default",
+ "inputs": {
+ "required": {}
+ }
+ },
+ {
+ "key": "normals",
+ "inputs": {
+ "required": {}
+ }
+ },
+ {
+ "key": "rainbow",
+ "inputs": {
+ "required": {
+ "rainbow_tilt_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around Z (forward). Differentiates left/right.",
+ "default": -35,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "rainbow_tilt_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around X (right). Differentiates front/back.",
+ "default": 0,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "rainbow_face_normal",
+ "inputs": {
+ "required": {
+ "rainbow_tilt_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around Z (forward). Differentiates left/right.",
+ "default": -35,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "rainbow_tilt_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around X (right). Differentiates front/back.",
+ "default": 0,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "rainbow_face_semantic",
+ "inputs": {
+ "required": {
+ "rainbow_tilt_z": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around Z (forward). Differentiates left/right.",
+ "default": -35,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ],
+ "rainbow_tilt_x": [
+ "FLOAT",
+ {
+ "tooltip": "Rotate rainbow jet axis around X (right). Differentiates front/back.",
+ "default": 0,
+ "min": -90,
+ "max": 90,
+ "step": 0.5
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "depth",
+ "inputs": {
+ "required": {}
+ }
+ }
+ ]
}
],
- "height": [
- "INT",
+ "opacity": [
+ "FLOAT",
{
- "tooltip": "Target height in pixels. Set to 0 to auto-calculate from width while preserving aspect ratio.",
- "default": 512,
+ "tooltip": "Mesh alpha over the background image, or over black when none is connected.",
+ "default": 1,
"min": 0,
- "max": 16384,
- "step": 1
+ "max": 1,
+ "step": 0.01
}
],
- "crop": [
+ "person_palette_falloff": [
+ "FLOAT",
+ {
+ "tooltip": "Per-person desaturation toward white: track k gets a (1 - falloff^k) pastel mix (SCAIL 'softer second person'). 1.0 = off.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
+ }
+ ],
+ "region": [
"COMBO",
{
- "tooltip": "How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.",
- "default": "center",
+ "tooltip": "'hands_only' filters faces via the precomputed `hand_vert_mask` (LBS weights against canonical hand KPs) — isolates the hand mesh for debugging. Falls back to full mesh if the mask is missing.",
+ "default": "full_body",
"multiselect": false,
"options": [
- "disabled",
- "center"
+ "full_body",
+ "hands_only"
]
}
]
@@ -22161,144 +23638,166 @@
}
},
{
- "key": "scale by multiplier",
+ "key": "silhouette",
"inputs": {
- "required": {
- "multiplier": [
- "FLOAT",
- {
- "tooltip": "Scale factor (e.g., 2.0 doubles size, 0.5 halves size).",
- "default": 1,
- "min": 0.01,
- "max": 8,
- "step": 0.01
- }
- ]
- }
+ "required": {}
}
},
{
- "key": "scale longer dimension",
+ "key": "openpose_2d",
"inputs": {
"required": {
- "longer_size": [
+ "marker_radius_px": [
"INT",
{
- "tooltip": "The longer edge will be resized to this value. Aspect ratio is preserved.",
- "default": 512,
- "min": 0,
- "max": 16384,
+ "tooltip": "Body keypoint dot radius (px).",
+ "default": 4,
+ "min": 1,
+ "max": 32,
"step": 1
}
- ]
- }
- }
- },
- {
- "key": "scale shorter dimension",
- "inputs": {
- "required": {
- "shorter_size": [
+ ],
+ "stick_width_px": [
"INT",
{
- "tooltip": "The shorter edge will be resized to this value. Aspect ratio is preserved.",
- "default": 512,
- "min": 0,
- "max": 16384,
+ "tooltip": "Body limb ellipse half-width (px). DWPose default = 4.",
+ "default": 4,
+ "min": 1,
+ "max": 32,
"step": 1
}
- ]
- }
- }
- },
- {
- "key": "scale width",
- "inputs": {
- "required": {
- "width": [
- "INT",
+ ],
+ "limb_alpha": [
+ "FLOAT",
{
- "tooltip": "Target width in pixels. Height auto-adjusts to preserve aspect ratio.",
- "default": 512,
+ "tooltip": "Per-limb alpha. DWPose default = 0.6.",
+ "default": 0.6,
"min": 0,
- "max": 16384,
- "step": 1
+ "max": 1,
+ "step": 0.05
}
- ]
- }
- }
- },
- {
- "key": "scale height",
- "inputs": {
- "required": {
- "height": [
- "INT",
+ ],
+ "face_style": [
+ "COMBO",
{
- "tooltip": "Target height in pixels. Width auto-adjusts to preserve aspect ratio.",
- "default": 512,
- "min": 0,
- "max": 16384,
- "step": 1
+ "tooltip": "'full' = all face landmarks (sapiens-238 if present, else rig-fallback ~30). 'eyes_mouth' = rig-fallback subset (~12 dots: eyes + outer lips only). 'disabled' = no face dots.",
+ "default": "disabled",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "full",
+ "eyes_mouth"
+ ]
+ }
+ ],
+ "hand_style": [
+ "COMBO",
+ {
+ "tooltip": "Draw 21+21 hand keypoints + sticks. 'disabled' = no hands. 'dwpose' = solid-blue dots; 'openpose' = rainbow dots.",
+ "default": "disabled",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "dwpose",
+ "openpose"
+ ]
+ }
+ ],
+ "person_palette_falloff": [
+ "FLOAT",
+ {
+ "tooltip": "Per-person desaturation: track k blends toward white by 1 - falloff^k. Track 0 stays vivid; 1.0 disables falloff.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
}
]
}
}
},
{
- "key": "scale total pixels",
+ "key": "openpose_3d",
"inputs": {
"required": {
- "megapixels": [
+ "radius_m": [
"FLOAT",
{
- "tooltip": "Target total megapixels (e.g., 1.0 ≈ 1024×1024). Aspect ratio is preserved.",
- "default": 1,
- "min": 0.01,
- "max": 16,
- "step": 0.01
+ "tooltip": "Limb capsule radius in meters (thin = stick-like).",
+ "default": 0.015,
+ "min": 0.004,
+ "max": 0.1,
+ "step": 0.001
+ }
+ ],
+ "include_hands": [
+ "BOOLEAN",
+ {
+ "tooltip": "Draw 21+21 hand keypoints as 3D capsules.",
+ "default": true
+ }
+ ],
+ "person_palette_falloff": [
+ "FLOAT",
+ {
+ "tooltip": "Per-person desaturation: track k blends toward white by 1 - falloff^k. Track 0 stays vivid; 1.0 disables falloff.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
}
]
}
}
},
{
- "key": "match size",
+ "key": "scail",
"inputs": {
"required": {
- "match": [
- "IMAGE,MASK",
+ "radius_m": [
+ "FLOAT",
{
- "tooltip": "Resize input to match the dimensions of this reference image or mask."
+ "tooltip": "Capsule radius in meters (SCAIL reference: ~0.022 m).",
+ "default": 0.022,
+ "min": 0.005,
+ "max": 0.2,
+ "step": 0.001
+ }
+ ],
+ "hand_style": [
+ "COMBO",
+ {
+ "tooltip": "Composite 2D OpenPose hands on top of the 3D capsule body (matches SCAIL — no 3D hand capsules). 'disabled' = no hands. 'dwpose' = solid-blue hand dots; 'openpose' = rainbow dots. Sticks stay rainbow per-finger either way.",
+ "default": "dwpose",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "dwpose",
+ "openpose"
+ ]
}
],
- "crop": [
+ "face_style": [
"COMBO",
{
- "tooltip": "How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.",
- "default": "center",
+ "tooltip": "'full' = all face landmarks (sapiens-238 if present, else rig-fallback ~30). 'eyes_mouth' = rig-fallback subset (~12 dots: eyes + outer lips only). 'disabled' = no face dots.",
+ "default": "disabled",
"multiselect": false,
"options": [
"disabled",
- "center"
+ "full",
+ "eyes_mouth"
]
}
- ]
- }
- }
- },
- {
- "key": "scale to multiple",
- "inputs": {
- "required": {
- "multiple": [
- "INT",
+ ],
+ "person_palette_falloff": [
+ "FLOAT",
{
- "tooltip": "Resize so width and height are divisible by this number. Useful for latent alignment (e.g., 8 or 64).",
- "default": 8,
- "min": 1,
- "max": 16384,
- "step": 1
+ "tooltip": "Per-person desaturation: track k blends toward white by 1 - falloff^k. Track 0 stays vivid; 1.0 disables falloff.",
+ "default": 0.6,
+ "min": 0.1,
+ "max": 1,
+ "step": 0.05
}
]
}
@@ -22306,52 +23805,54 @@
}
]
}
+ ]
+ },
+ "optional": {
+ "background": [
+ "IMAGE",
+ {
+ "tooltip": "Per-frame background. Omitted = black canvas."
+ }
],
- "scale_method": [
- "COMBO",
+ "camera_info": [
+ "LOAD3D_CAMERA",
{
- "tooltip": "Interpolation algorithm. 'area' is best for downscaling, 'lanczos' for upscaling, 'nearest-exact' for pixel art.",
- "default": "area",
- "multiselect": false,
- "options": [
- "nearest-exact",
- "bilinear",
- "area",
- "bicubic",
- "lanczos"
- ]
+ "tooltip": "Free 6DOF camera override. When wired, the pose is re-projected through this camera (position/target/zoom/rotation/FoV) instead of the predicted one. "
}
]
}
},
"input_order": {
"required": [
- "input",
- "resize_type",
- "scale_method"
+ "pose_data",
+ "width",
+ "height",
+ "render_style"
+ ],
+ "optional": [
+ "background",
+ "camera_info"
]
},
"is_input_list": false,
"output": [
- "COMFY_MATCHTYPE_V3"
+ "IMAGE"
],
"output_is_list": [
false
],
"output_name": [
- "resized"
+ "image"
],
"output_tooltips": [
null
],
- "output_matchtypes": [
- "input_type"
- ],
- "name": "ResizeImageMaskNode",
- "display_name": "Resize Image/Mask",
- "description": "Resize an image or mask using various scaling methods.",
- "python_module": "comfy_extras.nodes_post_processing",
- "category": "image/transform",
+ "output_matchtypes": null,
+ "name": "SAM3DBody_Render",
+ "display_name": "Render 3D Body Pose",
+ "description": "",
+ "python_module": "comfy_extras.nodes_sam3d_body",
+ "category": "image/detection",
"output_node": false,
"deprecated": false,
"experimental": false,
@@ -22359,197 +23860,94 @@
"api_node": false,
"price_badge": null,
"search_aliases": [
- "resize",
- "resize image",
- "resize mask",
- "scale",
- "scale image",
- "scale mask",
- "image resize",
- "change size",
- "dimensions",
- "shrink",
- "enlarge"
+ "Render SAM3D Body",
+ "sam3d render",
+ "kimodo render"
],
"essentials_category": null,
"has_intermediate_output": false
},
- "ResizeImagesByLongerEdge": {
+ "SAM3DBody_Smooth": {
"input": {
"required": {
- "images": [
- "IMAGE",
+ "mhr_pose_data": [
+ "MHR_POSE_DATA",
+ {}
+ ],
+ "strength": [
+ "FLOAT",
{
- "tooltip": "Image to process."
+ "tooltip": "Smoothing strength. 0 = raw, 1 = smoothed.",
+ "default": 1,
+ "min": 0,
+ "max": 1,
+ "step": 0.05
}
],
- "longer_edge": [
+ "method": [
+ "COMBO",
+ {
+ "tooltip": "gaussian: symmetric weighted average, best general-purpose smoother.\nsavgol: sliding polynomial fit, preserves sharp peaks.",
+ "default": "savgol",
+ "multiselect": false,
+ "options": [
+ "gaussian",
+ "savgol"
+ ]
+ }
+ ],
+ "window": [
"INT",
{
- "tooltip": "Target dimension for the longer edge.",
- "default": 1024,
+ "tooltip": "Temporal window in frames (odd values).",
+ "advanced": true,
+ "default": 7,
"min": 1,
- "max": 8192
+ "max": 51,
+ "step": 2
}
- ]
- }
- },
- "input_order": {
- "required": [
- "images",
- "longer_edge"
- ]
- },
- "is_input_list": false,
- "output": [
- "IMAGE"
- ],
- "output_is_list": [
- false
- ],
- "output_name": [
- "images"
- ],
- "output_tooltips": [
- "Processed images"
- ],
- "output_matchtypes": null,
- "name": "ResizeImagesByLongerEdge",
- "display_name": "Resize Images by Longer Edge (DEPRECATED)",
- "description": "Resize images so that the longer edge matches the specified dimension while preserving aspect ratio.",
- "python_module": "comfy_extras.nodes_dataset",
- "category": "image/transform",
- "output_node": false,
- "deprecated": true,
- "experimental": true,
- "dev_only": false,
- "api_node": false,
- "price_badge": null,
- "search_aliases": null,
- "essentials_category": null,
- "has_intermediate_output": false
- },
- "RotateMesh": {
- "input": {
- "required": {
- "mesh": [
- "MESH",
- {}
],
- "mode": [
- "COMFY_DYNAMICCOMBO_V3",
+ "rotation_threshold_degrees": [
+ "FLOAT",
{
- "options": [
- {
- "key": "euler_xyz",
- "inputs": {
- "required": {
- "angle_x": [
- "FLOAT",
- {
- "tooltip": "Rotation around the X axis in degrees.",
- "default": 0,
- "min": -360,
- "max": 360,
- "step": 0.1
- }
- ],
- "angle_y": [
- "FLOAT",
- {
- "tooltip": "Rotation around the Y axis in degrees.",
- "default": 0,
- "min": -360,
- "max": 360,
- "step": 0.1
- }
- ],
- "angle_z": [
- "FLOAT",
- {
- "tooltip": "Rotation around the Z axis in degrees.",
- "default": 0,
- "min": -360,
- "max": 360,
- "step": 0.1
- }
- ]
- }
- }
- },
- {
- "key": "quaternion",
- "inputs": {
- "required": {
- "qw": [
- "FLOAT",
- {
- "default": 1,
- "min": -1,
- "max": 1,
- "step": 0.001
- }
- ],
- "qx": [
- "FLOAT",
- {
- "default": 0,
- "min": -1,
- "max": 1,
- "step": 0.001
- }
- ],
- "qy": [
- "FLOAT",
- {
- "default": 0,
- "min": -1,
- "max": 1,
- "step": 0.001
- }
- ],
- "qz": [
- "FLOAT",
- {
- "default": 0,
- "min": -1,
- "max": 1,
- "step": 0.001
- }
- ]
- }
- }
- }
- ]
+ "tooltip": "Disables smoothing for this root rotation rate (degree/frame) to preserve fast spins. 30° suits most content, low values might disable smoothing on ordinary jitter and silently impacts quality. 0 = disable.",
+ "advanced": true,
+ "default": 30,
+ "min": 0,
+ "max": 90,
+ "step": 1
}
]
}
},
"input_order": {
"required": [
- "mesh",
- "mode"
+ "mhr_pose_data",
+ "strength",
+ "method",
+ "window",
+ "rotation_threshold_degrees"
]
},
"is_input_list": false,
"output": [
- "MESH"
+ "MHR_POSE_DATA"
],
"output_is_list": [
false
],
"output_name": [
- "mesh"
+ "mhr_pose_data"
],
"output_tooltips": [
null
],
"output_matchtypes": null,
- "name": "RotateMesh",
- "display_name": "Rotate Mesh",
- "description": "Rotate a mesh. Euler XYZ applies X then Y then Z about the world axes (degrees). Quaternion is (w, x, y, z), auto-normalized.",
- "python_module": "comfy_extras.nodes_save_3d",
- "category": "3d/mesh",
+ "name": "SAM3DBody_Smooth",
+ "display_name": "Smooth SAM3D Body Pose Data",
+ "description": "Reduce frame-to-frame jitter via temporal smoothing.",
+ "python_module": "comfy_extras.nodes_sam3d_body",
+ "category": "image/detection",
"output_node": false,
"deprecated": false,
"experimental": false,
diff --git a/workflows/comfyui/packs.json b/workflows/comfyui/packs.json
index 2060b57b..3afa4113 100644
--- a/workflows/comfyui/packs.json
+++ b/workflows/comfyui/packs.json
@@ -597,5 +597,16 @@
"isolated": false,
"subdir": "comfyui/ComfyUI-Viggle-Remake",
"folders": []
+ },
+ "ComfyUI-InstantHMR": {
+ "repo": "https://github.com/jtydhr88/ComfyUI-InstantHMR",
+ "commit": "36d85573438e5de5d2fe63ba2dbca927c6a16c9b",
+ "registry": null,
+ "requirementsTxt": false,
+ "isolated": false,
+ "subdir": null,
+ "folders": [
+ "detection"
+ ]
}
}
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index 4d38a815..79d798b8 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,9 +1,9 @@
{
"v": 1,
- "hash": "a36c6d6d4fa2699e0ba6cd9eb50009f29ab43ef50a431a64ec93d4d77305a26f",
+ "hash": "0de0196d90e5823ce56c7f382b71e3c0bc2fe21d3167f739eca40afd4dc38fef",
"comfyui": {"min":"0.42.0","testedCommit":"5841c187"},
- "folders": ["Hi3D","RMBG","audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","kandinsky6_audio_vae","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","sams","text_encoders","thinksound","upscale_models","vae"],
- "sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","AuKGenerateEdit","AuKModelLoader","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","Hi3DLoadMesh","Hi3DModelLoader","Hi3DRefine","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","IdolCamera","IdolPreprocessImage","IdolPruneSplat","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Kandinsky6AudioVAEDecode","Kandinsky6AudioVAELoader","Kandinsky6BeautifyPrompt","Kandinsky6EmptyLatent","Kandinsky6ImageToVideoAudio","Kandinsky6LatentUpscalerLoader","Kandinsky6RemoveReferenceLatent","Kandinsky6SRVAELoader","Kandinsky6Sampler","Kandinsky6TextEncode","Kandinsky6VSRUpscale","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","NomasCameraPath","NomasWorldContinue","NomasWorldGenerate","NomasWorldPrompt","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","ReActorFaceSwap","RemakeConditioning","RemakeKeyframeUntil","RemakeNoise","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
+ "folders": ["Hi3D","RMBG","audio_encoders","background_removal","checkpoints","clip_vision","dbs","detection","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","kandinsky6_audio_vae","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","sams","text_encoders","thinksound","upscale_models","vae"],
+ "sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","AuKGenerateEdit","AuKModelLoader","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","Hi3DLoadMesh","Hi3DModelLoader","Hi3DRefine","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","IdolCamera","IdolPreprocessImage","IdolPruneSplat","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","InstantHMRLoader","InstantHMRPredict","Kandinsky6AudioVAEDecode","Kandinsky6AudioVAELoader","Kandinsky6BeautifyPrompt","Kandinsky6EmptyLatent","Kandinsky6ImageToVideoAudio","Kandinsky6LatentUpscalerLoader","Kandinsky6RemoveReferenceLatent","Kandinsky6SRVAELoader","Kandinsky6Sampler","Kandinsky6TextEncode","Kandinsky6VSRUpscale","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","NomasCameraPath","NomasWorldContinue","NomasWorldGenerate","NomasWorldPrompt","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","ReActorFaceSwap","RemakeConditioning","RemakeKeyframeUntil","RemakeNoise","RemoveBackground","SAM3DBody_Loader","SAM3DBody_Render","SAM3DBody_Smooth","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
"packs": {
"ComfyUI-AuK": {"repo":"https://github.com/Tencent-Hunyuan/AuK","commit":"0d40366b1039e37c6cad008ab4713f6ad6d954b7","classes":["AuKGenerateEdit","AuKModelLoader"],"folders":[],"isolated":false,"subdir":"comfyui/ComfyUI-AuK","requirementsTxt":false,"install":"manual"},
"ComfyUI-CorridorKey2": {"repo":"https://github.com/hashu786/ComfyUI-CorridorKey2","commit":"d1228b68796786acee92b6497f72a60d70d1a844","classes":["CorridorKey2"],"folders":["corridorkey2"],"isolated":false,"requirementsTxt":true,"install":"manual"},
@@ -16,6 +16,7 @@
"ComfyUI-Idol": {"repo":"https://github.com/Nynxz/ComfyUI-Idol","commit":"4d3a4f671028f0e062d9f004cda1a2dd73360d35","classes":["IdolCamera","IdolPreprocessImage","IdolPruneSplat"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},
"ComfyUI-Impact-Pack": {"repo":"https://github.com/ltdrdata/ComfyUI-Impact-Pack","commit":"","registry":{"id":"comfyui-impact-pack","version":"8.28.3"},"classes":["SAMLoader"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"registry"},
"ComfyUI-IndexTTS2": {"repo":"https://github.com/snicolast/ComfyUI-IndexTTS2","commit":"5b33e02bc0112b8aaf1fc823d5e5a609ca07fc27","classes":["IndexTTS2Simple"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},
+ "ComfyUI-InstantHMR": {"repo":"https://github.com/jtydhr88/ComfyUI-InstantHMR","commit":"36d85573438e5de5d2fe63ba2dbca927c6a16c9b","classes":["InstantHMRLoader","InstantHMRPredict"],"folders":["detection"],"isolated":false,"requirementsTxt":false,"install":"manual"},
"ComfyUI-KJNodes": {"repo":"https://github.com/kijai/ComfyUI-KJNodes","commit":"17195fcfa8a05f601b766a0f09c9733284f47416","registry":{"id":"comfyui-kjnodes","version":""},"classes":["GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","INTConstant","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","VRAM_Debug"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},
"ComfyUI-Krea2-Ostris-Edit": {"repo":"https://github.com/ostris/ComfyUI-Krea2-Ostris-Edit","commit":"7756566160c4a1b24bb1bd9f0ff3ced1a83d7547","registry":{"id":"comfyui-krea2-ostris-edit","version":""},"classes":["Krea2OstrisEditModelPatch","TextEncodeKrea2OstrisEdit"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},
"ComfyUI-LTXVideo": {"repo":"https://github.com/Lightricks/ComfyUI-LTXVideo","commit":"220e1d45aa0469f518e982102fca4dca92a61862","registry":{"id":"ComfyUI-LTXVideo","version":""},"classes":["LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVTiledFusionSampler"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},
@@ -98,6 +99,8 @@
"dbs/DBS-BSRNN-DnR/model.safetensors": {"folder":"dbs","file":"DBS-BSRNN-DnR/model.safetensors","url":"https://huggingface.co/JusperLee/DBS-BSRNN-DnR/resolve/5af343f57f106fbb95efe8a60f1a3999eeb0aef8/model.safetensors","pinnedUrl":"https://huggingface.co/JusperLee/DBS-BSRNN-DnR/resolve/5af343f57f106fbb95efe8a60f1a3999eeb0aef8/model.safetensors","sizeBytes":18886156,"gated":false,"packFolder":"ComfyUI-DBS","presence":"list"},
"dbs/DBS-TIGER-DnR/config.json": {"folder":"dbs","file":"DBS-TIGER-DnR/config.json","url":"https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/config.json","pinnedUrl":"https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/config.json","sizeBytes":957,"sha256":"c7f7893323e78f9b99747a13090558a13c4f4b77383a38acb9979709fd04d1d8","gated":false,"packFolder":"ComfyUI-DBS","presence":"unobservable"},
"dbs/DBS-TIGER-DnR/model.safetensors": {"folder":"dbs","file":"DBS-TIGER-DnR/model.safetensors","url":"https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/model.safetensors","pinnedUrl":"https://huggingface.co/JusperLee/DBS-TIGER-DnR/resolve/22da7d4cd3ea63f9365181008bff1c0d2ab6fb2b/model.safetensors","sizeBytes":4111836,"gated":false,"packFolder":"ComfyUI-DBS","presence":"list"},
+ "detection/instanthmr_medium.safetensors": {"folder":"detection","file":"instanthmr_medium.safetensors","url":"https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium.safetensors","pinnedUrl":"https://huggingface.co/jtydhr88/ComfyUI-InstantHMR/resolve/964effb58c3358ca8a0e35da386f49de1480ac9e/instanthmr_medium.safetensors","sizeBytes":180730516,"gated":false,"packFolder":"ComfyUI-InstantHMR","presence":"loader","loaders":[["InstantHMRLoader","model_file"]]},
+ "detection/sam_3d_body_dinov3_int8_convrot.safetensors": {"folder":"detection","file":"sam_3d_body_dinov3_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/sam-3d-body/resolve/7c974aea58e062252a6cb5b6f9b7f639d545b729/detection/sam_3d_body_dinov3_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/sam-3d-body/resolve/7c974aea58e062252a6cb5b6f9b7f639d545b729/detection/sam_3d_body_dinov3_int8_convrot.safetensors","sizeBytes":1994073596,"gated":false,"packFolder":"ComfyUI-InstantHMR","presence":"loader","loaders":[["SAM3DBody_Loader","model_file"]]},
"diffusion_models/Kandinsky-6.0-Lite-distill-5s-Diffusers/transformer/diffusion_pytorch_model.safetensors": {"folder":"diffusion_models","file":"Kandinsky-6.0-Lite-distill-5s-Diffusers/transformer/diffusion_pytorch_model.safetensors","url":"https://huggingface.co/kandinskylab/Kandinsky-6.0-Lite-distill-5s-Diffusers/resolve/4c487e8b4aeeb9059e5a77905aa2ddb59ec28f81/transformer/diffusion_pytorch_model.safetensors","pinnedUrl":"https://huggingface.co/kandinskylab/Kandinsky-6.0-Lite-distill-5s-Diffusers/resolve/4c487e8b4aeeb9059e5a77905aa2ddb59ec28f81/transformer/diffusion_pytorch_model.safetensors","sizeBytes":6381599096,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
"diffusion_models/Kandinsky-6.0-Pro-distill-5s-Diffusers/transformer/diffusion_pytorch_model.safetensors": {"folder":"diffusion_models","file":"Kandinsky-6.0-Pro-distill-5s-Diffusers/transformer/diffusion_pytorch_model.safetensors","url":"https://huggingface.co/kandinskylab/Kandinsky-6.0-Pro-distill-5s-Diffusers/resolve/80d5e6c7f646c5f512b684e2da0765618d805894/transformer/diffusion_pytorch_model.safetensors","pinnedUrl":"https://huggingface.co/kandinskylab/Kandinsky-6.0-Pro-distill-5s-Diffusers/resolve/80d5e6c7f646c5f512b684e2da0765618d805894/transformer/diffusion_pytorch_model.safetensors","sizeBytes":60344993576,"gated":false,"presence":"list"},
"diffusion_models/Kandinsky-6.0-VSR-distilled2steps-5s-Diffusers/latent_upscaler/config.json": {"folder":"diffusion_models","file":"Kandinsky-6.0-VSR-distilled2steps-5s-Diffusers/latent_upscaler/config.json","url":"https://huggingface.co/kandinskylab/Kandinsky-6.0-VSR-distilled2steps-5s-Diffusers/resolve/3d6672923a4dfcd387961864654e123dd53b8ee4/latent_upscaler/config.json","pinnedUrl":"https://huggingface.co/kandinskylab/Kandinsky-6.0-VSR-distilled2steps-5s-Diffusers/resolve/3d6672923a4dfcd387961864654e123dd53b8ee4/latent_upscaler/config.json","sizeBytes":2258,"sha256":"a459869598068c6f075c19b9fbb8ebaf62b24b8db848d49640949eaa3726f636","gated":false,"presence":"unobservable"},
@@ -158,6 +161,7 @@
"diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors": {"folder":"diffusion_models","file":"qwen_image_edit_2511_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/f68ace85e60b4a02a323e394253731947657b7d2/split_files/diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors","sizeBytes":20499083824,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
"diffusion_models/qwen_image_layered_control_bf16.safetensors": {"folder":"diffusion_models","file":"qwen_image_layered_control_bf16.safetensors","url":"https://huggingface.co/DiffSynth-Studio/Qwen-Image-Layered-Control/resolve/main/qwen_image_layered_control_bf16.safetensors","pinnedUrl":"https://huggingface.co/DiffSynth-Studio/Qwen-Image-Layered-Control/resolve/b42868fa977f681d1813188b9f9f5ee5184d6603/qwen_image_layered_control_bf16.safetensors","sizeBytes":40861043888,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
"diffusion_models/qwen_image_layered_fp8mixed.safetensors": {"folder":"diffusion_models","file":"qwen_image_layered_fp8mixed.safetensors","url":"https://huggingface.co/Comfy-Org/Qwen-Image-Layered_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_layered_fp8mixed.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/Qwen-Image-Layered_ComfyUI/resolve/02130716aaf54a36f84c9fcfa8a373ab06284e2b/split_files/diffusion_models/qwen_image_layered_fp8mixed.safetensors","sizeBytes":20533591821,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
+ "diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors": {"folder":"diffusion_models","file":"rt_detr_v4-x-hgnet_fp16.safetensors","url":"https://huggingface.co/Comfy-Org/RT-DETR/resolve/8d913979f84c84f155b70ee77d96571a4728430b/diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/RT-DETR/resolve/8d913979f84c84f155b70ee77d96571a4728430b/diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors","sizeBytes":123968978,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
"diffusion_models/seedvr2_3b_int8_convrot.safetensors": {"folder":"diffusion_models","file":"seedvr2_3b_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/diffusion_models/seedvr2_3b_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/SeedVR2/resolve/df48879708206a403d2a61acd55578c2e80fd233/diffusion_models/seedvr2_3b_int8_convrot.safetensors","sizeBytes":3458259704,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
"diffusion_models/seedvr2_7b_int8_convrot.safetensors": {"folder":"diffusion_models","file":"seedvr2_7b_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/diffusion_models/seedvr2_7b_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/SeedVR2/resolve/df48879708206a403d2a61acd55578c2e80fd233/diffusion_models/seedvr2_7b_int8_convrot.safetensors","sizeBytes":8334897976,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
"diffusion_models/trellis_2_int8_convrot.safetensors": {"folder":"diffusion_models","file":"trellis_2_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/main/diffusion_models/trellis_2_int8_convrot.safetensors","pinnedUrl":"https://huggingface.co/Comfy-Org/TRELLIS.2/resolve/430a9d09b2416687018c8fe8edced2ad4858a439/diffusion_models/trellis_2_int8_convrot.safetensors","sizeBytes":5253048192,"gated":false,"presence":"loader","loaders":[["UNETLoader","unet_name"]]},
@@ -334,6 +338,8 @@
"audio-timeline": {"core":["AudioConcat","AudioMerge","EmptyAudio","LoadAudio","SaveAudio","TrimAudioDuration"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true,"cpu":true},
"bg-remove-birefnet": {"core":["InvertMask","JoinImageWithAlpha","LoadBackgroundRemovalModel","LoadImage","RemoveBackground","SaveImage"],"packs":{},"files":["background_removal/birefnet.safetensors"],"optional":[],"vramGb":4,"isolated":false,"firstRun":[],"validated":true},
"bg-remove-rmbg": {"core":["LoadImage","SaveImage"],"packs":{"ComfyUI-RMBG":["RMBG"]},"files":[],"optional":[],"vramGb":4,"isolated":false,"firstRun":["ComfyUI-RMBG downloads the selected model (BEN2 -> models/RMBG/BEN2) from Hugging Face on first run"],"validated":true},
+ "body-double-clip-instanthmr": {"core":["BuildPoseFile","ImageScaleToMaxDimension","RTDETR_detect","SAM3DBody_Loader","SAM3DBody_Render","SAM3DBody_Smooth","SaveGLB","UNETLoader"],"packs":{"ComfyUI-InstantHMR":["InstantHMRLoader","InstantHMRPredict"],"ComfyUI-VideoHelperSuite":["VHS_LoadVideo","VHS_VideoCombine"]},"files":["detection/instanthmr_medium.safetensors","detection/sam_3d_body_dinov3_int8_convrot.safetensors","diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors"],"optional":[],"vramGb":6,"isolated":false,"firstRun":[],"validated":true},
+ "body-double-photo-instanthmr": {"core":["BuildPoseFile","LoadImage","RTDETR_detect","SAM3DBody_Loader","SAM3DBody_Render","SaveGLB","SaveImage","UNETLoader"],"packs":{"ComfyUI-InstantHMR":["InstantHMRLoader","InstantHMRPredict"]},"files":["detection/instanthmr_medium.safetensors","detection/sam_3d_body_dinov3_int8_convrot.safetensors","diffusion_models/rt_detr_v4-x-hgnet_fp16.safetensors"],"optional":[],"vramGb":4,"isolated":false,"firstRun":[],"validated":true},
"captions-burnin": {"core":["ConcatenateVideo","CreateVideo","GetVideoComponents","LoadAudio","LoadVideo","SaveVideo","TextOverlay","Video Slice"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true,"cpu":true},
"captions-qwen3-asr": {"core":["LoadAudio","PreviewAny","SaveText"],"packs":{"ComfyUI-QwenASR":["AILab_Qwen3ASRSubtitle"]},"files":[],"optional":[],"vramGb":4,"isolated":false,"firstRun":["AILab_Qwen3ASRSubtitle downloads Qwen/Qwen3-ASR-0.6B-hf (1.56 GB) and Qwen/Qwen3-ForcedAligner-0.6B-hf (1.84 GB) into models/Qwen3-ASR on first run"],"validated":true},
"captions-whisper-burnin": {"core":["SaveText"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfoLoaded"],"ComfyUI-Whisper":["Add Subtitles To Frames","Apply Whisper"]},"files":[],"optional":[],"vramGb":6,"isolated":false,"firstRun":["Apply Whisper downloads large-v3-turbo.pt (1.62 GB) into models/stt/whisper on first run"],"validated":true},