#include "data.h"
#include "utils.h"
#include "image.h"
#include "cuda.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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) |
list * | get_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_label * | read_boxes (char *filename, int *n) |
void | scale_data_rows (data d, float s) |
void | smooth_data (data d) |
data * | split_data (data d, int part, int total) |
void | translate_data_rows (data d, float s) |
Variables | |
pthread_mutex_t | mutex = PTHREAD_MUTEX_INITIALIZER |
data concat_datas | ( | data * | d, |
int | n | ||
) |
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 | ||
) |
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 | ||
) |
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 | ) |
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 | ||
) |
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_label* read_boxes | ( | char * | filename, |
int * | n | ||
) |
void scale_data_rows | ( | data | d, |
float | s | ||
) |
void smooth_data | ( | data | d | ) |
data* split_data | ( | data | d, |
int | part, | ||
int | total | ||
) |
void translate_data_rows | ( | data | d, |
float | s | ||
) |