您好!
我有 TDA4VM Jacinto J7 EVM 套件。 我按照 github.com/.../edgeai-yolov5 repo 培训了一个定制模型。 我使用"python3 train.py --data data.yaml--cfg yolov5l6.yaml--rands 'yolov5l6.pt --batche-size 40"开始定制培训,然后使用"python3 export.py --run/exp5/rands/best.pt --img 640 --batch 1 --Simplify --nx conversion 作为结果文件和.nopx 文件集进行应用。 我将其复制到使用">github.com/.../edgeai-tidl-tools" 存储库创建的"models"文件夹,并进行了以下更改。 但模型工件的创建被中断。 问题可能出在哪呢?
我共享了终端日志文件。
tidl 工具重新安装
sefau18@ubuntu:~$ git clone github.com/.../edgeai-tidl-tools.git Cloning into 'edgeai-tidl-tools'... remote: Enumerating objects: 2166, done. remote: Counting objects: 100% (460/460), done. remote: Compressing objects: 100% (138/138), done. remote: Total 2166 (delta 349), reused 380 (delta 306), pack-reused 1706 Receiving objects: 100% (2166/2166), 10.48 MiB | 3.40 MiB/s, done. Resolving deltas: 100% (1335/1335), done. sefau18@ubuntu:~$ export DEVICE=j7 sefau18@ubuntu:~$ cd edgeai-tidl-tools sefau18@ubuntu:~/edgeai-tidl-tools$ pip3 install -r requirements_pc.txt Defaulting to user installation because normal site-packages is not writeable Collecting git+github.com/.../caffe2onnx (from -r requirements_pc.txt (line 12)) Cloning github.com/.../caffe2onnx to /tmp/pip-req-build-96mf9b4d Running command git clone --filter=blob:none -q github.com/.../caffe2onnx /tmp/pip-req-build-96mf9b4d Resolved github.com/.../caffe2onnx to commit b7e73feed3bbc5ddbdf25b87af93a2bae596055d Preparing metadata (setup.py) ... done Collecting dlr==1.10.0 Downloading github.com/.../dlr-1.10.0-py3-none-any.whl (2.2 MB) |████████████████████████████████| 2.2 MB 3.2 MB/s Collecting tvm==0.8.dev0 Downloading github.com/.../tvm-0.8.dev0-cp36-cp36m-linux_x86_64.whl (35.9 MB) |████████████████████████████████| 35.9 MB 4.4 MB/s Collecting onnxruntime-tidl==1.7.0 Downloading github.com/.../onnxruntime_tidl-1.7.0-cp36-cp36m-linux_x86_64.whl (5.1 MB) |████████████████████████████████| 5.1 MB 4.4 MB/s Collecting tflite-runtime==2.4.0 Downloading github.com/.../tflite_runtime-2.4.0-py3-none-any.whl (1.4 MB) |████████████████████████████████| 1.4 MB 4.1 MB/s Requirement already satisfied: numpy in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 1)) (1.19.5) Requirement already satisfied: pyyaml in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 2)) (6.0) Requirement already satisfied: protobuf==3.19.4 in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 3)) (3.19.4) Requirement already satisfied: onnx==1.9.0 in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 4)) (1.9.0) Requirement already satisfied: tflite in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 5)) (2.4.0) Requirement already satisfied: pillow==8.2.0 in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 6)) (8.2.0) Requirement already satisfied: flatbuffers==1.12.0 in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 7)) (1.12) Requirement already satisfied: requests in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 8)) (2.27.1) Requirement already satisfied: opencv-python==4.2.0.34 in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 9)) (4.2.0.34) Requirement already satisfied: pytest in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 10)) (7.0.1) Requirement already satisfied: graphviz in /home/sefau18/.local/lib/python3.6/site-packages (from -r requirements_pc.txt (line 11)) (0.8.4) Requirement already satisfied: six in /home/sefau18/.local/lib/python3.6/site-packages (from onnx==1.9.0->-r requirements_pc.txt (line 4)) (1.16.0) Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/sefau18/.local/lib/python3.6/site-packages (from onnx==1.9.0->-r requirements_pc.txt (line 4)) (4.1.1) Requirement already satisfied: certifi>=2017.4.17 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r requirements_pc.txt (line 8)) (2022.5.18.1) Requirement already satisfied: idna<4,>=2.5 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r requirements_pc.txt (line 8)) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r requirements_pc.txt (line 8)) (1.26.9) Requirement already satisfied: charset-normalizer~=2.0.0 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r requirements_pc.txt (line 8)) (2.0.12) Requirement already satisfied: importlib-metadata>=0.12 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (4.8.3) Requirement already satisfied: attrs>=19.2.0 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (21.4.0) Requirement already satisfied: tomli>=1.0.0 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (1.2.3) Requirement already satisfied: iniconfig in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (1.1.1) Requirement already satisfied: py>=1.8.2 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (1.11.0) Requirement already satisfied: packaging in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (21.3) Requirement already satisfied: pluggy<2.0,>=0.12 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r requirements_pc.txt (line 10)) (1.0.0) Requirement already satisfied: distro in /home/sefau18/.local/lib/python3.6/site-packages (from dlr==1.10.0->-r requirements_pc.txt (line 13)) (1.7.0) Requirement already satisfied: tornado in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r requirements_pc.txt (line 14)) (6.1) Requirement already satisfied: cloudpickle in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r requirements_pc.txt (line 14)) (2.1.0) Requirement already satisfied: psutil in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r requirements_pc.txt (line 14)) (5.9.1) Requirement already satisfied: scipy in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r requirements_pc.txt (line 14)) (1.5.4) Requirement already satisfied: decorator in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r requirements_pc.txt (line 14)) (5.1.1) Requirement already satisfied: synr>=0.2.1 in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r requirements_pc.txt (line 14)) (0.6.0) Requirement already satisfied: pybind11>=2.4.3 in /home/sefau18/.local/lib/python3.6/site-packages (from tflite-runtime==2.4.0->-r requirements_pc.txt (line 16)) (2.9.2) Requirement already satisfied: zipp>=0.5 in /home/sefau18/.local/lib/python3.6/site-packages (from importlib-metadata>=0.12->pytest->-r requirements_pc.txt (line 10)) (3.6.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/sefau18/.local/lib/python3.6/site-packages (from packaging->pytest->-r requirements_pc.txt (line 10)) (3.0.9) sefau18@ubuntu:~$ source ./setup.sh X64 Architecture Installing python packages... Defaulting to user installation because normal site-packages is not writeable Collecting git+github.com/.../caffe2onnx (from -r ./requirements_pc.txt (line 12)) Cloning github.com/.../caffe2onnx to /tmp/pip-req-build-u14vy2nn Running command git clone --filter=blob:none -q github.com/.../caffe2onnx /tmp/pip-req-build-u14vy2nn Resolved github.com/.../caffe2onnx to commit b7e73feed3bbc5ddbdf25b87af93a2bae596055d Preparing metadata (setup.py) ... done Collecting dlr==1.10.0 Using cached github.com/.../dlr-1.10.0-py3-none-any.whl (2.2 MB) Collecting tvm==0.8.dev0 Using cached github.com/.../tvm-0.8.dev0-cp36-cp36m-linux_x86_64.whl (35.9 MB) Collecting onnxruntime-tidl==1.7.0 Using cached github.com/.../onnxruntime_tidl-1.7.0-cp36-cp36m-linux_x86_64.whl (5.1 MB) Collecting tflite-runtime==2.4.0 Using cached github.com/.../tflite_runtime-2.4.0-py3-none-any.whl (1.4 MB) Requirement already satisfied: numpy in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 1)) (1.19.5) Requirement already satisfied: pyyaml in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 2)) (6.0) Requirement already satisfied: protobuf==3.19.4 in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 3)) (3.19.4) Requirement already satisfied: onnx==1.9.0 in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 4)) (1.9.0) Requirement already satisfied: tflite in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 5)) (2.4.0) Requirement already satisfied: pillow==8.2.0 in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 6)) (8.2.0) Requirement already satisfied: flatbuffers==1.12.0 in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 7)) (1.12) Requirement already satisfied: requests in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 8)) (2.27.1) Requirement already satisfied: opencv-python==4.2.0.34 in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 9)) (4.2.0.34) Requirement already satisfied: pytest in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 10)) (7.0.1) Requirement already satisfied: graphviz in /home/sefau18/.local/lib/python3.6/site-packages (from -r ./requirements_pc.txt (line 11)) (0.8.4) Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/sefau18/.local/lib/python3.6/site-packages (from onnx==1.9.0->-r ./requirements_pc.txt (line 4)) (4.1.1) Requirement already satisfied: six in /home/sefau18/.local/lib/python3.6/site-packages (from onnx==1.9.0->-r ./requirements_pc.txt (line 4)) (1.16.0) Requirement already satisfied: charset-normalizer~=2.0.0 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r ./requirements_pc.txt (line 8)) (2.0.12) Requirement already satisfied: idna<4,>=2.5 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r ./requirements_pc.txt (line 8)) (3.3) Requirement already satisfied: certifi>=2017.4.17 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r ./requirements_pc.txt (line 8)) (2022.5.18.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/sefau18/.local/lib/python3.6/site-packages (from requests->-r ./requirements_pc.txt (line 8)) (1.26.9) Requirement already satisfied: importlib-metadata>=0.12 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (4.8.3) Requirement already satisfied: attrs>=19.2.0 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (21.4.0) Requirement already satisfied: iniconfig in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (1.1.1) Requirement already satisfied: py>=1.8.2 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (1.11.0) Requirement already satisfied: pluggy<2.0,>=0.12 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (1.0.0) Requirement already satisfied: packaging in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (21.3) Requirement already satisfied: tomli>=1.0.0 in /home/sefau18/.local/lib/python3.6/site-packages (from pytest->-r ./requirements_pc.txt (line 10)) (1.2.3) Requirement already satisfied: distro in /home/sefau18/.local/lib/python3.6/site-packages (from dlr==1.10.0->-r ./requirements_pc.txt (line 13)) (1.7.0) Requirement already satisfied: synr>=0.2.1 in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r ./requirements_pc.txt (line 14)) (0.6.0) Requirement already satisfied: cloudpickle in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r ./requirements_pc.txt (line 14)) (2.1.0) Requirement already satisfied: scipy in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r ./requirements_pc.txt (line 14)) (1.5.4) Requirement already satisfied: decorator in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r ./requirements_pc.txt (line 14)) (5.1.1) Requirement already satisfied: psutil in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r ./requirements_pc.txt (line 14)) (5.9.1) Requirement already satisfied: tornado in /home/sefau18/.local/lib/python3.6/site-packages (from tvm==0.8.dev0->-r ./requirements_pc.txt (line 14)) (6.1) Requirement already satisfied: pybind11>=2.4.3 in /home/sefau18/.local/lib/python3.6/site-packages (from tflite-runtime==2.4.0->-r ./requirements_pc.txt (line 16)) (2.9.2) Requirement already satisfied: zipp>=0.5 in /home/sefau18/.local/lib/python3.6/site-packages (from importlib-metadata>=0.12->pytest->-r ./requirements_pc.txt (line 10)) (3.6.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/sefau18/.local/lib/python3.6/site-packages (from packaging->pytest->-r ./requirements_pc.txt (line 10)) (3.0.9) --2022-06-10 00:45:41-- github.com/.../tidl_tools.tar.gz Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: objects.githubusercontent.com/.../a607f658-69fe-41b8-9d99-e1766df2fbca [following] --2022-06-10 00:45:41-- objects.githubusercontent.com/.../a607f658-69fe-41b8-9d99-e1766df2fbca Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 58937848 (56M) [application/octet-stream] Saving to: ‘tidl_tools.tar.gz’ tidl_tools.tar.gz 100%[================================>] 56.21M 3.45MB/s in 16s 2022-06-10 00:45:58 (3.50 MB/s) - ‘tidl_tools.tar.gz’ saved [58937848/58937848] --2022-06-10 00:45:59-- developer.arm.com/.../gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz Resolving developer.arm.com (developer.arm.com)... 104.64.124.88 Connecting to developer.arm.com (developer.arm.com)|104.64.124.88|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: armkeil.blob.core.windows.net/.../gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz [following] --2022-06-10 00:46:00-- armkeil.blob.core.windows.net/.../gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz Resolving armkeil.blob.core.windows.net (armkeil.blob.core.windows.net)... 52.239.137.100 Connecting to armkeil.blob.core.windows.net (armkeil.blob.core.windows.net)|52.239.137.100|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 282132940 (269M) [application/octet-stream] Saving to: ‘gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz’ gcc-arm-9.2-2019.12-x86_ 100%[================================>] 269.06M 1.97MB/s in 2m 12s 2022-06-10 00:48:12 (2.04 MB/s) - ‘gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz’ saved [282132940/282132940] --2022-06-10 00:48:34-- github.com/.../libonnxruntime.so.1.7.0 Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: objects.githubusercontent.com/.../3f847642-0e88-4a4a-a505-9b21b753bf23 [following] --2022-06-10 00:48:35-- objects.githubusercontent.com/.../3f847642-0e88-4a4a-a505-9b21b753bf23 Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 13689328 (13M) [application/octet-stream] Saving to: ‘libonnxruntime.so.1.7.0’ libonnxruntime.so.1.7.0 100%[================================>] 13.05M 3.64MB/s in 4.5s 2022-06-10 00:48:40 (2.91 MB/s) - ‘libonnxruntime.so.1.7.0’ saved [13689328/13689328] --2022-06-10 00:48:40-- github.com/.../libtensorflow-lite.a Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: objects.githubusercontent.com/.../06c9c657-bf0b-403a-bec1-bcfb05c5ea0f [following] --2022-06-10 00:48:40-- objects.githubusercontent.com/.../06c9c657-bf0b-403a-bec1-bcfb05c5ea0f Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 8407288 (8.0M) [application/octet-stream] Saving to: ‘libtensorflow-lite.a’ libtensorflow-lite.a 100%[================================>] 8.02M 3.54MB/s in 2.3s 2022-06-10 00:48:43 (3.54 MB/s) - ‘libtensorflow-lite.a’ saved [8407288/8407288] /home/sefau18/edgeai-tidl-tools fatal: destination path 'neo-ai-dlr' already exists and is not an empty directory. fatal: destination path 'onnxruntime' already exists and is not an empty directory. Device j7: Downloading tflite 2.4 fatal: destination path 'tensorflow' already exists and is not an empty directory. --2022-06-10 00:48:43-- github.com/.../v1.12.0.tar.gz Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: codeload.github.com/.../v1.12.0 [following] --2022-06-10 00:48:44-- codeload.github.com/.../v1.12.0 Resolving codeload.github.com (codeload.github.com)... 140.82.121.9 Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1145348 (1.1M) [application/x-gzip] Saving to: ‘v1.12.0.tar.gz’ v1.12.0.tar.gz 100%[================================>] 1.09M 3.34MB/s in 0.3s 2022-06-10 00:48:44 (3.34 MB/s) - ‘v1.12.0.tar.gz’ saved [1145348/1145348] mv: cannot move 'flatbuffers-1.12.0' to 'flatbuffers/flatbuffers-1.12.0': Directory not empty --2022-06-10 00:48:44-- github.com/.../4.1.0.zip Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: codeload.github.com/.../4.1.0 [following] --2022-06-10 00:48:45-- codeload.github.com/.../4.1.0 Resolving codeload.github.com (codeload.github.com)... 140.82.121.9 Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘4.1.0.zip’ 4.1.0.zip [ <=> ] 87.55M 3.03MB/s in 29s 2022-06-10 00:49:14 (2.99 MB/s) - ‘4.1.0.zip’ saved [91806599] Archive: 4.1.0.zip 371bba8f54560b374fbcd47e7e02f015ac4969ad replace opencv-4.1.0/.editorconfig? [y]es, [n]o, [A]ll, [N]one, [r]ename: A inflating: opencv-4.1.0/.editorconfig inflating: opencv-4.1.0/3rdparty/carotene/CMakeLists.txt inflating: opencv-4.1.0/3rdparty/carotene/README.md inflating: opencv-4.1.0/3rdparty/carotene/hal/CMakeLists.txt inflating: opencv-4.1.0/3rdparty/carotene/hal/tegra_hal.hpp inflating: opencv-4.1.0/3rdparty/carotene/include/carotene/definitions.hpp . . . . . . . . . . . . inflating: opencv-4.1.0/samples/wp8/OpenCVXaml/OpenCVXaml/Properties/AssemblyInfo.cs inflating: opencv-4.1.0/samples/wp8/OpenCVXaml/OpenCVXaml/Properties/WMAppManifest.xml inflating: opencv-4.1.0/samples/wp8/OpenCVXaml/OpenCVXaml/Resources/AppResources.Designer.cs inflating: opencv-4.1.0/samples/wp8/OpenCVXaml/OpenCVXaml/Resources/AppResources.resx inflating: opencv-4.1.0/samples/wp8/readme.txt /home/sefau18 -- Looking for ccache - not found -- libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.0-libjpeg-turbo -- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) -- Checking for module 'gtk+-3.0' -- No package 'gtk+-3.0' found -- Checking for module 'gtk+-2.0' -- No package 'gtk+-2.0' found -- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off -- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) -- A library with BLAS API not found. Please specify library location. -- LAPACK requires BLAS -- A library with LAPACK API not found. Please specify library location. -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file -- OpenCV Python: during development append to PYTHONPATH: /home/sefau18/opencv-4.1.0/cmake/python_loader -- -- General configuration for OpenCV 4.1.0 ===================================== -- Version control: unknown -- -- Platform: -- Timestamp: 2022-06-01T13:39:08Z -- Host: Linux 5.4.0-110-generic x86_64 -- CMake: 3.10.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: Release -- -- CPU/HW features: -- Baseline: SSE SSE2 SSE3 -- requested: SSE3 -- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX -- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX -- SSE4_1 (13 files): + SSSE3 SSE4_1 -- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 -- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX -- AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX -- AVX2 (27 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 -- AVX512_SKX (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX -- -- C/C++: -- Built as dynamic libs?: NO -- C++ Compiler: /usr/bin/c++ (ver 7.5.0) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/cc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -Wl,--gc-sections -- Linker flags (Debug): -Wl,--gc-sections -- ccache: NO -- Precompiled headers: YES -- Extra dependencies: ade gthread-2.0 glib-2.0 dl m pthread rt -- 3rdparty dependencies: libprotobuf zlib libjpeg-turbo libwebp libpng libtiff libjasper IlmImf quirc -- -- OpenCV modules: -- To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video -- Disabled: videoio world -- Disabled by dependency: - -- Unavailable: java js python2 ts -- Applications: apps -- Documentation: NO -- Non-free algorithms: NO -- -- GUI: -- GTK+: NO -- VTK support: NO -- -- Media I/O: -- ZLib: build (ver 1.2.11) -- JPEG: build-libjpeg-turbo (ver 2.0.2-62) -- WEBP: build (ver encoder: 0x020e) -- PNG: build (ver 1.6.36) -- TIFF: build (ver 42 - 4.0.10) -- JPEG 2000: build (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- PFM: YES -- -- Video I/O: -- DC1394: NO -- FFMPEG: NO -- avcodec: NO -- avformat: NO -- avutil: NO -- swscale: NO -- avresample: NO -- GStreamer: NO -- v4l/v4l2: YES (linux/videodev2.h) -- -- Parallel framework: pthreads -- -- Trace: YES (built-in) -- -- Other third-party libraries: -- Lapack: NO -- Eigen: NO -- Custom HAL: NO -- Protobuf: build (3.5.1) -- -- OpenCL: YES (no extra features) -- Include path: /home/sefau18/opencv-4.1.0/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load -- -- Python 3: -- Interpreter: /usr/bin/python3 (ver 3.6.9) -- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.9) -- numpy: /home/sefau18/.local/lib/python3.6/site-packages/numpy/core/include (ver 1.19.5) -- install path: lib/python3.6/dist-packages/cv2/python-3.6 -- -- Python (for build): /usr/bin/python2.7 -- -- Java: -- ant: NO -- JNI: NO -- Java wrappers: NO -- Java tests: NO -- -- Install to: /usr/local -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: /home/sefau18/opencv-4.1.0/cmake [ 2%] Built target ade [ 3%] Built target opencv_features2d_pch_dephelp [ 5%] Built target zlib [ 5%] Built target opencv_imgproc_pch_dephelp [ 5%] Built target opencv_videoio_plugins [ 5%] Built target opencv_dnn_pch_dephelp [ 5%] Built target quirc [ 5%] Built target opencv_stitching_pch_dephelp [ 5%] Built target opencv_ml_pch_dephelp [ 5%] Built target opencv_core_pch_dephelp [ 5%] Built target opencv_objdetect_pch_dephelp [ 6%] Built target opencv_calib3d_pch_dephelp [ 6%] Built target opencv_video_pch_dephelp [ 6%] Built target opencv_flann_pch_dephelp [ 8%] Built target opencv_highgui_pch_dephelp [ 17%] Built target libwebp [ 5%] Built target gen_opencv_python_source [ 18%] Built target opencv_gapi_pch_dephelp [ 22%] Built target libjasper [ 29%] Built target opencv_photo_pch_dephelp [ 34%] Built target libtiff [ 39%] Built target libjpeg-turbo [ 29%] Built target libprotobuf [ 40%] Built target pch_Generate_opencv_features2d [ 40%] Built target opencv_imgcodecs_pch_dephelp [ 40%] Built target pch_Generate_opencv_dnn [ 40%] Built target pch_Generate_opencv_calib3d [ 42%] Built target libpng [ 43%] Built target pch_Generate_opencv_imgproc [ 43%] Built target pch_Generate_opencv_ml [ 44%] Built target pch_Generate_opencv_video [ 44%] Built target pch_Generate_opencv_stitching [ 44%] Built target pch_Generate_opencv_highgui [ 44%] Built target pch_Generate_opencv_flann [ 44%] Built target pch_Generate_opencv_core [ 44%] Built target pch_Generate_opencv_gapi [ 44%] Built target pch_Generate_opencv_photo [ 44%] Built target pch_Generate_opencv_objdetect [ 44%] Built target pch_Generate_opencv_imgcodecs [ 51%] Built target IlmImf [ 60%] Built target opencv_core [ 60%] Built target opencv_version [ 62%] Built target opencv_ml [ 62%] Built target opencv_flann [ 71%] Built target opencv_imgproc [ 73%] Built target opencv_imgcodecs [ 75%] Built target opencv_photo [ 75%] Built target opencv_highgui [ 79%] Built target opencv_gapi [ 90%] Built target opencv_dnn [ 92%] Built target opencv_features2d [ 95%] Built target opencv_calib3d [ 96%] Built target opencv_objdetect [100%] Built target opencv_stitching [100%] Built target opencv_video [100%] Built target opencv_python3 /home/sefau18 mkdir: cannot create directory ‘/home/sefau18/ArmNNDelegate’: File exists fatal: destination path 'armnn' already exists and is not an empty directory. Already on 'branches/armnn_22_02' Your branch is up to date with 'origin/branches/armnn_22_02'. ln: failed to create symbolic link 'armnn/armnn': File exists --2022-06-10 00:50:16-- github.com/.../libarmnnDelegate.so Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: objects.githubusercontent.com/.../67c86783-ad1b-4288-a84f-6da5b8d12615 [following] --2022-06-10 00:50:16-- objects.githubusercontent.com/.../67c86783-ad1b-4288-a84f-6da5b8d12615 Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 418840 (409K) [application/octet-stream] Saving to: ‘libarmnnDelegate.so’ libarmnnDelegate.so 100%[================================>] 409.02K --.-KB/s in 0.1s 2022-06-10 00:50:17 (2.73 MB/s) - ‘libarmnnDelegate.so’ saved [418840/418840] --2022-06-10 00:50:17-- github.com/.../libarmnn.so Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: objects.githubusercontent.com/.../a56495be-9f45-4dc6-a069-e8ecc672026a [following] --2022-06-10 00:50:17-- objects.githubusercontent.com/.../a56495be-9f45-4dc6-a069-e8ecc672026a Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 29941792 (29M) [application/octet-stream] Saving to: ‘libarmnn.so’ libarmnn.so 100%[================================>] 28.55M 3.16MB/s in 10s 2022-06-10 00:50:28 (2.77 MB/s) - ‘libarmnn.so’ saved [29941792/29941792]
./edgeeai-tidl-tools/examples/osrT_python common_utils.py 添加
'best' : {
'model_path' : os.path.join('/home/sefau18/edgeai-tidl-tools/models/public/best.onnx'),
'mean': [0, 0, 0],
'std' : [0.003921568627,0.003921568627,0.003921568627],
'num_images' : numImages,
'num_classes': 36,
'model_type': 'od',
'od_type' : 'YoloV5',
'framework' : '',
'meta_layers_names_list' : os.path.join('/home/sefau18/edgeai-tidl-tools/models/public/best.prototxt'),
'session_name' : 'onnxrt' ,
'meta_arch_type' : 6
},
./edgeeai-tidl-tools/examples/osrT_python /ort/onnxrt_ep.py 编辑
从
models = ['cl-ort-resnet18-v1', 'cl-ort-caffe_squeezenet_v1_1', 'ss-ort-deeplabv3lite_mobilenetv2', 'od-ort-ssd-lite_mobilenetv2_fpn']
更改为
models = ['best']
并运行
sefau18@ubuntu:~/edgeai-tidl-tools$ cd examples/osrt_python/ort sefau18@ubuntu:~/edgeai-tidl-tools/examples/osrt_python/ort$ python3 onnxrt_ep.py -c Available execution providers : ['TIDLExecutionProvider', 'TIDLCompilationProvider', 'CPUExecutionProvider'] Running 1 Models - ['best'] Running_Model : best TIDL Meta PipeLine (Proto) File : /home/sefau18/edgeai-tidl-tools/models/public/best.prototxt yolo_v3 yolo_v3 Number of OD backbone nodes = 0 Size of odBackboneNodeIds = 0 Preliminary subgraphs created = 0 Final number of subgraphs created are : 0, - Offloaded Nodes - 0, Total Nodes - 1 TIDL Meta PipeLine (Proto) File : /home/sefau18/edgeai-tidl-tools/models/public/best.prototxt yolo_v3 yolo_v3 Number of OD backbone nodes = 0 Size of odBackboneNodeIds = 0 Preliminary subgraphs created = 0 Final number of subgraphs created are : 0, - Offloaded Nodes - 0, Total Nodes - 1 TIDL Meta PipeLine (Proto) File : /home/sefau18/edgeai-tidl-tools/models/public/best.prototxt yolo_v3 yolo_v3 Number of OD backbone nodes = 328 Size of odBackboneNodeIds = 328 Preliminary subgraphs created = 1 Final number of subgraphs created are : 1, - Offloaded Nodes - 434, Total Nodes - 434
但模型工件的创建被中断。 问题可能出在哪呢?
提前感谢






