AI Model Deployer supports the following model frameworks:
TensorFlow: frozen format (.pb format), saved model (.pb format) and metagraph model (.meta format)
Keras: .h5 format
ONNX: .onnx format
PyTorch: .pth format
For different FW versions of TM NPU, the supported framework versions may be different. The GUI of AI Model Deployer can guide you through selecting the compatible model framework.
The framework supporting information is as follows:
Selected firmware version |
Framework |
Supported framework version |
---|---|---|
2.0 |
TensorFlow |
1.x and 2.x (≤ 2.4) |
Keras |
≤ 2.4 |
|
ONNX |
≤ 1.12 |
|
PyTorch |
≤ 1.13 |
Limitation for models to run on TM NPU
AI Model Deployer warns if the size of the trained model which needs to be converted is over 200 MB.
The size of the converted model for TM NPU should be less than 100 MB.
TensorFlow
The following TensorFlow models are tested with AI Model Deployer and can be converted to TM NPU compatible model format.
Pre-trained Models |
Model Parameters |
TM NPU Firmware version |
Type |
|
---|---|---|---|---|
Frozen model |
|
2.0 |
Image classification |
|
Frozen model |
|
2.0 |
Image classification |
|
Frozen model |
|
2.0 |
Object detection |
|
Frozen model |
|
2.0 |
Object detection |
|
Saved model |
|
2.0 |
Object detection |
|
Saved model |
|
2.0 |
Object detection |
|
Meta graph model |
|
2.0 |
Object detection |
|
Meta graph model |
|
2.0 |
Object detection |
TensorFlow2
The following TensorFlow2 models are tested with AI Model Deployer and can be converted to TM NPU compatible model format.
Pre-trained Models |
Model Parameters |
TM NPU Firmware version |
Type |
|
---|---|---|---|---|
Saved model |
Converted from Keras model |
|
2.0 |
Image classification |
Saved model |
Converted from Keras model |
|
2.0 |
Image classification |
Saved model |
Downloaded from Keras applications and converted to TensorFlow 2 saved model |
|
2.0 |
Image classification |
Saved model |
Downloaded from Keras applications and converted to TensorFlow 2 saved model |
|
2.0 |
Image classification |
Keras
The following Keras models are tested with AI Model Deployer and can be converted to TM NPU compatible model format.
Pre-trained Models |
Model Parameters |
TM NPU Firmware version |
Type |
---|---|---|---|
|
2.0 |
Image classification |
|
Downloaded from Keras applications |
|
2.0 |
Image classification |
Downloaded from Keras applications |
|
2.0 |
Image classification |
Downloaded from Keras applications |
|
2.0 |
Image classification |
Downloaded from Keras applications |
|
2.0 |
Image classification |
ONNX
The following ONNX models are tested with AI Model Deployer and can be converted to TM NPU compatible model format.
Pre-trained Models |
Model Parameters |
TM NPU Firmware version |
Type |
---|---|---|---|
(Converted from PyTorch model) |
|
2.0 |
Image classification |
(Converted from Keras model) |
|
2.0 |
Object detection |
PyTorch
The following PyTorch models are tested with AI Model Deployer and can be converted to TM NPU compatible model format.
Pre-trained Models |
Model Parameters |
TM NPU Firmware version |
Type |
---|---|---|---|
|
2.0 |
Image classification |