This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7-Q1: edge-modelmaker

Part Number: AM62A7-Q1

Tool/software:

Hello Team,

Environment Details:

  • Edge Model Maker Version: Revision 9.1
  • Operating System: Ubuntu 22.04
  • Processor: AMD Ryzen 7 5700 x16
  • RAM: 48GB
  • No Deteciated Graphis card

Setup: We set up Edge Model Maker following the steps provided in the README. Since our host system is Ubuntu 22.04, we followed the instructions under Step 1a.

Steps Taken:

  1. Ran ./setup_all.sh as instructed.
    • The setup script was executed without any visible errors or warnings.
  2. Attempted to run a detection configuration for testing purposes.

Issue Encountered: Upon running the detection configuration, we encountered the following error

./run_modelmaker.sh AM62A config_detection.yaml

Number of AVX cores detected in PC: 16
AVX compilation speedup in PC     : 1
Target device                     : AM62A
PYTHONPATH                        : .:
TIDL_TOOLS_PATH                   : ../edgeai-benchmark/tools/AM62A/tidl_tools
LD_LIBRARY_PATH                   : ../edgeai-benchmark/tools/AM62A/tidl_tools
argv: ['./scripts/run_modelmaker.py', 'config_detection.yaml', '--target_device', 'AM62A']
---------------------------------------------------------------------
Run Name: 20241111-195138/yolox_nano_lite
- Model: yolox_nano_lite
- TargetDevices & Estimated Inference Times (ms): {'TDA4VM': 3.74, 'AM62A': 8.87, 'AM68A': 3.73, 'AM69A': '3.64 (with 1/4th device capability)', 'AM62': 516.15}
- This model can be compiled for the above device(s).
---------------------------------------------------------------------
dataset split sizes {'train': 393, 'val': 107}
max_num_files is set to: 10000
dataset split sizes are limited to: {'train': 393, 'val': 107}
dataset loading OK
loading annotations into memory...
Done (t=0.05s)
creating index...
index created!
loading annotations into memory...
Done (t=0.01s)
creating index...
index created!
Run params is at: /home/project/ti-model-maker/edgeai-modelmaker/data/projects/tiscapes2017_driving/run/20241111-195138/yolox_nano_lite/run.yaml
/home/project/ti-model-maker/edgeai-mmdetection/mmdet/utils/setup_env.py:32: UserWarning: Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
  warnings.warn(
/home/project/ti-model-maker/edgeai-mmdetection/mmdet/utils/setup_env.py:42: UserWarning: Setting MKL_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
  warnings.warn(
Traceback (most recent call last):
  File "/home/project/ti-model-maker/edgeai-modelmaker/./scripts/run_modelmaker.py", line 141, in <module>
    main(config)
  File "/home/project/ti-model-maker/edgeai-modelmaker/./scripts/run_modelmaker.py", line 80, in main
    model_runner.run()
  File "/home/project/ti-model-maker/edgeai-modelmaker/edgeai_modelmaker/ai_modules/vision/runner.py", line 166, in run
    self.model_training.run()
  File "/home/project/ti-model-maker/edgeai-modelmaker/edgeai_modelmaker/ai_modules/vision/training/edgeai_mmdetection/detection.py", line 417, in run
    train_module.main(args)
  File "/home/project/ti-model-maker/edgeai-mmdetection/tools/train.py", line 162, in main
    cfg.dump(osp.join(cfg.work_dir, osp.basename(args.config)))
  File "/home/.pyenv/versions/py310/lib/python3.10/site-packages/mmcv/utils/config.py", line 564, in dump
    f.write(self.pretty_text)
  File "/home/.pyenv/versions/py310/lib/python3.10/site-packages/mmcv/utils/config.py", line 502, in pretty_text
    text, _ = FormatCode(text, style_config=yapf_style, verify=True)
TypeError: FormatCode() got an unexpected keyword argument 'verify'

Request: Any insights or suggestions to resolve this issue? Are there additional dependencies or configurations for detection to work on Ubuntu 22.04?

Thank you for the assistance

Regards,

Raveen