Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNN Example with Torch #9

Open
natkalin opened this issue Apr 16, 2020 · 1 comment
Open

DNN Example with Torch #9

natkalin opened this issue Apr 16, 2020 · 1 comment

Comments

@natkalin
Copy link

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?

@EnoxSoftware
Copy link
Owner

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)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants