Add OBB benchmarks to CI (#7777)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
1152a06cbc
commit
3c1170769a
5 changed files with 12 additions and 5 deletions
|
|
@ -83,8 +83,12 @@ def benchmark(
|
|||
for i, (name, format, suffix, cpu, gpu) in export_formats().iterrows(): # index, (name, format, suffix, CPU, GPU)
|
||||
emoji, filename = "❌", None # export defaults
|
||||
try:
|
||||
assert i != 9 or LINUX, "Edge TPU export only supported on Linux"
|
||||
if i in {5, 10}: # CoreML and TF.js
|
||||
# Checks
|
||||
if i == 9:
|
||||
assert LINUX, "Edge TPU export only supported on Linux"
|
||||
elif i == 7:
|
||||
assert model.task != "obb", "TensorFlow GraphDef not supported for OBB task"
|
||||
elif i in {5, 10}: # CoreML and TF.js
|
||||
assert MACOS or LINUX, "export only supported on macOS and Linux"
|
||||
if "cpu" in device.type:
|
||||
assert cpu, "inference not supported on CPU"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue