Open Raven888888 opened 1 year ago
@NatashaLi-ESPRESSIF do u know?
Hi, the compiled library for windows is here: https://github.com/espressif/esp-dl/tree/master/tools/quantization_tool/windows. They are compiled using python 3.7, please try 3.7 first.
Hi, the compiled library for windows is here: https://github.com/espressif/esp-dl/tree/master/tools/quantization_tool/windows. They are compiled using python 3.7, please try 3.7 first.
As per the documentation I tried with Python 3.7 (Windows 11) but the mentioned packages give error - Could not find a version that satisfies the requirement onnxruntime==1.7.0 . What's the problem here, is the documentation wrong or is there any other mistake.
Initially I tried to install the packages as per the given env and requirements, ie. Py-3.7 and the other things. But I got errors when I installed those packages with the specified versions. So I went with my Py3.7 also with Py-3.11.0 and installed the latest versions of the required packages. Now there is no problem with the packages but I'm getting this error : from calibrator import * ImportError: DLL load failed while importing calibrator: The specified module could not be found.
MyFolder
main.py from optimizer import from calibrator import from evaluator import *
So please look into this issue and share your views. Thank you
Hi, The relevant environment requirements are as follows:
Python == 3.7 Numba == 0.53.1 ONNX == 1.9.0 ONNX Runtime == 1.7.0 ONNX Optimizer == 0.2.6
You can find these requirements in esp-dl/tools/quantization_tool/requirements.txt. It is not necessary to use the latest versions, as they may cause issues.
The issue you encountered, "Could not find a version that satisfies the requirement onnxruntime==1.7.0," was a message from your computer environment when installing the packages, not a message from esp-dl. It could be due to other dependencies restricting the installation of onnxruntime 1.7.0, or your download source might not have that version. You can use a search engine to learn more about managing Python environments or Anaconda environments.
Here is my env Python 3.8 Windows
When run example to use quantization tool
Not sure which library is causing the problem. The code is closed source, and
import *
is not helping.