I have a problem, because the input data shape is NHWC, but the input data shape of imported Keras is NCHW, how can I solve this problem?
ComputationGraph vgg16Transfer = new TransferLearning.GraphBuilder(simplemodel)
.fineTuneConfiguration(fineTuneConf)
.setFeatureExtractor(“conv_pw_13_bn”) //the specified layer and below are “frozen”
.build();
Cannot do forward pass in Convolution layer (layer name = conv1, layer index = 2): input array channels does not match CNN layer configuration (data format = NHWC, data input channels = 224, [minibatch, height, width, channels]=[16, 4, 225, 224]; expected input channels = 3) (layer name: conv1, layer index: 2, layer type: ConvolutionLayer)