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

Macros

#define NUMCHARS   37
 

Functions

void blend_truth (float *new_truth, int boxes, int truth_size, float *old_truth)
 
void blend_truth_mosaic (float *new_truth, int boxes, int truth_size, float *old_truth, int w, int h, float cut_x, float cut_y, int i_mixup, int left_shift, int right_shift, int top_shift, int bot_shift, int net_w, int net_h, int mosaic_bound)
 
data concat_data (data d1, data d2)
 
matrix concat_matrix (matrix m1, matrix m2)
 
void correct_boxes (box_label *boxes, int n, float dx, float dy, float sx, float sy, int flip)
 
void fill_hierarchy (float *truth, int k, Darknet::Tree *hierarchy)
 
int fill_truth_detection (const char *path, int num_boxes, int truth_size, float *truth, int classes, int flip, float dx, float dy, float sx, float sy, int net_w, int net_h)
 
data get_data_part (data d, int part, int total)
 
void get_next_batch (data d, int n, int offset, float *X, float *y)
 
listget_paths (const char *filename)
 
char ** get_random_paths (char **paths, int n, int m)
 
char ** get_random_paths_custom (char **paths, int n, int m, int contrastive)
 
char ** get_sequential_paths (char **paths, int n, int m, int mini_batch, int augment_speed, int contrastive)
 
data load_data_detection (int n, char **paths, int m, int w, int h, int c, int boxes, int truth_size, int classes, int use_flip, int use_gaussian_noise, int use_blur, int use_mixup, float jitter, float resize, float hue, float saturation, float exposure, int mini_batch, int track, int augment_speed, int letter_box, int mosaic_bound, int contrastive, int contrastive_jit_flip, int contrastive_color, int show_imgs)
 
void randomize_boxes (box_label *b, int n)
 
box_labelread_boxes (char *filename, int *n)
 

Macro Definition Documentation

◆ NUMCHARS

#define NUMCHARS   37

Function Documentation

◆ blend_truth()

void blend_truth ( float *  new_truth,
int  boxes,
int  truth_size,
float *  old_truth 
)
Here is the caller graph for this function:

◆ blend_truth_mosaic()

void blend_truth_mosaic ( float *  new_truth,
int  boxes,
int  truth_size,
float *  old_truth,
int  w,
int  h,
float  cut_x,
float  cut_y,
int  i_mixup,
int  left_shift,
int  right_shift,
int  top_shift,
int  bot_shift,
int  net_w,
int  net_h,
int  mosaic_bound 
)
Here is the caller graph for this function:

◆ concat_data()

data concat_data ( data  d1,
data  d2 
)
Here is the call graph for this function:

◆ concat_matrix()

matrix concat_matrix ( matrix  m1,
matrix  m2 
)
Here is the caller graph for this function:

◆ correct_boxes()

void correct_boxes ( box_label boxes,
int  n,
float  dx,
float  dy,
float  sx,
float  sy,
int  flip 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_hierarchy()

void fill_hierarchy ( float *  truth,
int  k,
Darknet::Tree hierarchy 
)

◆ fill_truth_detection()

int fill_truth_detection ( const char *  path,
int  num_boxes,
int  truth_size,
float *  truth,
int  classes,
int  flip,
float  dx,
float  dy,
float  sx,
float  sy,
int  net_w,
int  net_h 
)
Todo:
shouldn't this be x - w/2 < 0.0f? And same for other variables?
Todo:
again, instead of checking for > 1, shouldn't we check x + w / 2 ?
Todo:
check for y - h/2 and y + h/2?
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_data_part()

data get_data_part ( data  d,
int  part,
int  total 
)
Here is the caller graph for this function:

◆ get_next_batch()

void get_next_batch ( data  d,
int  n,
int  offset,
float *  X,
float *  y 
)
Here is the caller graph for this function:

◆ get_paths()

list * get_paths ( const char *  filename)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_random_paths()

char ** get_random_paths ( char **  paths,
int  n,
int  m 
)
Here is the call graph for this function:

◆ get_random_paths_custom()

char ** get_random_paths_custom ( char **  paths,
int  n,
int  m,
int  contrastive 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_sequential_paths()

char ** get_sequential_paths ( char **  paths,
int  n,
int  m,
int  mini_batch,
int  augment_speed,
int  contrastive 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_data_detection()

data load_data_detection ( int  n,
char **  paths,
int  m,
int  w,
int  h,
int  c,
int  boxes,
int  truth_size,
int  classes,
int  use_flip,
int  use_gaussian_noise,
int  use_blur,
int  use_mixup,
float  jitter,
float  resize,
float  hue,
float  saturation,
float  exposure,
int  mini_batch,
int  track,
int  augment_speed,
int  letter_box,
int  mosaic_bound,
int  contrastive,
int  contrastive_jit_flip,
int  contrastive_color,
int  show_imgs 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ randomize_boxes()

void randomize_boxes ( box_label b,
int  n 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_boxes()

box_label * read_boxes ( char *  filename,
int *  n 
)
Here is the call graph for this function:
Here is the caller graph for this function: