[−][src]Function opencv::dnn::shrink_caffe_model
pub fn shrink_caffe_model(
src: &str,
dst: &str,
layers_types: &VectorOfString
) -> Result<()>
Convert all weights of Caffe network to half precision floating point.
Parameters
- src: Path to origin model from Caffe framework contains single
precision floating point weights (usually has
.caffemodel
extension). - dst: Path to destination model with updated weights.
- layersTypes: Set of layers types which parameters will be converted. By default, converts only Convolutional and Fully-Connected layers' weights.
Note: Shrinked model has no origin float32 weights so it can't be used in origin Caffe framework anymore. However the structure of data is taken from NVidia's Caffe fork: https://github.com/NVIDIA/caffe. So the resulting model may be used there.
C++ default parameters
- layers_types: std::vector
()