CLI
traccuracy
traccuracy [OPTIONS] COMMAND [ARGS]...
Options
- --install-completion
Install completion for the current shell.
- --show-completion
Show completion for the current shell, to copy it or customize the installation.
run-aogm
Run general AOGM measure on gt and pred data using CTC matching.
If gt_track_path and pred_track_path are not passed, we find *_track.txt
files in the data directories. If more than one such file is present, or
no such files are present, an error is raised.
Optionally, weights for each error type can be passed.
Results will be dumped to out_path in JSON format.
Raises ValueError: if any –loader besides ctc is passed.
traccuracy run-aogm [OPTIONS] GT_DIR PRED_DIR
Options
- --gt-track-path <gt_track_path>
Path to ctc gt track file
- --pred-track-path <pred_track_path>
Path to predicted track file
- --loader <loader>
Loader to bring data into memory
- Default:
ctc
- --out-path <out_path>
Path to save results
- Default:
aogm_log.json
- --vertex-ns-weight <vertex_ns_weight>
Weight to assign to nonsplit vertex errors
- Default:
1
- --vertex-fp-weight <vertex_fp_weight>
Weight to assign to false positive vertex errors
- Default:
1
- --vertex-fn-weight <vertex_fn_weight>
Weight to assign to false negative vertex errors
- Default:
1
- --edge-fp-weight <edge_fp_weight>
Weight to assign to false positive edge errors
- Default:
1
- --edge-fn-weight <edge_fn_weight>
Weight to assign to false negative edge errors
- Default:
1
- --edge-ws-weight <edge_ws_weight>
Weight to assign to edges with incorrect semantics
- Default:
1
Arguments
- GT_DIR
Required argument
- PRED_DIR
Required argument
run-ctc
Run TRA and DET metric on gt and pred data using CTC matching.
If –gt_track_path and –pred_track_path are not passed, we find *_track.txt
files in the data directories. If more than one such file is present, or
no such files are present, an error is raised.
Results will be dumped to –out_path in JSON format.
Raises ValueError: if any –loader besides ctc is passed.
traccuracy run-ctc [OPTIONS] GT_DIR PRED_DIR
Options
- --gt-track-path <gt_track_path>
Path to ctc gt track file
- --pred-track-path <pred_track_path>
Path to predicted track file
- --loader <loader>
Loader to bring data into memory
- Default:
ctc
- --out-path <out_path>
Path to save results
- Default:
ctc_log.json
Arguments
- GT_DIR
Required argument
- PRED_DIR
Required argument
run-divisions-on-ctc
Run division metrics on gt and pred data using CTC matching.
If –gt_track_path and –pred_track_path are not passed, we find *_track.txt
files in the data directories. If more than one such file is present, or
no such files are present, an error is raised.
Optionally, a –frame_buffer can be passed.
Results will be dumped to –out_path in JSON format.
Raises ValueError: if any –loader besides ctc is passed.
traccuracy run-divisions-on-ctc [OPTIONS] GT_DIR PRED_DIR
Options
- --gt-track-path <gt_track_path>
Path to ctc gt track file
- --pred-track-path <pred_track_path>
Path to predicted track file
- --loader <loader>
Loader to bring data into memory
- Default:
ctc
- --out-path <out_path>
Path to save results
- Default:
div_log_ctc.json
- --frame-buffer <frame_buffer>
Number of frames to use for division tolerance. Numbers greater than 0 will produce metrics for 0…n inclusive.
- Default:
0
Arguments
- GT_DIR
Required argument
- PRED_DIR
Required argument
run-divisions-on-iou
Run division metrics on gt and pred data using IOU matching.
If –gt_track_path and –pred_track_path are not passed, we find *_track.txt
files in the data directories. If more than one such file is present, or
no such files are present, an error is raised.
Optionally, a –match_threshold and –frame_buffer can be passed.
Results will be dumped to –out_path in JSON format.
Raises ValueError: if any –loader besides ctc is passed.
traccuracy run-divisions-on-iou [OPTIONS] GT_DIR PRED_DIR
Options
- --gt-track-path <gt_track_path>
Path to ctc gt track file
- --pred-track-path <pred_track_path>
Path to predicted track file
- --loader <loader>
Loader to bring data into memory
- Default:
ctc
- --out-path <out_path>
Path to save results
- Default:
div_log_iou.json
- --match-threshold <match_threshold>
Threshold above which the intersection over union of a gt and predicted detection match. Default of 1 requires exact matching.
- Default:
1
- --frame-buffer <frame_buffer>
Number of frames to use for division tolerance. Numbers greater than 0 will produce metrics for 0…n inclusive.
- Default:
0
Arguments
- GT_DIR
Required argument
- PRED_DIR
Required argument