mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
Fix cmake requirements for ARM64 (#8589)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
a3fdcd0a35
commit
2100d28638
@ -344,8 +344,8 @@ class Exporter:
|
|||||||
requirements = ["onnx>=1.12.0"]
|
requirements = ["onnx>=1.12.0"]
|
||||||
if self.args.simplify:
|
if self.args.simplify:
|
||||||
requirements += ["onnxsim>=0.4.33", "onnxruntime-gpu" if torch.cuda.is_available() else "onnxruntime"]
|
requirements += ["onnxsim>=0.4.33", "onnxruntime-gpu" if torch.cuda.is_available() else "onnxruntime"]
|
||||||
if ARM64:
|
if ARM64:
|
||||||
check_requirements("cmake") # 'cmake' is needed to build onnxsim on aarch64
|
check_requirements("cmake") # 'cmake' is needed to build onnxsim on aarch64
|
||||||
check_requirements(requirements)
|
check_requirements(requirements)
|
||||||
import onnx # noqa
|
import onnx # noqa
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user