Closed hwangyl closed 4 years ago
Why do you need the pdtxt? All of the major frameworks use pd, in addition tflite format networks are now also provided.
Why do you need the pdtxt? All of the major frameworks use pd, in addition tflite format networks are now also provided.
for C++ OpenCV API
From my reading of the opencv API at docs.opencv.org, the second parameter to the function readNetFromTensorflow() is optional and can be passed as an empty string and hence the the function should work with only the .pb file rather than having both the .pd and the .pdtxt file.
The second parameter can be passed as the empty string or just left out under which circumstances it will take the default value of an empty string as indicated in the opencv manual.
I am aware of others who have successfully used the final model with the opencv c++ API using only the .pd file.
The examples provided inside the conversion and validation scripts in this repo, the python interface to the opencv API is shown to work using just the .pd file. The python interface to opencv is essentially just a wrapper around the c++ interface, expect this to work inherently just a .pd file only also.
From my reading of the opencv API at docs.opencv.org, the second parameter to the function readNetFromTensorflow() is optional and can be passed as an empty string and hence the the function should work with only the .pb file rather than having both the .pd and the .pdtxt file.
The second parameter can be passed as the empty string or just left out under which circumstances it will take the default value of an empty string as indicated in the opencv manual.
I am aware of others who have successfully used the final model with the opencv c++ API using only the .pd file.
The examples provided inside the conversion and validation scripts in this repo, the python interface to the opencv API is shown to work using just the .pd file. The python interface to opencv is essentially just a wrapper around the c++ interface, expect this to work inherently just a .pd file only also.
Thank you for your prompt reply.
Describe the bug < insert a clear and concise description of what the bug is >.
To Reproduce: (please complete the following information): < insert steps to reproduce the behavior in the Linux/Unix terminal >
Error output received < insert a clear and concise description of what you expected to happen/see >
Computing Environment (please complete the following information):
OS: [e.g. Linux Ubuntu 18.... LTS ]
Tensorflow Version: [e.g. 1.x]
OpenCV Version: [e.g. 3.4.x]
alternative machine learning environment / toolkit (if applicable): [e.g. keras, pytorch + version]
Additional context < insert any other context about the problem here >.
< if possible provide links to an test images - hosted on pichost/dropbox/google drive or similar open/shared hosting>