Defines | Functions | Variables
data.c File Reference
#include "data.h"
#include "utils.h"
#include "image.h"
#include "cuda.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for data.c:

Go to the source code of this file.

Defines

#define NUMCHARS   37

Functions

data concat_data (data d1, data d2)
data concat_datas (data *d, int n)
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, tree *hierarchy)
void fill_truth (char *path, char **labels, int k, float *truth)
void fill_truth_captcha (char *path, int n, float *truth)
void fill_truth_detection (char *path, int num_boxes, float *truth, int classes, int flip, float dx, float dy, float sx, float sy)
void fill_truth_region (char *path, float *truth, int classes, int num_boxes, int flip, float dx, float dy, float sx, float sy)
void fill_truth_swag (char *path, float *truth, int classes, int flip, float dx, float dy, float sx, float sy)
char ** find_replace_paths (char **paths, int n, char *find, char *replace)
void free_data (data d)
data get_data_part (data d, int part, int total)
char ** get_labels (char *filename)
void get_next_batch (data d, int n, int offset, float *X, float *y)
listget_paths (char *filename)
void get_random_batch (data d, int n, float *X, float *y)
data get_random_data (data d, int num)
char ** get_random_paths (char **paths, int n, int m)
data load_all_cifar10 ()
data load_categorical_data_csv (char *filename, int target, int k)
data load_cifar10_data (char *filename)
pthread_t load_data (load_args args)
data load_data_augment (char **paths, int n, int m, char **labels, int k, tree *hierarchy, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure)
data load_data_captcha (char **paths, int n, int m, int k, int w, int h)
data load_data_captcha_encode (char **paths, int n, int m, int w, int h)
data load_data_compare (int n, char **paths, int m, int classes, int w, int h)
data load_data_detection (int n, char **paths, int m, int w, int h, int boxes, int classes, float jitter, float hue, float saturation, float exposure)
pthread_t load_data_in_thread (load_args args)
data load_data_old (char **paths, int n, int m, char **labels, int k, int w, int h)
data load_data_region (int n, char **paths, int m, int w, int h, int size, int classes, float jitter, float hue, float saturation, float exposure)
data load_data_super (char **paths, int n, int m, int w, int h, int scale)
data load_data_swag (char **paths, int n, int classes, float jitter)
data load_data_tag (char **paths, int n, int m, int k, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure)
data load_data_writing (char **paths, int n, int m, int w, int h, int out_w, int out_h)
data load_go (char *filename)
matrix load_image_augment_paths (char **paths, int n, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure)
matrix load_image_paths (char **paths, int n, int w, int h)
matrix load_image_paths_gray (char **paths, int n, int w, int h)
matrix load_labels_paths (char **paths, int n, char **labels, int k, tree *hierarchy)
matrix load_tags_paths (char **paths, int n, int k)
void * load_thread (void *ptr)
void * load_threads (void *ptr)
void normalize_data_rows (data d)
void print_letters (float *pred, int n)
void randomize_boxes (box_label *b, int n)
void randomize_data (data d)
box_labelread_boxes (char *filename, int *n)
void scale_data_rows (data d, float s)
void smooth_data (data d)
datasplit_data (data d, int part, int total)
void translate_data_rows (data d, float s)

Variables

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER

Define Documentation

#define NUMCHARS   37

Definition at line 331 of file data.c.


Function Documentation

data concat_data ( data  d1,
data  d2 
)

Definition at line 906 of file data.c.

data concat_datas ( data d,
int  n 
)

Definition at line 915 of file data.c.

matrix concat_matrix ( matrix  m1,
matrix  m2 
)

Definition at line 890 of file data.c.

void correct_boxes ( box_label boxes,
int  n,
float  dx,
float  dy,
float  sx,
float  sy,
int  flip 
)

Definition at line 170 of file data.c.

void fill_hierarchy ( float *  truth,
int  k,
tree hierarchy 
)

Definition at line 399 of file data.c.

void fill_truth ( char *  path,
char **  labels,
int  k,
float *  truth 
)

Definition at line 385 of file data.c.

void fill_truth_captcha ( char *  path,
int  n,
float *  truth 
)

Definition at line 343 of file data.c.

void fill_truth_detection ( char *  path,
int  num_boxes,
float *  truth,
int  classes,
int  flip,
float  dx,
float  dy,
float  sx,
float  sy 
)

Definition at line 293 of file data.c.

void fill_truth_region ( char *  path,
float *  truth,
int  classes,
int  num_boxes,
int  flip,
float  dx,
float  dy,
float  sx,
float  sy 
)

Definition at line 245 of file data.c.

void fill_truth_swag ( char *  path,
float *  truth,
int  classes,
int  flip,
float  dx,
float  dy,
float  sx,
float  sy 
)

Definition at line 207 of file data.c.

char** find_replace_paths ( char **  paths,
int  n,
char *  find,
char *  replace 
)

Definition at line 56 of file data.c.

void free_data ( data  d)

Definition at line 480 of file data.c.

data get_data_part ( data  d,
int  part,
int  total 
)

Definition at line 1124 of file data.c.

char** get_labels ( char *  filename)

Definition at line 472 of file data.c.

void get_next_batch ( data  d,
int  n,
int  offset,
float *  X,
float *  y 
)

Definition at line 982 of file data.c.

list* get_paths ( char *  filename)

Definition at line 12 of file data.c.

void get_random_batch ( data  d,
int  n,
float *  X,
float *  y 
)

Definition at line 972 of file data.c.

data get_random_data ( data  d,
int  num 
)

Definition at line 1137 of file data.c.

char** get_random_paths ( char **  paths,
int  n,
int  m 
)

Definition at line 42 of file data.c.

Definition at line 1004 of file data.c.

data load_categorical_data_csv ( char *  filename,
int  target,
int  k 
)

Definition at line 927 of file data.c.

data load_cifar10_data ( char *  filename)

Definition at line 944 of file data.c.

pthread_t load_data ( load_args  args)

Definition at line 787 of file data.c.

data load_data_augment ( char **  paths,
int  n,
int  m,
char **  labels,
int  k,
tree hierarchy,
int  min,
int  max,
int  size,
float  angle,
float  aspect,
float  hue,
float  saturation,
float  exposure 
)

Definition at line 866 of file data.c.

data load_data_captcha ( char **  paths,
int  n,
int  m,
int  k,
int  w,
int  h 
)

Definition at line 358 of file data.c.

data load_data_captcha_encode ( char **  paths,
int  n,
int  m,
int  w,
int  h 
)

Definition at line 373 of file data.c.

data load_data_compare ( int  n,
char **  paths,
int  m,
int  classes,
int  w,
int  h 
)

Definition at line 545 of file data.c.

data load_data_detection ( int  n,
char **  paths,
int  m,
int  w,
int  h,
int  boxes,
int  classes,
float  jitter,
float  hue,
float  saturation,
float  exposure 
)

Definition at line 662 of file data.c.

pthread_t load_data_in_thread ( load_args  args)

Definition at line 749 of file data.c.

data load_data_old ( char **  paths,
int  n,
int  m,
char **  labels,
int  k,
int  w,
int  h 
)

Definition at line 811 of file data.c.

data load_data_region ( int  n,
char **  paths,
int  m,
int  w,
int  h,
int  size,
int  classes,
float  jitter,
float  hue,
float  saturation,
float  exposure 
)

Definition at line 491 of file data.c.

data load_data_super ( char **  paths,
int  n,
int  m,
int  w,
int  h,
int  scale 
)

Definition at line 836 of file data.c.

data load_data_swag ( char **  paths,
int  n,
int  classes,
float  jitter 
)

Definition at line 609 of file data.c.

data load_data_tag ( char **  paths,
int  n,
int  m,
int  k,
int  min,
int  max,
int  size,
float  angle,
float  aspect,
float  hue,
float  saturation,
float  exposure 
)

Definition at line 877 of file data.c.

data load_data_writing ( char **  paths,
int  n,
int  m,
int  w,
int  h,
int  out_w,
int  out_h 
)

Definition at line 796 of file data.c.

data load_go ( char *  filename)

Definition at line 1038 of file data.c.

matrix load_image_augment_paths ( char **  paths,
int  n,
int  min,
int  max,
int  size,
float  angle,
float  aspect,
float  hue,
float  saturation,
float  exposure 
)

Definition at line 105 of file data.c.

matrix load_image_paths ( char **  paths,
int  n,
int  w,
int  h 
)

Definition at line 89 of file data.c.

matrix load_image_paths_gray ( char **  paths,
int  n,
int  w,
int  h 
)

Definition at line 68 of file data.c.

matrix load_labels_paths ( char **  paths,
int  n,
char **  labels,
int  k,
tree hierarchy 
)

Definition at line 431 of file data.c.

matrix load_tags_paths ( char **  paths,
int  n,
int  k 
)

Definition at line 444 of file data.c.

void* load_thread ( void *  ptr)

Definition at line 715 of file data.c.

void* load_threads ( void *  ptr)

Definition at line 758 of file data.c.

Definition at line 1116 of file data.c.

void print_letters ( float *  pred,
int  n 
)

Definition at line 333 of file data.c.

void randomize_boxes ( box_label b,
int  n 
)

Definition at line 159 of file data.c.

void randomize_data ( data  d)

Definition at line 1085 of file data.c.

box_label* read_boxes ( char *  filename,
int *  n 
)

Definition at line 133 of file data.c.

void scale_data_rows ( data  d,
float  s 
)

Definition at line 1100 of file data.c.

void smooth_data ( data  d)

Definition at line 992 of file data.c.

data* split_data ( data  d,
int  part,
int  total 
)

Definition at line 1160 of file data.c.

void translate_data_rows ( data  d,
float  s 
)

Definition at line 1108 of file data.c.


Variable Documentation

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 10 of file data.c.



rail_object_detector
Author(s):
autogenerated on Sat Jun 8 2019 20:26:31