MagicLeapWithOpenCVForUnityExample icon indicating copy to clipboard operation
MagicLeapWithOpenCVForUnityExample copied to clipboard

DNN Example with Torch

Open natkalin opened this issue 4 years ago • 1 comments

For the model and config parameters in the MagicLeapDnnExample.cs file, the required file type for the model is specified for Torch (On Line 25: "Path to a binary file of model contains trained weights. It could be a file with extensions .caffemodel (Caffe), .pb (TensorFlow), .t7 or .net (Torch), .weights (Darknet).")

However, it is NOT specified for the config parameter for Torch. (On Line 28: "Path to a text file of model contains network configuration. It could be a file with extensions .prototxt (Caffe), .pbtxt (TensorFlow), .cfg (Darknet).")

What is the required file type for Torch for the config parameter?

natkalin avatar Apr 16 '20 20:04 natkalin

Torch does not seem to need a config parameter. https://github.com/EnoxSoftware/OpenCVForUnity/blob/master/Assets/OpenCVForUnity/Examples/MainModules/dnn/FastNeuralStyleTransferExample/FastNeuralStyleTransferExample.cs#L108

Could you change the code as follows? if (/**string.IsNullOrEmpty(config_filepath) ||**/ string.IsNullOrEmpty(model_filepath)) {

EnoxSoftware avatar Apr 17 '20 10:04 EnoxSoftware