Click or drag to resize

NetReadNetFromTorch Method

Reads a network model stored in Torch model file.

Namespace:  OpenCvSharp.Dnn
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static Net ReadNetFromTorch(
	string model,
	bool isBinary = true
)

Parameters

model
Type: SystemString
isBinary (Optional)
Type: SystemBoolean

Return Value

Type: Net
Remarks
This is shortcut consisting from createTorchImporter and Net::populateNet calls.
See Also