You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom model on KR260 using 08-tf2_flow tutorial #113
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?
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.
Activity
mi-heinsch commentedon Nov 13, 2023
Update:
I checked the python versions when using
python --versionpython3 --versionsudo python --versionsudo python3 --versionand 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 tqdmAlso had the same problem with another package used in another script and solved it the same way.