CLI Commands

DIPLOMAT supports the following list of subcommands when running it’s CLI.

Tracking and Analysis Commands

diplomat track_with

Run DIPLOMAT tracking on videos and/or frame stores. Automatically select a frontend based on the passed arguments. Allows for selecting a specific tracker, or predictor.

diplomat track_and_interact

Run diplomat in interactive tracking mode on the specified config and videos or frame stores. An alias for DIPLOMAT track_with with the SupervisedSegmentedFramePassEngine predictor.

diplomat track

Run diplomat in a non-interactive tracking mode on the specified config and videos or frame stores. An alias for DIPLOMAT track_with with the SegmentedFramePassEngine predictor. The interactive UI can be restored later using diplomat interact function or cli command.

diplomat annotate

Have diplomat annotate, or label a video given it has already been tracked.

diplomat split_videos

Split a video into even length segments. This will produce a list of videos with “-part{number}” appended to the original video name in the same directory as the original video.

diplomat tweak

Make modifications to DIPLOMAT produced tracking results created for a video using a limited version of the interactive labeling UI. Allows for touching up and fixing any minor issues that may arise after tracking and saving results.

diplomat yaml

Run DIPLOMAT based on a passed yaml run script. The yaml script should include a ‘command’ key specifying the DIPLOMAT sub-command to run and an ‘arguments’ key specifying the list of arguments (key-value pairs) to pass to the command.

diplomat interact

Open diplomat’s interactive UI from a .dipui file. Allows for reloading the UI when diplomat crashes, or for further editing. Settings and backend will be restored automatically based on the settings and info passed during the first run.

diplomat convert_tracks

Convert files storing final tracking results for a video from other software to diplomat’s csv format.

Development Commands

diplomat predictors list

Retrieve and print all currently installed and available predictor plugins that can be used with DIPLOMAT to the console…

diplomat predictors test

Run the tests for a predictor plugin.

diplomat predictors list_settings

Prints the available/modifiable settings for a specified predictor plugin.

diplomat frontends list all

List all frontends currently included with this version of DIPLOMAT.

diplomat frontends list loaded

List frontends that have successfully loaded, and list their supported functions.