YOLOv5 Export Benchmarks for GPU (#6963)
* Add benchmarks.py GPU support * Updates * Updates * Updates * Updates * Add --half * Add TRT requirements * Cleanup * Add TF to warmup types * Update export.py * Update export.py * Update benchmarks.py
This commit is contained in:
1 parent
99de551f97
commit
932dc78496
3 files changed
+31
-18
No files matched your search
@@ -75,18 +75,18 @@ from utils.torch_utils import select_device
|
||||
|
||||
def export_formats():
|
||||
# YOLOv5 export formats
|
||||
x = [['PyTorch', '-', '.pt'],
|
||||
['TorchScript', 'torchscript', '.torchscript'],
|
||||
['ONNX', 'onnx', '.onnx'],
|
||||
['OpenVINO', 'openvino', '_openvino_model'],
|
||||
['TensorRT', 'engine', '.engine'],
|
||||
['CoreML', 'coreml', '.mlmodel'],
|
||||
['TensorFlow SavedModel', 'saved_model', '_saved_model'],
|
||||
['TensorFlow GraphDef', 'pb', '.pb'],
|
||||
['TensorFlow Lite', 'tflite', '.tflite'],
|
||||
['TensorFlow Edge TPU', 'edgetpu', '_edgetpu.tflite'],
|
||||
['TensorFlow.js', 'tfjs', '_web_model']]
|
||||
return pd.DataFrame(x, columns=['Format', 'Argument', 'Suffix'])
|
||||
x = [['PyTorch', '-', '.pt', True],
|
||||
['TorchScript', 'torchscript', '.torchscript', True],
|
||||
['ONNX', 'onnx', '.onnx', True],
|
||||
['OpenVINO', 'openvino', '_openvino_model', False],
|
||||
['TensorRT', 'engine', '.engine', True],
|
||||
['CoreML', 'coreml', '.mlmodel', False],
|
||||
['TensorFlow SavedModel', 'saved_model', '_saved_model', True],
|
||||
['TensorFlow GraphDef', 'pb', '.pb', True],
|
||||
['TensorFlow Lite', 'tflite', '.tflite', False],
|
||||
['TensorFlow Edge TPU', 'edgetpu', '_edgetpu.tflite', False],
|
||||
['TensorFlow.js', 'tfjs', '_web_model', False]]
|
||||
return pd.DataFrame(x, columns=['Format', 'Argument', 'Suffix', 'GPU'])
|
||||
|
||||
|
||||
def export_torchscript(model, im, file, optimize, prefix=colorstr('TorchScript:')):
|
||||
|
||||
Reference in new issue
Block a user