espressif / esp-dl

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

The example of esp-dl/tools/tensorflow_to_onnx does not support MatMul and Softmax yet (AIV-536) #98

Open QimingLee opened 2 years ago

QimingLee commented 2 years ago

We complete the example and run the program, but it shows "Generating the quantization table: MatMul is not supported on esp-dl yet Softmax is not supported on esp-dl yet"

Traceback (most recent call last): File "D:/esp-dl-master/esp-dl-master/tools/quantization_tool/examples/example.py", line 39, in calib.generate_quantization_table(model_proto, calib_dataset, pickle_file_path) File "calibrator.py", line 333, in calibrator.Calibrator.generate_quantization_table File "calibrator.py", line 222, in calibrator.Calibrator.generate_output_model File "calibrator.py", line 217, in calibrator.Calibrator.check_model ValueError: current model is not supported by esp-dl

Raven888888 commented 1 year ago

@Auroragan when can it support more layers like MatMul and Clip in calibrator? These are very common layers and the calibrator is too outdated

Farzinkh commented 1 year ago

Hi, I was successful in implementing Convolution,MatMul and Softmax check out here.

Raven888888 commented 1 year ago

@Farzinkh impressive! I sure will try out!

SamsonAdem commented 8 months ago

Is this resolved??

AlanG2004 commented 1 month ago

Hi, I was successful in implementing Convolution,MatMul and Softmax check out here.

Where specifically should I look? The repository you provided is hard to follow, please let me know I am having the same issue and it is frustrating. Thank you.

AlanG2004 commented 1 month ago

We complete the example and run the program, but it shows "Generating the quantization table: MatMul is not supported on esp-dl yet Softmax is not supported on esp-dl yet"

Traceback (most recent call last): File "D:/esp-dl-master/esp-dl-master/tools/quantization_tool/examples/example.py", line 39, in calib.generate_quantization_table(model_proto, calib_dataset, pickle_file_path) File "calibrator.py", line 333, in calibrator.Calibrator.generate_quantization_table File "calibrator.py", line 222, in calibrator.Calibrator.generate_output_model File "calibrator.py", line 217, in calibrator.Calibrator.check_model ValueError: current model is not supported by esp-dl

Hello were you able to solve this problem? I am running into the same issue any help would be appreciated @QimingLee @Farzinkh