From 11c72b1132feca7c1252ea01d02da4cb497e723f Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 11 Jun 2015 22:38:58 +0000
Subject: [PATCH] testing on one image
---
src/network.h | 24 ++++++++----------------
1 files changed, 8 insertions(+), 16 deletions(-)
diff --git a/src/network.h b/src/network.h
index 2a61e8e..9a8033c 100644
--- a/src/network.h
+++ b/src/network.h
@@ -3,22 +3,10 @@
#define NETWORK_H
#include "image.h"
-#include "params.h"
+#include "detection_layer.h"
+#include "layer.h"
#include "data.h"
-typedef enum {
- CONVOLUTIONAL,
- DECONVOLUTIONAL,
- CONNECTED,
- MAXPOOL,
- SOFTMAX,
- DETECTION,
- NORMALIZATION,
- DROPOUT,
- CROP,
- COST
-} LAYER_TYPE;
-
typedef struct {
int n;
int batch;
@@ -27,8 +15,7 @@
float learning_rate;
float momentum;
float decay;
- void **layers;
- LAYER_TYPE *types;
+ layer *layers;
int outputs;
float *output;
@@ -46,6 +33,7 @@
float *network_predict_gpu(network net, float *input);
float * get_network_output_gpu_layer(network net, int i);
float * get_network_delta_gpu_layer(network net, int i);
+float *get_network_output_gpu(network net);
#endif
void compare_networks(network n1, network n2, data d);
@@ -81,6 +69,10 @@
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);
+
+int get_network_nuisance(network net);
+int get_network_background(network net);
#endif
--
Gitblit v1.10.0