motcpp icon indicating copy to clipboard operation
motcpp copied to clipboard

[Bug]: `auto_benchmark.sh` uses named arguments that are not supported by `motcpp_eval`

Open leothevan2444 opened this issue 6 months ago • 0 comments

Bug Description

The scripts/auto_benchmark.sh script invokes motcpp_eval with named CLI arguments such as --tracker, --dataset, --dets, and --output.

However, the current implementation of tools/motcpp_eval.cpp expects positional arguments:

motcpp_eval <mot_root> <output_dir> [tracking_method] [det_emb_root] [model_name] [reid_name] [reid_weights]

Because of this mismatch, running the benchmark script fails when it reaches the evaluation step. There is also a tracker name mismatch: the script and documentation refer to ucmctrack, while motcpp_eval currently accepts ucmc.

Steps to Reproduce

  1. Build the project with tools enabled:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DMOTCPP_BUILD_TOOLS=ON
cmake --build build -j$(nproc)
  1. Run the benchmark script:
./scripts/auto_benchmark.sh --benchmark --tracker bytetrack
  1. Observe that the script calls:
./tools/motcpp_eval \
    --tracker bytetrack \
    --dataset benchmark_data/MOT17-mini/train \
    --dets yolox \
    --output benchmark_results/bytetrack_yolox

motcpp_eval interprets --tracker and bytetrack as positional arguments instead of named options, causing the evaluation step to fail.

Expected Behavior

auto_benchmark.sh and motcpp_eval should use a consistent CLI contract.

Ideally, motcpp_eval should support the documented named arguments:

./build/tools/motcpp_eval \
    --tracker bytetrack \
    --dataset benchmark_data/MOT17-mini/train \
    --dets yolox \
    --output benchmark_results/bytetrack_yolox

It would also be helpful for motcpp_eval to accept ucmctrack as an alias for ucmc, since the script and documentation use ucmctrack.

Code Sample


Tracker

No response

motcpp Version

1.0.0

Operating System

Linux (Ubuntu)

Compiler & Version

No response

Additional Context

Some content was generated by Codex.

leothevan2444 avatar Jun 05 '26 08:06 leothevan2444