Darknet/YOLO v3.0-177-gfa2353b
Object Detection Framework
 
Loading...
Searching...
No Matches
box.cpp File Reference
Include dependency graph for box.cpp:

Functions

float box_ciou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_diou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_giou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_iou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_iou_kind (const Darknet::Box &a, const Darknet::Box &b, const IOU_LOSS iou_kind)
 
float box_rmse (const Darknet::Box &a, const Darknet::Box &b)
 
Darknet::Box decode_box (const Darknet::Box &b, const Darknet::Box &anchor)
 
dbox diou (const Darknet::Box &a, const Darknet::Box &b)
 
void diounms_sort (detection *dets, int total, int classes, float thresh, NMS_KIND nms_kind, float beta1)
 This is part of the original C API. Non Maxima Suppression.
 
void do_nms (Darknet::Box *boxes, float **probs, int total, int classes, float thresh)
 
void do_nms_obj (detection *dets, int total, int classes, float thresh)
 This is part of the original C API. Non Maxima Suppression.
 
void do_nms_sort (detection *dets, int total, int classes, float thresh)
 This is part of the original C API. Non Maxima Suppression.
 
void do_nms_sort_v2 (Darknet::Box *boxes, float **probs, int total, int classes, float thresh)
 
dxrep dx_box_iou (const Darknet::Box &pred, const Darknet::Box &truth, const IOU_LOSS iou_loss)
 
Darknet::Box encode_box (const Darknet::Box &b, const Darknet::Box &anchor)
 
Darknet::Box float_to_box (const float *f)
 
Darknet::Box float_to_box_stride (const float *f, const int stride)
 
void test_box ()
 
void test_dintersect ()
 
void test_dunion ()
 

Function Documentation

◆ box_ciou()

float box_ciou ( const Darknet::Box a,
const Darknet::Box b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_diou()

float box_diou ( const Darknet::Box a,
const Darknet::Box b 
)

https://github.com/Zzh-tju/DIoU-darknet https://arxiv.org/abs/1911.08287

Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_giou()

float box_giou ( const Darknet::Box a,
const Darknet::Box b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_iou()

float box_iou ( const Darknet::Box a,
const Darknet::Box b 
)
Here is the caller graph for this function:

◆ box_iou_kind()

float box_iou_kind ( const Darknet::Box a,
const Darknet::Box b,
const IOU_LOSS  iou_kind 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_rmse()

float box_rmse ( const Darknet::Box a,
const Darknet::Box b 
)

◆ decode_box()

Darknet::Box decode_box ( const Darknet::Box b,
const Darknet::Box anchor 
)

◆ diou()

dbox diou ( const Darknet::Box a,
const Darknet::Box b 
)
Todo:
the following IF statement always evaluated to true due to the "|| 1" comparison. That line was changed by AlexeyAB on 2019-11-23. Was that an accident? Should the code below never run? Or was this a debug modification that was accidentally left in the code?
Todo:
due to the error (?) in the IF statmeent above, we'll never get to the code below this line!
Here is the caller graph for this function:

◆ diounms_sort()

void diounms_sort ( detection dets,
int  total,
int  classes,
float  thresh,
NMS_KIND  nms_kind,
float  beta1 
)

This is part of the original C API. Non Maxima Suppression.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_nms()

void do_nms ( Darknet::Box boxes,
float **  probs,
int  total,
int  classes,
float  thresh 
)
Here is the call graph for this function:

◆ do_nms_obj()

void do_nms_obj ( detection dets,
int  total,
int  classes,
float  thresh 
)

This is part of the original C API. Non Maxima Suppression.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_nms_sort()

void do_nms_sort ( detection dets,
int  total,
int  classes,
float  thresh 
)

This is part of the original C API. Non Maxima Suppression.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_nms_sort_v2()

void do_nms_sort_v2 ( Darknet::Box boxes,
float **  probs,
int  total,
int  classes,
float  thresh 
)
Todo:
replace qsort() low priority
Here is the call graph for this function:

◆ dx_box_iou()

dxrep dx_box_iou ( const Darknet::Box pred,
const Darknet::Box truth,
const IOU_LOSS  iou_loss 
)

◆ encode_box()

Darknet::Box encode_box ( const Darknet::Box b,
const Darknet::Box anchor 
)

◆ float_to_box()

Darknet::Box float_to_box ( const float *  f)
Here is the caller graph for this function:

◆ float_to_box_stride()

Darknet::Box float_to_box_stride ( const float *  f,
const int  stride 
)
Here is the caller graph for this function:

◆ test_box()

void test_box ( )
Here is the call graph for this function:

◆ test_dintersect()

void test_dintersect ( )
Here is the caller graph for this function:

◆ test_dunion()

void test_dunion ( )
Here is the caller graph for this function: