Xilinx / Vitis-AI-Tutorials

MIT License
398 stars 146 forks source link

Custom model on KR260 using 08-tf2_flow tutorial #113

Open mi-heinsch opened 1 year ago

mi-heinsch commented 1 year ago

We were trying to run a customized model on the KR260. But when following the 08-tf2_flow Tutorial the scripts dont seem to work. When using "source run_all.sh" there is "permission denied", but when using it with sudo before hand: "sudo: source: command not found" So we tried executing the scripts manually but after "sudo python -u images_to_tfrec.py 2>&1 | sudo tee tfrec.log" we only get:

Traceback (most recent call last):
      File "images_to_tfrec.py", line 41, in <module>
      from tqdm import tqdm
ImportError: No module named tqdm

I checked that tqdm is installed with pip install tqdm and the output confirms

Using pip 22.1.2 from /opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/pip (python 3.7)
Requirement already satisfied: tqdm in /opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages (4.64.0)

Did anyone ran into a similar problem or knows a fix?

mi-heinsch commented 1 year ago

Update: I checked the python versions when using python --version python3 --version sudo python --version sudo python3 --version and noticed that it used 3 different versions and since I need to use sudo (company computer and network....) it wanted to use a different version than intended by the tutorial so the required packages where installed but for the wrong python version.. Fixed this with sudo python -m pip install tqdm Also had the same problem with another package used in another script and solved it the same way.