caffe model define prototxt path
caffe serialized binary model path
if match all modules with parameters
customized converter
Load caffe model from prototxt file and binary pre-trained model and converted to Zoo graph module
Load caffe model from prototxt file and binary pre-trained model and converted to Zoo graph module
additional output layer names besides the default(layers without next nodes)
Zoo model and criterion
This method recursively modify the nodes information and merge the BatchNorm layer and Scale layer Specifically, given a node in Graph, it search the nextNodes of this node, and copy the parameter of Scale to BatchNorm, then operate the pointer of BatchNorm to skip Scale layer and directly pointer to the next layer of Scale layer
This method recursively modify the nodes information and merge the BatchNorm layer and Scale layer Specifically, given a node in Graph, it search the nextNodes of this node, and copy the parameter of Scale to BatchNorm, then operate the pointer of BatchNorm to skip Scale layer and directly pointer to the next layer of Scale layer
the node to be operated recursively
Original loading caffe model would bring Scale layer, which is not supported by mkldnn, thus leads to bad performance this method basically change the nodes information of the old graph, nodes information contains all the information of a net, thus only by modifying nodes we can get the new graph Besides, many initializations are based on nodes information, thus, a new construction of Graph is required after nodes are changed
Original loading caffe model would bring Scale layer, which is not supported by mkldnn, thus leads to bad performance this method basically change the nodes information of the old graph, nodes information contains all the information of a net, thus only by modifying nodes we can get the new graph Besides, many initializations are based on nodes information, thus, a new construction of Graph is required after nodes are changed
origin graph which is not supported by mkldnn
An utility to load pre-trained caffe model from prototxt and binary and convert it to Zoo equivalent modules
type