-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Packaging] Use protobuf v3.8 #2
base: master
Are you sure you want to change the base?
Conversation
This patch uses protobuf v3.8 instead of v3.6.1. Signed-off-by: Sangjung Woo <[email protected]>
Testcase [ RUN ] test_tensor_filter.framework_auto_ext_pb_03
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: the file of init_model_path is not valid: ../tests/test_models/models/caffe2_init_net.pb"
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: Failed to load model
** (unittest_plugins:15326): CRITICAL **: 08:58:57.110: failed to initialize the object: Caffe2
[ OK ] test_tensor_filter.framework_auto_ext_pb_03 (12 ms)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the description of this fork says this repo is deprecated.
Please submit to review.tizen.org and alter PPA to get sources from git.tizen.org
DEPRECATED. Please migrate launchpad git repo from github to tizen.org.
After talking with @helloahn , basic opreation of caffe2 filter works as below. $ cd tests/nnstreamer_filter_caffe2/
$ ./runTest.sh
Independent Mode
==================================================
Test Group (Unspecified) Starts.
[PASSED] 1:gst-launch of case 1
[PASSED] 1:Golden test comparison
==================================================
[PASSED] Test Group (Unspecified) Passed @myungjoo |
After applying this PR(nnstreamer/nnstreamer#2399), However, pytorch test case (i.e. @kparichay , // Run only "Golden test comparison"
$ bash ./runTest.sh
Independent Mode
==================================================
Test Group (Unspecified) Starts.
** Message: 15:04:42.625: gpu = 0, accl = default
[libprotobuf FATAL ../third_party/protobuf/src/google/protobuf/generated_message_reflection.cc:2321] CHECK failed: file != NULL:
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: file != NULL:
[FAILED][Critical] 1:gst-launch of case 1
Traceback (most recent call last):
File "checkLabel.py", line 26, in <module>
onehot = readbyte(sys.argv[1])
File "checkLabel.py", line 21, in readbyte
with open(filename, 'rb') as f:
IOError: [Errno 2] No such file or directory: 'tensorfilter.out.log'
[FAILED][Critical] 1:Golden test comparison
==================================================
[FAILED] Test Group (Unspecified) has failed cases (2) All errors occurs in the same point of the // ../third_party/protobuf/src/google/protobuf/generated_message_reflection.cc:2321
void AssignDescriptorsImpl(const DescriptorTable* table) {
...
// Fill the arrays with pointers to descriptors and reflection classes.
const FileDescriptor* file =
DescriptorPool::generated_pool()->FindFileByName(table->filename);
GOOGLE_CHECK(file != NULL); I am still fighting to solve this issue but I don't know why. |
The stable pytorch v1.5.0 also use protobuf v3.6.1. pytorch$ cat version.txt
1.5.0a0
pytorch$ cd third_party/protobuf/
pytorch/third_party/protobuf$ head -n 10 CHANGES.txt
2018-07-27 version 3.6.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
C++
* Introduced workaround for Windows issue with std::atomic and std::once_flag
initialization (#4777, #4773).
... |
@again4you sorry for the late reply. In my understanding, Further, as per cmakelists.txt from pytorch/torch, protobuf does not seem to be dependency (not sure though). Also, pytorch latest versions might not work with protobuf 3.8 (pytorch#22437) |
This patch uses protobuf v3.8 instead of v3.6.1.
Signed-off-by: Sangjung Woo [email protected]
Known issue
After applying this patch, Unit testcase
test_tensor_filter.framework_auto_ext_pt_01
of NNStreamer is failed.Test envrionment
tensorflow
andtensorflow-lite
and Enablepytorch
andcaffe2
when building NNStreamer since Tensorflow also has protobuf version problem.Test result