Restrict ONNX ExecutionProviders (#18400)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
9935b45377
commit
c9a48b281e
6 changed files with 23 additions and 20 deletions
|
|
@ -74,10 +74,10 @@ def pytest_terminal_summary(terminalreporter, exitstatus, config):
|
|||
|
||||
# Remove files
|
||||
models = [path for x in ["*.onnx", "*.torchscript"] for path in WEIGHTS_DIR.rglob(x)]
|
||||
for file in ["bus.jpg", "yolo11n.onnx", "yolo11n.torchscript"] + models:
|
||||
for file in ["decelera_portrait_min.mov", "bus.jpg", "yolo11n.onnx", "yolo11n.torchscript"] + models:
|
||||
Path(file).unlink(missing_ok=True)
|
||||
|
||||
# Remove directories
|
||||
models = [path for x in ["*.mlpackage", "*_openvino_model"] for path in WEIGHTS_DIR.rglob(x)]
|
||||
for directory in [TMP.parents[1] / ".pytest_cache", TMP] + models:
|
||||
for directory in [WEIGHTS_DIR / "path with spaces", TMP.parents[1] / ".pytest_cache", TMP] + models:
|
||||
shutil.rmtree(directory, ignore_errors=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue