MagicLeapWithOpenCVForUnityExample
MagicLeapWithOpenCVForUnityExample copied to clipboard
DNN Example with Torch
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?
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)) {