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
How to enable the C++ classification sample compilation enabled #211
Comments
Follow the steps mentioned here to build C++ classification sample: https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/examples/README.md#c-implementation-for-classification |
According to below web guide, can’t compile the C++ classification sample, so can’t find directory “classification_sample” in <path-to-openvino-tesnsorflow-repository>/build_cmake/example/, from “CMakeLists.txt”, I can see that need to enable macro “TF_SRC_DIR”, so how to enable that?
***@***.***
From: Chandrakant Khandelwal ***@***.******@***.***>
Sent: Wednesday, November 10, 2021 12:22 AM
To: openvinotoolkit/openvino_tensorflow ***@***.***>
Cc: He, Fan1 ***@***.***>; Author ***@***.***>
Subject: Re: [openvinotoolkit/openvino_tensorflow] How to enable the C++ classification sample compilation enabled (Issue #211)
Follow the steps mentioned here to build C++ classification sample: https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/examples/README.md#c-implementation-for-classification
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#211 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJFKC247OYBRTZBVSBWGKTULFDB3ANCNFSM5HR5CREA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
To run the C++ examples you need tensorflow built from source. Copying the build steps from the readme:
and it build the OpenVINO integration with Tensorflow library as well as classification samples too, the build_ovtf.py set the TF_SRC_DIR macro in it and you don't need to set that up separately. Let me know exactly in which step are getting the error? and what is the error? |
TF and ovtf all builded successfully, but the macro “TF_SRC_DIR” not enabled in the initial version, so I can’t find the classification sample in the build-complete repo.
I just want to how to enable “TF_SRC_DIR”, that it which file I need to modify or need add an option such as “-D TF_SRC_DIR”, thanks.
From: Chandrakant Khandelwal ***@***.***>
Sent: Friday, November 12, 2021 9:07 PM
To: openvinotoolkit/openvino_tensorflow ***@***.***>
Cc: He, Fan1 ***@***.***>; Author ***@***.***>
Subject: Re: [openvinotoolkit/openvino_tensorflow] How to enable the C++ classification sample compilation enabled (Issue #211)
To run the C++ examples you need tensorflow built from source. Copying the build steps from the readme:
1. To built tensorflow from source, please use following script:
python3 build_tf.py --output_dir
2. Once you are TF build is successful, pls run the following command:
python3 build_ovtf.py --use_tensorflow_from_location
and it build the OpenVINO integration with Tensorflow library as well as classification samples too, the build_ovtf.py set the TF_SRC_DIR macro in it and you don't need to set that up separately.
Let me know exactly in which step are getting the error? and what is the error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#211 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJFKC56JSG67IOJZ57DUJDULUGO3ANCNFSM5HR5CREA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Check line 517 of the build file: https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/build_ovtf.py |
Closing the issue as there is no further activity, please reopen it in case the issue is still not resolved. |
Want to enable macro “TF_SRC_DIR” and compile the C++ classification example, so can anyone give me a simple guide? Thanks a lot.
The text was updated successfully, but these errors were encountered: