Enable MNN on RPi and Jetson (#17583)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
2ccec61b58
commit
cb476d2999
2 changed files with 0 additions and 5 deletions
|
|
@ -79,7 +79,6 @@ from ultralytics.utils import (
|
||||||
ARM64,
|
ARM64,
|
||||||
DEFAULT_CFG,
|
DEFAULT_CFG,
|
||||||
IS_JETSON,
|
IS_JETSON,
|
||||||
IS_RASPBERRYPI,
|
|
||||||
LINUX,
|
LINUX,
|
||||||
LOGGER,
|
LOGGER,
|
||||||
MACOS,
|
MACOS,
|
||||||
|
|
@ -265,8 +264,6 @@ class Exporter:
|
||||||
"WARNING ⚠️ INT8 export requires a missing 'data' arg for calibration. "
|
"WARNING ⚠️ INT8 export requires a missing 'data' arg for calibration. "
|
||||||
f"Using default 'data={self.args.data}'."
|
f"Using default 'data={self.args.data}'."
|
||||||
)
|
)
|
||||||
if mnn and (IS_RASPBERRYPI or IS_JETSON):
|
|
||||||
raise SystemError("MNN export not supported on Raspberry Pi and NVIDIA Jetson")
|
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
im = torch.zeros(self.args.batch, 3, *self.imgsz).to(self.device)
|
im = torch.zeros(self.args.batch, 3, *self.imgsz).to(self.device)
|
||||||
|
|
|
||||||
|
|
@ -114,8 +114,6 @@ def benchmark(
|
||||||
assert LINUX or MACOS, "Windows Paddle exports not supported yet"
|
assert LINUX or MACOS, "Windows Paddle exports not supported yet"
|
||||||
if i == 12: # MNN
|
if i == 12: # MNN
|
||||||
assert not isinstance(model, YOLOWorld), "YOLOWorldv2 MNN exports not supported yet"
|
assert not isinstance(model, YOLOWorld), "YOLOWorldv2 MNN exports not supported yet"
|
||||||
assert not IS_RASPBERRYPI, "MNN export not supported on Raspberry Pi"
|
|
||||||
assert not IS_JETSON, "MNN export not supported on NVIDIA Jetson"
|
|
||||||
if i == 13: # NCNN
|
if i == 13: # NCNN
|
||||||
assert not isinstance(model, YOLOWorld), "YOLOWorldv2 NCNN exports not supported yet"
|
assert not isinstance(model, YOLOWorld), "YOLOWorldv2 NCNN exports not supported yet"
|
||||||
if i == 14: # IMX
|
if i == 14: # IMX
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue