Add --hard-fail argument to benchmarks for CI errors (#8513)
* Add `--hard-fail` list argument to benchmarks for CI Will cause CI to fail on a benchmark failure for given indices. * Update ci-testing.yml * Attempt Failure (CI should fail) * Update benchmarks.py * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update benchmarks.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update ci-testing.yml * Update benchmarks.py * Update benchmarks.py Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
39d7a93619
commit
3e54651fca
3 files changed
+25
-17
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', 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'])
|
||||
['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],]
|
||||
return pd.DataFrame(x, columns=['Format', 'Argument', 'Suffix', 'CPU', 'GPU'])
|
||||
|
||||
|
||||
def export_torchscript(model, im, file, optimize, prefix=colorstr('TorchScript:')):
|
||||
|
||||
Reference in new issue
Block a user