AlexeyAB
2018-04-12 1c39aeca008ced62dae8245f8d6f9963f4c97b47
src/network.h
@@ -2,9 +2,16 @@
#ifndef NETWORK_H
#define NETWORK_H
#include "image.h"
#include <stdint.h>
#include "layer.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "image.h"
#include "data.h"
#include "tree.h"
typedef enum {
    CONSTANT, STEP, EXP, POLY, STEPS, SIG, RANDOM
@@ -14,7 +21,7 @@
    float *workspace;
    int n;
    int batch;
    int *seen;
   int *seen;
    float epoch;
    int subdivisions;
    float momentum;
@@ -36,6 +43,11 @@
    int num_steps;
    int burn_in;
    int adam;
    float B1;
    float B2;
    float eps;
    int inputs;
    int h, w, c;
    int max_crop;
@@ -45,12 +57,19 @@
    float exposure;
    float saturation;
    float hue;
   int small_object;
    int gpu_index;
    tree *hierarchy;
    #ifdef GPU
    float **input_gpu;
    float **truth_gpu;
   float **input16_gpu;
   float **output16_gpu;
   size_t *max_input16_size;
   size_t *max_output16_size;
   int wait_stream;
    #endif
} network;
@@ -114,9 +133,16 @@
void set_batch_network(network *net, int b);
int get_network_input_size(network net);
float get_network_cost(network net);
detection *get_network_boxes(network *net, int w, int h, float thresh, float hier, int *map, int relative, int *num, int letter);
void free_detections(detection *dets, int n);
int get_network_nuisance(network net);
int get_network_background(network net);
void fuse_conv_batchnorm(network net);
#ifdef __cplusplus
}
#endif
#endif