``diplomat sleap analyze_videos`` --------------------------------- .. rubric:: Summary Run DIPLOMAT tracking on a set of videos or a single video using a SLEAP model, generating results in ".slp" files. .. rubric:: Usage .. code-block:: text diplomat sleap analyze_videos [-h] --config [FILE, ...]|FILE --videos [FILE, ...]|FILE [--batch_size INT] [--num_outputs INT] [--predictor STR] [--predictor_settings {STR: VAL, ...}] [--gpu_index INT] [--output_suffix STR] [--refinement_kernel_size INT] [--use_cpu FLAG] [--pcutoff FLOAT] [--dotsize INT] [--alphavalue FLOAT] [--colormap TO_COLORMAP] [--shape_list [STR, ...]] [--line_thickness INT] [--skeleton [[STR, STR], ...]|{STR: [STR, ...], ...}|[STR, ...]|NONE|BOOL] .. rubric:: Options .. code-block:: text -h, --help show this help message and exit --config [FILE, ...]|FILE, -c [FILE, ...]|FILE The path (or list of paths) to the sleap model(s) used for inference, each as either as a folder or zip file. --videos [FILE, ...]|FILE, -v [FILE, ...]|FILE A path or list of paths to video files to run DIPLOMAT on using the passed SLEAP model. --batch_size INT, -bs INT An integer, the number of images to pass to the model per batch. --num_outputs INT, -no INT An integer, the number of individuals in the video defaults to 1. --predictor STR, -p STR A string, the name of the predictor to use to perform the task of tracking. --predictor_settings {STR: VAL, ...}, -ps {STR: VAL, ...} A dictionary of strings to any values, the settings to use for the predictor. Each predictor offers different settings, see --gpu_index INT, -gi INT An integer, the index of the GPU to use. If not set DIPLOMAT allows SLEAP to automatically select a GPU. --output_suffix STR, -os STR A string, the suffix to append onto the output .slp file. Defaults to an empty string. --refinement_kernel_size INT, -rks INT An integer, the kernel size to use for creating offset maps if they don't exist (via integral refinement). defaults to False, if set to 0 or a negative integer disables integral refinement. --use_cpu FLAG, -uc FLAG A boolean, if True force SLEAP to use the CPU to run the model. Defaults to False. --pcutoff FLOAT The probability to cutoff results below. --dotsize INT The size of the dots. --alphavalue FLOAT The alpha value of the dots. --colormap TO_COLORMAP The colormap to use for tracked points in the video. Can be a matplotlib colormap or a list of matplotlib colors. --shape_list [STR, ...] A list of shape names, shapes to use for drawing each individual's dots. --line_thickness INT Thickness of lines drawn. --skeleton [[STR, STR], ...]|{STR: [STR, ...], ...}|[STR, ...]|NONE|BOOL The skeleton to use for this this run of DIPLOMAT. Defaults to None, which uses the skeleton associated with the sleap project. Can be a list of strings, a list of tuples of strings, a dictionary of strings to strings or lists of strings, or True/False (True connects all parts, False connects no parts, disabling the skeleton).