pub unsafe extern "C" fn train_detector(
    datacfg: *mut c_char,
    cfgfile: *mut c_char,
    weightfile: *mut c_char,
    gpus: *mut c_int,
    ngpus: c_int,
    clear: c_int,
    dont_show: c_int,
    calc_map: c_int,
    thresh: f32,
    iou_thresh: f32,
    mjpeg_port: c_int,
    show_imgs: c_int,
    benchmark_layers: c_int,
    chart_path: *mut c_char
)