for i, model_path in enumerate(models_list):
try:
results = benchmark(
model=model_path,
data=data_yaml,
imgsz=640,
half=False,
device="CPU",
)
except Exception as e:
continue
result :
±--------------------------------------------------------------------------------------------------------+
| Format Status
Size (MB) metrics/mAP50-95(B) Inference time (ms/im) FPS |
+=========================================================================================================+
| 1 PyTorch
5.2 0.7548 165.56 6.04 |
| 2 TorchScript
10.4 0.7388 253.64 3.94 |
| 3 ONNX
10.1 0.7388 234.08 4.27 |
| 4 OpenVINO
10.2 0.7403 178.82 5.59 |
| 5 TensorRT
0.0 - - - |
| 6 CoreML
5.1 - - - |
| 7 TensorFlow SavedModel
0.0 - - - |
| 8 TensorFlow GraphDef
0.0 - - - |
| 9 TensorFlow Lite
0.0 - - - |
| 10 TensorFlow Edge TPU
0.0 - - - |
| 11 TensorFlow.js
0.0 - - - |
| 12 PaddlePaddle
20.4 0.7403 339.48 2.95 |
| 13 MNN
10.0 0.739 185.79 5.38 |
| 14 NCNN
0.0 - - - |
| 15 IMX
0.0 - - - |
| 16 RKNN
0.0 - - - |
±--------------------------------------------------------------------------------------------------------+
Error Imformation:
ERROR
TensorFlow SavedModel: export failure 2.0s: module ‘onnx.helper’ has no attribute ‘float32_to_bfloat16’
ERRORBenchmark failure for TensorFlow SavedModel: module ‘onnx.helper’ has no attribute 'float32_to_bfloat16
ERROR
TensorFlow SavedModel: export failure 2.7s: module ‘onnx.helper’ has no attribute ‘float32_to_bfloat16’
ERRORBenchmark failure for TensorFlow Lite: module ‘onnx.helper’ has no attribute ‘float32_to_bfloat16’
NCNN format also don’t work , but have not thow a ERROR…
THANK U FOR YOUR HELP ![]()