Joseph Redmon
2016-09-01 8f1b4e0962857d402f9d017fcbf387ef0eceb7c4
src/network.h
@@ -7,10 +7,11 @@
#include "data.h"
typedef enum {
    CONSTANT, STEP, EXP, POLY, STEPS, SIG
    CONSTANT, STEP, EXP, POLY, STEPS, SIG, RANDOM
} learning_rate_policy;
typedef struct network{
    float *workspace;
    int n;
    int batch;
    int *seen;
@@ -33,11 +34,18 @@
    float *scales;
    int   *steps;
    int num_steps;
    int burn_in;
    int inputs;
    int h, w, c;
    int max_crop;
    int min_crop;
    float angle;
    float exposure;
    float saturation;
    float hue;
    int gpu_index;
    #ifdef GPU
    float **input_gpu;
@@ -49,6 +57,7 @@
    float *truth;
    float *input;
    float *delta;
    float *workspace;
    int train;
    int index;
    network net;