ComfyUI Extension
sam3d-body-comfyUI-camshottoolkit
A ComfyUI extension with 5 custom nodes.
EnviralDesign/sam3d-body-comfyUI-camshottoolkit
Nodes5
On cloudLocal install
CategoryCamShotToolkit, CamShotToolkit/visualization
Stars1
Updatedabout a month ago
Nodes (5)
Readme
SAM3D Body ComfyUI Cam Shot Toolkit
Minimal ComfyUI custom node package for:
Cam Shot Toolkit: Load SAM3D ModelCam Shot Toolkit: Load SAM3 Person DetectorCam Shot Toolkit: Process ImageCam Shot Toolkit: Render Offset View
This repo is a focused extraction from a larger SAM3DBody node pack, trimmed for calibrated pose-to-camera-shot workflows.
Install
- Clone or copy this repo into
ComfyUI/custom_nodes/. - Install dependencies with ComfyUI-Manager or manually:
python -m pip install -r requirements.txt
- Restart ComfyUI.
This package installs into ComfyUI's active Python environment. It does not attempt to replace ComfyUI's existing torch / torchvision install. A working ComfyUI CUDA environment is expected already.
Registry Publishing
This repository is prepared for Comfy Registry publishing.
Before publishing:
- Set your real
PublisherIdinpyproject.toml. - Create a Registry publishing API key for that publisher.
- Publish with:
comfy node publish
Included
- SAM3D model loader with Hugging Face auto-download
- SAM3 person detector loader with official gated repo support and ungated mirror fallback for prompt-based multi-person detection
- single-image SAM3D processing node
- person selection for SAM3D outputs:
person_index=-1uses all detected people, while0..Nselects a specific detected person. When no mask is connected, nonzero selection modes automatically run a torchvision person detector so multi-person inputs produce multiple SAM3D crops. - calibrated offset renderer with pivot, background, and lighting controls
- interactive browser viewer for scouting the render camera with orbit, pan, roll, and dolly controls
- optional render
automode that ignores saved viewer camera state and realigns from each SAM3D input for API workflows
Node Categories
CamShotToolkitCamShotToolkit/processingCamShotToolkit/visualization
Notes
- Model weights are downloaded automatically on first use into
ComfyUI/models/sam3dbody. - SAM3 detector weights are downloaded into
ComfyUI/models/sam3_person_detector. The detector loader triesfacebook/sam3first inautomode and falls back to an ungated mirror such asjetjodh/sam3if official access is gated. - The render node uses a self-contained NumPy mesh rasterizer. It does not use
pyrender, PyOpenGL, pyglet, OSMesa, or EGL. - The browser viewer remains a Three.js preview for camera scouting. The saved camera state is rendered by the backend rasterizer during workflow execution.
install.pyis intentionally a no-op for Registry compliance. Dependency installation should be handled by ComfyUI-Manager or an explicitpip install -r requirements.txt.
Donations & Support
If this saves you time, you can support the work here: