Fix cmake requirements for ARM64 (#8589)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/8577/head^2
Lakshantha Dissanayake 9 months ago committed by GitHub
parent a3fdcd0a35
commit 2100d28638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      ultralytics/engine/exporter.py

@ -344,8 +344,8 @@ class Exporter:
requirements = ["onnx>=1.12.0"]
if self.args.simplify:
requirements += ["onnxsim>=0.4.33", "onnxruntime-gpu" if torch.cuda.is_available() else "onnxruntime"]
if ARM64:
check_requirements("cmake") # 'cmake' is needed to build onnxsim on aarch64
if ARM64:
check_requirements("cmake") # 'cmake' is needed to build onnxsim on aarch64
check_requirements(requirements)
import onnx # noqa

Loading…
Cancel
Save