TexasInstruments / edgeai-tidl-tools

Edgeai TIDL Tools and Examples - This repository contains Tools and example developed for Deep learning runtime (DLRT) offering provided by TI’s edge AI solutions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USE_PROXY variable in dockerfile seems to be wrong

sourabh-patil opened this issue · comments

Hi team,
I am trying to compile my custom models using this repo. For that I am using tag 09_00_00_06, which seems to be the latest one. For this I am doing docker based setup. But, there are few bugs that I could see. First the issue was related to cmake not found. After reading the setup.sh as well as the dockerfile, I found that you are setting USE_PROXY=none in dockerfile so while building the docker image, packages from requirements.txt are not installed as well as some other packages like cmake, protobuf-compiler, etc. So, what should be the USE_PROXY variable? Also, in setup.sh the REL variable is 09_00_00_01 which does not match with actual tag (09_00_00_06). I hope it won't be an issue while installing the dependencies from TI website.
Thanks!

After installing required packages from requirements.txt and well as cmake,etc.I got following error

Downloading tidl tools for AM68PA SOC ...
tar: gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
chmod: cannot access 'ti_cgt_c7000_3.1.0.LTS_linux-x64_installer.bin': No such file or directory
bash: ./ti_cgt_c7000_3.1.0.LTS_linux-x64_installer.bin: No such file or directory
Installing:onnxruntime
tar: onnx_1.7.0_x86_u22.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
bash: cd: onnx_1.7.0_x86_u22: No such file or directory
rm: cannot remove 'onnx_1.7.0_x86_u22.tar.gz': No such file or directory
Installing:tflite_2.8
tar: tflite_2.8_x86_u22.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tflite_2.8_x86_u22.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rm: cannot remove 'tflite_2.8_x86_u22.tar.gz': No such file or directory
Installing:opencv
tar: opencv_4.2.0_x86_u22.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rm: cannot remove 'opencv_4.2.0_x86_u22.tar.gz': No such file or directory
Installing:dlr
tar: dlr_1.10.0_x86_u22.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rm: cannot remove 'dlr_1.10.0_x86_u22.tar.gz': No such file or directory

Some guiding points will be really helpful. Thanks!

same things using the tag 09_00_00_06 with Docker setup (Ubuntu 20) got the same error.
from the Dockers folder Readme.md
`

[ 4/10] RUN apt-get update -y && apt-get dist-upgrade -y && apt-get install -y glib-2.0-dev ncurses-dev libopencv-core-dev libopencv-imgproc-dev libyaml-cpp-dev:
0.679 Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
0.679 Could not connect to 192.91.66.131:80 (192.91.66.131). - connect (113: No route to host)
0.679 Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
0.679 Unable to connect to 192.91.66.131:80:
0.679 Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
0.679 Unable to connect to 192.91.66.131:80:
0.679 Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
0.679 Unable to connect to 192.91.66.131:80:`

It worked for me after I edited the Dockerfile and installed the dependencies. I guess at the time, when I was trying to run setup.sh, there was an issue with TI website, it was under maintenance I guess. But again, Dockerfile should be edited.

I've encountered the same error, ended up editing the dockerfile. I guess it was never tested without TI proxy.
The edit was to remove USE_PROXY env variable and changing the applicable if statement to [ ! $USE_PROXY ]