darknet/src/data.h

19 lines
361 B
C
Raw Normal View History

2013-11-13 22:50:38 +04:00
#ifndef DATA_H
#define DATA_H
#include "image.h"
typedef struct{
int n;
image *images;
double **truth;
} batch;
2013-12-03 04:41:40 +04:00
batch get_all_data(char *filename, char **labels, int k);
batch random_batch(char *filename, int n, char **labels, int k);
batch get_batch(char *filename, int curr, int total, char **labels, int k);
2013-11-13 22:50:38 +04:00
void free_batch(batch b);
#endif