renesas-rz / rzv_drp-ai_tvm

Extension package of Apache TVM (Machine Learning Compiler) for Renesas DRP-AI accelerators powered by Edgecortix MERA(TM) Based Apache TVM version: v0.11.1
Apache License 2.0
41 stars 5 forks source link

Compile onnx models tutorial `ModuleNotFoundError: No module named 'python_api'` #14

Closed ddfabbro closed 1 year ago

ddfabbro commented 1 year ago

Built docker image according to Installing DRP-AI TVM with Docker

Now moved to Example using Resnet from the official ONNX model zoo

cd ./tutorials/
# Download onnx model from official ONNX model zoo
wget https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet18-v1-7.onnx
python3 compile_onnx_model.py \
    ./resnet18-v1-7.onnx \
    -o resnet18_onnx \
    -s 1,3,224,224 \
    -i data

and got error

Traceback (most recent call last):
  File "compile_onnx_model.py", line 24, in <module>
    from drpai_preprocess import * 
  File "/drp-ai_tvm/tutorials/drpai_preprocess/op.py", line 34, in <module>
    from python_api import *
ModuleNotFoundError: No module named 'python_api'
ddfabbro commented 1 year ago

Fixed.

Had mistakenly deleted drpai-translator and onnx /opt folder when making shared volume for /opt/poky