From 516f019ba6fb88de7218dd3b4eaeadb1cf676518 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 11 May 2015 20:46:49 +0000
Subject: [PATCH] route handles input images well....ish

---
 src/network.h |   20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/src/network.h b/src/network.h
index 28eab69..9a8033c 100644
--- a/src/network.h
+++ b/src/network.h
@@ -4,22 +4,9 @@
 
 #include "image.h"
 #include "detection_layer.h"
+#include "layer.h"
 #include "data.h"
 
-typedef enum {
-    CONVOLUTIONAL,
-    DECONVOLUTIONAL,
-    CONNECTED,
-    MAXPOOL,
-    SOFTMAX,
-    DETECTION,
-    NORMALIZATION,
-    DROPOUT,
-    CROP,
-    ROUTE,
-    COST
-} LAYER_TYPE;
-
 typedef struct {
     int n;
     int batch;
@@ -28,8 +15,7 @@
     float learning_rate;
     float momentum;
     float decay;
-    void **layers;
-    LAYER_TYPE *types;
+    layer *layers;
     int outputs;
     float *output;
 
@@ -83,7 +69,7 @@
 void set_batch_network(network *net, int b);
 int get_network_input_size(network net);
 float get_network_cost(network net);
-detection_layer *get_network_detection_layer(network net);
+detection_layer get_network_detection_layer(network net);
 
 int get_network_nuisance(network net);
 int get_network_background(network net);

--
Gitblit v1.10.0