Skip to content

Commit ea032f1

Browse files
Merge pull request #1790 from roboflow/fix/yolo-nas-in-trt
Get rid of verification of named outputs in case of YOLO-NAS TRT models - as the artefacts are clearly inconsistent
2 parents 59a5bdf + 3c66021 commit ea032f1

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

inference_experimental/inference_exp/models/yolonas/yolonas_object_detection_trt.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,11 @@ def from_pretrained(
126126
message=f"Implementation assume 2 model outputs, found: {len(outputs)}.",
127127
help_url="https://todo",
128128
)
129-
if "output0" not in outputs or "output1" not in outputs:
130-
raise CorruptedModelPackageError(
131-
message=f"Expected model outputs to be named `output0` and `output1`, but found: {outputs}.",
132-
help_url="https://todo",
133-
)
129+
# git rid of outputs order and names verification, as YOLO-NAS clearly produces different outputs
134130
return cls(
135131
engine=engine,
136132
input_name=inputs[0],
137-
output_names=["output0", "output1"],
133+
output_names=outputs,
138134
class_names=class_names,
139135
inference_config=inference_config,
140136
trt_config=trt_config,

inference_experimental/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "inference-exp"
3-
version = "0.17.0rc2"
3+
version = "0.17.0"
44
description = "Experimental vresion of inference package which is supposed to evolve into inference 1.0"
55
readme = "README.md"
66
requires-python = ">=3.9,<3.13"

inference_experimental/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)