摘要:
net.loss = caffe.layers.SoftmaxWithLoss(net.fc3, net.label) 输出: layer { name: "loss" type: "SoftmaxWithLoss" bottom: "fc3" bottom: "label" top: "loss" } 阅读全文
摘要:
net.fc3 = caffe.layers.InnerProduct(net.pool1, num_output=1024, weight_filler=dict(type='xavier'), ... 阅读全文
摘要:
net.mylrn = caffe.layers.LRN(net.pool1,local_size=5,alpha=1e-4,beta=0.75) 输出: layer { name: "mylrn" type: "LRN" bottom: "pool1" top: "lrn" lrn_param { local_size: 5 alpha: 9.999999... 阅读全文
摘要:
net.pool1 = caffe.layers.Pooling(net.myconv, pool=caffe.params.Pooling.MAX, kernel_size=2, stride=2) 输出: layer { name: "pool1" type: "Pooling" bottom: "myconv" top: "pool1" pooling_param {... 阅读全文
摘要:
import sys import os sys.path.append("/projects/caffe-ssd/python") import caffe net = caffe.NetSpec() net.data, net.label = caffe.layers.Data( name="InputData", source="train_lmdb", back... 阅读全文