espressif / esp-dl

Espressif deep-learning library for AIoT applications
MIT License
516 stars 115 forks source link

"Initialization" not defined (AIV-567) #108

Closed Insektro closed 1 year ago

Insektro commented 1 year ago

Hello, error while running example.py in quantification_tool.

I don't have errors in the import lines, but I have this message "Calibrator" is not defined [Ln 36, Col 9]

This line (36) is the initialization function of calibrator calib = Calibrator('int16', 'per-tensor', 'minmax')

I also have the same error with Evaluator.

I have installed the requirements. I tried to move the pyd files to the same directory.

Insektro commented 1 year ago

[SOLVED] Just add

from calibrator import Calibrator