mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
20 lines
907 B
Python
20 lines
907 B
Python
import pandas as pd
|
|
|
|
|
|
def export_formats():
|
|
# YOLOv5 export formats
|
|
x = [
|
|
['PyTorch', '-', '.pt', True, True],
|
|
['TorchScript', 'torchscript', '.torchscript', True, True],
|
|
['ONNX', 'onnx', '.onnx', True, True],
|
|
['OpenVINO', 'openvino', '_openvino_model', True, False],
|
|
['TensorRT', 'engine', '.engine', False, True],
|
|
['CoreML', 'coreml', '.mlmodel', True, False],
|
|
['TensorFlow SavedModel', 'saved_model', '_saved_model', True, True],
|
|
['TensorFlow GraphDef', 'pb', '.pb', True, True],
|
|
['TensorFlow Lite', 'tflite', '.tflite', True, False],
|
|
['TensorFlow Edge TPU', 'edgetpu', '_edgetpu.tflite', False, False],
|
|
['TensorFlow.js', 'tfjs', '_web_model', False, False],
|
|
['PaddlePaddle', 'paddle', '_paddle_model', True, True],]
|
|
return pd.DataFrame(x, columns=['Format', 'Argument', 'Suffix', 'CPU', 'GPU'])
|