Skip to content

Custom model on KR260 using 08-tf2_flow tutorial  #113

Open

Description

@mi-heinsch

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?

Activity

  1. mi-heinsch commented on Nov 13, 2023

    @mi-heinsch
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions