Espressif deep-learning library for AIoT applications
Assembly
1,172
955 commits
updated Oct 15, 2026
ESP-DL is a lightweight and efficient neural network inference framework designed specifically for ESP series chips. With ESP-DL, you can easily and quickly develop AI applications using Espressif's System on Chips (SoCs).
ESP-DL offers APIs to load, debug, and run AI models. The framework is easy to use and can be seamlessly integrated with other Espressif SDKs. ESP-PPQ serves as the quantization tool for ESP-DL, capable of quantizing models from ONNX, Pytorch, and TensorFlow, and exporting them into the ESP-DL standard model format.
.espdl..espdl models in netron to facilitate model debugging.ESPDet-Pico model, which can easily train and deploy object detection models. espdet_pico_224_224_cat espdl model and example is a cat detection model trained by esp-detection. Feel free to try it and share your feedback!ESP-DL runs based on ESP-IDF. For detailed instructions on how to get ESP-IDF, please see ESP-IDF Programming Guide.
Please use ESP-IDF
release/v5.3or above.
ESP-PPQ is a quantization tool based on ppq. If you want to quantize your own model, you can install esp-ppq using the following method. For more installation methods, please refer to the Getting Started.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install esp-ppq
[!NOTE]
- The example code installs the Linux PyTorch CPU version. Please install the appropriate PyTorch version based on your actual needs.
First, please refer to the ESP-DL Operator Support State to ensure that the operators in your model are already supported.
ESP-PPQ can directly read ONNX models for quantization. Pytorch and TensorFlow need to be converted to ONNX models first, so make sure your model can be converted to ONNX models. For more details about quantization, please refer to
how to quantize model
how to quantize MobileNetV2
how to quantize YOLO11n
ESP-DL provides a series of API to quickly load and run models. A typical example is as follows:
how to load test profile model
how to run model
The directory models contains a collection of pre-trained and quantized models optimized for ESP32 series chips. Each model is provided as an ESP-IDF component for easy integration. For more details, please refer to ESP-DL Model Zoo.
If you encounter unsupported operators, please point them out in the issues, and we will support them as soon as possible. Contributions to this ESP-DL are also welcomed, please refer to Creating a New Module (Operator) for more details.
Espressif deep-learning library for AIoT applications
Assembly
1,172
955 commits
updated Oct 15, 2026
ESP-DL is a lightweight and efficient neural network inference framework designed specifically for ESP series chips. With ESP-DL, you can easily and quickly develop AI applications using Espressif's System on Chips (SoCs).
ESP-DL offers APIs to load, debug, and run AI models. The framework is easy to use and can be seamlessly integrated with other Espressif SDKs. ESP-PPQ serves as the quantization tool for ESP-DL, capable of quantizing models from ONNX, Pytorch, and TensorFlow, and exporting them into the ESP-DL standard model format.
.espdl..espdl models in netron to facilitate model debugging.ESPDet-Pico model, which can easily train and deploy object detection models. espdet_pico_224_224_cat espdl model and example is a cat detection model trained by esp-detection. Feel free to try it and share your feedback!ESP-DL runs based on ESP-IDF. For detailed instructions on how to get ESP-IDF, please see ESP-IDF Programming Guide.
Please use ESP-IDF
release/v5.3or above.
ESP-PPQ is a quantization tool based on ppq. If you want to quantize your own model, you can install esp-ppq using the following method. For more installation methods, please refer to the Getting Started.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install esp-ppq
[!NOTE]
- The example code installs the Linux PyTorch CPU version. Please install the appropriate PyTorch version based on your actual needs.
First, please refer to the ESP-DL Operator Support State to ensure that the operators in your model are already supported.
ESP-PPQ can directly read ONNX models for quantization. Pytorch and TensorFlow need to be converted to ONNX models first, so make sure your model can be converted to ONNX models. For more details about quantization, please refer to
how to quantize model
how to quantize MobileNetV2
how to quantize YOLO11n
ESP-DL provides a series of API to quickly load and run models. A typical example is as follows:
how to load test profile model
how to run model
The directory models contains a collection of pre-trained and quantized models optimized for ESP32 series chips. Each model is provided as an ESP-IDF component for easy integration. For more details, please refer to ESP-DL Model Zoo.
If you encounter unsupported operators, please point them out in the issues, and we will support them as soon as possible. Contributions to this ESP-DL are also welcomed, please refer to Creating a New Module (Operator) for more details.