From 6d56c38e8bcb9041335b03f27c192c24dfaedb1c Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Wed, 28 Mar 2018 23:39:28 +0000
Subject: [PATCH] Merge branch 'master' of github.com:AlexeyAB/darknet
---
src/layer.h | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/layer.h b/src/layer.h
index 285abe3..91b893a 100644
--- a/src/layer.h
+++ b/src/layer.h
@@ -33,7 +33,10 @@
NETWORK,
XNOR,
REGION,
+ YOLO,
REORG,
+ UPSAMPLE,
+ REORG_OLD,
BLANK
} LAYER_TYPE;
@@ -41,6 +44,18 @@
SSE, MASKED, SMOOTH
} COST_TYPE;
+typedef struct {
+ int batch;
+ float learning_rate;
+ float momentum;
+ float decay;
+ int adam;
+ float B1;
+ float B2;
+ float eps;
+ int t;
+} update_args;
+
struct layer{
LAYER_TYPE type;
ACTIVATION activation;
@@ -63,6 +78,7 @@
int out_h, out_w, out_c;
int n;
int max_boxes;
+ int small_object;
int groups;
int size;
int side;
@@ -83,6 +99,7 @@
float exposure;
float shift;
float ratio;
+ int focal_loss;
int softmax;
int classes;
int coords;
@@ -94,6 +111,9 @@
int noadjust;
int reorg;
int log;
+ int tanh;
+ int *mask;
+ int total;
int adam;
float B1;
@@ -115,10 +135,14 @@
float coord_scale;
float object_scale;
float noobject_scale;
+ float mask_scale;
float class_scale;
int bias_match;
int random;
+ float ignore_thresh;
+ float truth_thresh;
float thresh;
+ float focus;
int classfix;
int absolute;
@@ -241,6 +265,9 @@
float * weights_gpu;
float * weight_updates_gpu;
+ float * weights_gpu16;
+ float * weight_updates_gpu16;
+
float * biases_gpu;
float * bias_updates_gpu;
@@ -255,6 +282,7 @@
#ifdef CUDNN
cudnnTensorDescriptor_t srcTensorDesc, dstTensorDesc;
cudnnTensorDescriptor_t dsrcTensorDesc, ddstTensorDesc;
+ cudnnTensorDescriptor_t normTensorDesc;
cudnnFilterDescriptor_t weightDesc;
cudnnFilterDescriptor_t dweightDesc;
cudnnConvolutionDescriptor_t convDesc;
--
Gitblit v1.10.0