Hello.
I have run snpe-net-run on an AWS EC2 instance, but I got an error. How can I resolve this issue?
(Note: In bin/envsetup.sh, the path to x86_64-linux-clang is set. Therefore, I copied envsetup.sh and rewrote it to the path to aarch64-ubuntu-gcc7.5.)
$ source bin/envsetup_arm.sh -t /
$ cd $SNPE_ROOT/bin/aarch64-ubuntu-gcc7.5
$ ./snpe-net-run --container ../../models/inception_v3/dlc/inception_v3.dlc --input_list ../../models/inception_v3/data/cropped/raw_list.txt
error_code=1200; error_message=libstd error. error_code=1200; error_message=libstd error. QnnBackend_initialize failed: 1006; error_component=Dependent library; line_no=646; thread_id=281473257910576; error_component=Dependent library; line_no=342; thread_id=281473258459152
The execution environment is as follows:
- SNPE: snpe-1.65.0.3676
- AWS EC2 ARM64 (AMI: ubuntu-bionic-18.04-arm64-server-20220610)
- Python 3.6.9
$ source bin/check_python_depends.sh
Supported version of Python found: 3.6
Checking for python3-numpy: install ok installed
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: It appears the python module numpy is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
===========================================
Checking for python-sphinx:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
sphinx installed via pip Version: 2.2.1
===========================================
Checking for python3-scipy: install ok installed
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: It appears the python module scipy is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
===========================================
Checking for python3-matplotlib: install ok installed
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: It appears the python module matplotlib is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
===========================================
Checking for python3-skimage: install ok installed
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: It appears the python module scikit-image is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
===========================================
dpkg-query: no packages found matching python-protobuf
Checking for python-protobuf:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
protobuf installed via pip Version: 3.6.0
===========================================
Checking for python3-yaml: install ok installed
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: It appears the python module pyyaml is installed on this system using the apt-get distribution as well as pip. If you encounter errors, please use only one distribution.
===========================================
dpkg-query: no packages found matching python3-mako
Checking for python3-mako:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
mako installed via pip Version: 1.1.6
===========================================
$ source bin/dependencies.sh
Checking for python3-dev: install ok installed
Success: Version of python3-dev matches tested version
Checking for wget: install ok installed
Success: Version of wget matches tested version
Checking for zip: install ok installed
Success: Version of zip matches tested version
Checking for libc++-9-dev: install ok installed
Success: Version of libc++-9-dev matches tested version
Hi nasso8b
Recently i am also done this exercise on AWS EC2 instance
Ubuntu Version: 18.04.6
Snpe Version: 1.65.0.3676
https://developer.qualcomm.com/sites/default/files/docs/snpe/usergroup0.html
The above link will help you regarding your issue
PATH for snpe setup
snpe -> snpe setup
Related to inception V3 model and do the tutorial setup as well
Path for tutorial setup
tutorials and examples -> tutorial setup
Path for inception v3 modeltutorials and examples -> Running nets -> Tensoerflow inception v3
Dear developer,
You need to reset the SNPE environment on Linux like as below,
BR.
Wei
Fence Garden: Doppelstabmattenzaun
Thank you v.bathini,
Thank you weihuan,
I have built and installed tensorflow 2.3. And I have set the tensorflow env variable.
$ export TENSORFLOW_HOME=/home/ubuntu/.local/lib/python3.6/site-packages/tensorflow
$ source bin/envsetup_arm.sh -t $TENSORFLOW_HOME
But I still get the same error. Could you tell me what is missing?
Thank you v.bathini,
I'll try it.