Rotobot Next CLI Reference

CLI Arguments

	usage: rotobot_next [-h] [--mattes_folder MATTES_FOLDER] --mask_type {sam3,vit,user} --image_folder IMAGE_FOLDER --depth_folder DEPTH_FOLDER [--output_folder OUTPUT_FOLDER] [--checkpoint_path CHECKPOINT_PATH] [--detector_name DETECTOR_NAME]
                    [--segmentor_name SEGMENTOR_NAME] [--fov_name FOV_NAME] [--detector_path DETECTOR_PATH] [--segmentor_path SEGMENTOR_PATH] [--fov_path FOV_PATH] [--mhr_path MHR_PATH] [--bbox_thresh BBOX_THRESH] [--use_mask] [--debug_output]
	                [--mattes_output] [--filled_shapes_per_person_output] [--z_threshold Z_THRESHOLD]
	
	Rotobot Next from Tokgan: Creates visualisation and JSON file structure for spline based mattes                                     
	                                                                                                                                    
	options:                                                                                                                            
	  -h, --help            show this help message and exit                                                                             
	  --mattes_folder MATTES_FOLDER                                                                                                     
	                        Path to folder of matte images                                                                              
	  --mask_type {sam3,vit,user}                                                                                                       
	                        Path to file string of matte images                                                                         
	  --image_folder IMAGE_FOLDER                                                                                                       
	                        Path to folder containing input images                                                                      
	  --depth_folder DEPTH_FOLDER                                                                                                       
	                        Path to folder containing input images                                                                      
	  --output_folder OUTPUT_FOLDER                                                                                                     
	                        Path to output folder (default: ./output/)                                               
	  --checkpoint_path CHECKPOINT_PATH                                                                                                 
	                        Path to SAM 3D Body model checkpoint                                                                        
	  --detector_name DETECTOR_NAME                                                                                                     
	                        Human detection model for demo (Default `vitdet`, add your favorite detector if needed).                    
	  --segmentor_name SEGMENTOR_NAME                                                                                                   
	                        Human segmentation model for demo (Default `sam2`, add your favorite segmentor if needed).                  
	  --fov_name FOV_NAME   FOV estimation model for demo (Default `moge2`, add your favorite fov estimator if needed).                 
	  --detector_path DETECTOR_PATH                                                                                                     
	                        Path to human detection model folder (or set SAM3D_DETECTOR_PATH)                                           
	  --segmentor_path SEGMENTOR_PATH                                                                                                   
	                        Path to human segmentation model folder (or set SAM3D_SEGMENTOR_PATH)                                       
	  --fov_path FOV_PATH   Path to fov estimation model folder (or set SAM3D_FOV_PATH)                                                 
	  --mhr_path MHR_PATH   Path to MoHR/assets folder (or set SAM3D_mhr_path)                                                          
	  --bbox_thresh BBOX_THRESH                                                                                                         
	                        Bounding box detection threshold                                                                            
	  --use_mask            Use mask-conditioned prediction (segmentation mask is automatically generated from bbox)                    
	  --debug_output        Create pixel based debug                                                                                    
	  --mattes_output       Create pixel based mattes                                                                                   
	  --filled_shapes_per_person_output                                                                                                 
	                        Create pixel based mattes                                                                                   
	  --z_threshold Z_THRESHOLD                                                                                                         
	                        depth threshold in metres gets multipled by body thickness                                                  
	                                                                                                                                    
	                Examples:                                                                                                           
	                rotobot_next --image_folder ./images --mask_type vit --output_folder ./json                                          
	                                                                                                                                      
	                Environment Variables:                                                                                                
	                SAM3D_MHR_PATH: Path to MHR asset                                                                                     
	                SAM3D_DETECTOR_PATH: Path to human detection model folder                                                             
	                SAM3D_FOV_PATH: Path to fov estimation model folder                                                                 
	                SAM3D_SEGMENTOR_PATH: Path to human segmentation model folder                                                        
	                SAM3D_FOV_PATH: Path to fov estimation model folder                                                                 
	
	

Dependencies & Open Source

The following libraries are packaged and utilized within the Rotobot Next engine:

CPython https://github.com/python/cpython/blob/1857a40807daeae3a1bf5efb682de9c9ae6df845/LICENSE
Source Repository
CUDA https://docs.nvidia.com/cuda/archive/12.8.1/eula/index.html
Source Repository
Depth Anything 3 https://raw.githubusercontent.com/ByteDance-Seed/Depth-Anything-3/refs/heads/main/LICENSE
Source Repository
cuDNN https://docs.nvidia.com/deeplearning/cudnn/backend/latest/reference/eula.html
Source Repository
ftfy fixes text for you Python https://github.com/rspeer/python-ftfy/blob/74dd0452b48286a3770013b3a02755313bd5575e/LICENSE.txt
Source Repository
iopath https://raw.githubusercontent.com/facebookresearch/iopath/refs/heads/main/LICENSE
Source Repository
Momentum Human Rig https://github.com/facebookresearch/MHR/blob/main/LICENSE
Source Repository
MoGE https://raw.githubusercontent.com/microsoft/MoGe/refs/heads/main/LICENSE
Source Repository
numpy https://github.com/numpy/numpy/blob/a90ef57574c501a780fe834123b20fcea1329f90/LICENSE.txt
Source Repository
opencv https://github.com/opencv/opencv/blob/105a7747207e678aca53aee17b0f77f1bbd6bdef/LICENSE
Source Repository
PyInstaller https://github.com/pyinstaller/pyinstaller/blob/9efb6f823ef872f9ff6cd365396df7a63459582b/COPYING.txt
Source Repository
pytorch https://github.com/pytorch/pytorch/blob/main/LICENSE
Source Repository
regex python https://github.com/micbou/regex/blob/d2ef9c49e34bb6dbbe5fa503755dd07c62365aae/PyPI/PKG-INFO
Source Repository
SAM3 Meta https://github.com/facebookresearch/sam3/blob/11dec2936de97f2857c1f76b66d982d5a001155d/LICENSE
Source Repository
SAM3 Body 3D https://github.com/facebookresearch/sam-3d-body/blob/c259bfc38500b1ce9e7048e1a4592e13b84108fe/LICENSE
Source Repository
SciPy https://raw.githubusercontent.com/scipy/scipy/refs/heads/main/LICENSE.txt
Source Repository
timm https://github.com/pprp/timm/blob/master/LICENSE
Source Repository
tqdm https://github.com/tqdm/tqdm/blob/0ed5d7f18fa3153834cbac0aa57e8092b217cc16/LICENCE
Source Repository