Class DarknetHelper
- java.lang.Object
-
- org.deeplearning4j.zoo.model.helper.DarknetHelper
-
public class DarknetHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description DarknetHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComputationGraphConfiguration.GraphBuilder
addLayers(ComputationGraphConfiguration.GraphBuilder graphBuilder, int layerNumber, int filterSize, int nIn, int nOut, int poolSize)
static ComputationGraphConfiguration.GraphBuilder
addLayers(ComputationGraphConfiguration.GraphBuilder graphBuilder, int layerNumber, int filterSize, int nIn, int nOut, int poolSize, int poolStride)
static ComputationGraphConfiguration.GraphBuilder
addLayers(ComputationGraphConfiguration.GraphBuilder graphBuilder, int layerNumber, String input, int filterSize, int nIn, int nOut, int poolSize, int poolStride)
static int
getGridHeight(int[] inputShape)
ReturnsinputShape[2] / 32
, whereinputShape[2]
should be a multiple of 32.static int
getGridWidth(int[] inputShape)
ReturnsinputShape[1] / 32
, whereinputShape[1]
should be a multiple of 32.
-
-
-
Method Detail
-
getGridWidth
public static int getGridWidth(int[] inputShape)
ReturnsinputShape[1] / 32
, whereinputShape[1]
should be a multiple of 32.
-
getGridHeight
public static int getGridHeight(int[] inputShape)
ReturnsinputShape[2] / 32
, whereinputShape[2]
should be a multiple of 32.
-
addLayers
public static ComputationGraphConfiguration.GraphBuilder addLayers(ComputationGraphConfiguration.GraphBuilder graphBuilder, int layerNumber, int filterSize, int nIn, int nOut, int poolSize)
-
addLayers
public static ComputationGraphConfiguration.GraphBuilder addLayers(ComputationGraphConfiguration.GraphBuilder graphBuilder, int layerNumber, int filterSize, int nIn, int nOut, int poolSize, int poolStride)
-
addLayers
public static ComputationGraphConfiguration.GraphBuilder addLayers(ComputationGraphConfiguration.GraphBuilder graphBuilder, int layerNumber, String input, int filterSize, int nIn, int nOut, int poolSize, int poolStride)
-
-