Click or drag to resize

CvDnnShrinkCaffeModel Method

Convert all weights of Caffe network to half precision floating point.

Namespace:  OpenCvSharp.Dnn
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void ShrinkCaffeModel(
	string src,
	string dst
)

Parameters

src
Type: SystemString
Path to origin model from Caffe framework contains single precision floating point weights(usually has `.caffemodel` extension).
dst
Type: SystemString
Path to destination model with updated weights.
Remarks
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.
See Also