custom model with TVM deployment error function 'TVMGetLastPythonError' not found (AIV-685)

sylia IT
Posts: 1
Joined: Tue Dec 20, 2022 1:05 pm

custom model with TVM deployment error function 'TVMGetLastPythonError' not found (AIV-685)

Postby sylia IT » Tue Mar 19, 2024 11:10 am

Hi,

I'm trying to create a custom model for detection, I follow this tutorial
https://docs.espressif.com/projects/esp ... h-tvm.html,
I use conda under windows for a development environment, when I try to deploy my solution on an esp32s3 I encounter a problem with TVM, namely that I have performed all the installation steps the error below


python export_onnx_model.py --target_chip esp32s3 --model_path model_opt.onnx --img_path img.npy --template_path "esp_dl/tools/tvm/template_project_for_model" --out_path "esp_dl/example"
Traceback (most recent call last):
File "export_onnx_model.py", line 9, in <module>
import tvm
File "C:\Users\belka\anaconda3\envs\Esp32\lib\site-packages\tvm-0.16.dev1129+g95ec38be9-py3.8-win-amd64.egg\tvm\__init__.py", line 33, in <module>
from .runtime.object import Object
File "C:\Users\belka\anaconda3\envs\Esp32\lib\site-packages\tvm-0.16.dev1129+g95ec38be9-py3.8-win-amd64.egg\tvm\runtime\__init__.py", line 23, in <module>
from .script_printer import Scriptable
File "C:\Users\belka\anaconda3\envs\Esp32\lib\site-packages\tvm-0.16.dev1129+g95ec38be9-py3.8-win-amd64.egg\tvm\runtime\script_printer.py", line 29, in <module>
class PrinterConfig(Object):
File "C:\Users\belka\anaconda3\envs\Esp32\lib\site-packages\tvm-0.16.dev1129+g95ec38be9-py3.8-win-amd64.egg\tvm\_ffi\registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "C:\Users\belka\anaconda3\envs\Esp32\lib\site-packages\tvm-0.16.dev1129+g95ec38be9-py3.8-win-amd64.egg\tvm\_ffi\base.py", line 496, in check_call
raise_last_ffi_error()
File "C:\Users\belka\anaconda3\envs\Esp32\lib\site-packages\tvm-0.16.dev1129+g95ec38be9-py3.8-win-amd64.egg\tvm\_ffi\base.py", line 416, in raise_last_ffi_error
_LIB.TVMGetLastPythonError.restype = ctypes.c_void_p
File "C:\Users\belka\anaconda3\envs\Esp32\lib\ctypes\__init__.py", line 386, in __getattr__
func = self.__getitem__(name)
File "C:\Users\belka\anaconda3\envs\Esp32\lib\ctypes\__init__.py", line 391, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'TVMGetLastPythonError' not found
Any suggestion please ?

Who is online

Users browsing this forum: Google [Bot] and 89 guests