Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix e2e code error #3871

Merged
merged 4 commits into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions tests/e2e/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,16 @@ def test_otx_e2e_cli(
assert (latest_dir / "csv").exists()

# 3) otx export
fxt_export_list = []
if task in ("visual_prompting", "zero_shot_visual_prompting"):
fxt_export_list.append(ExportCase2Test("ONNX", False, "exported_model_decoder.onnx"))
fxt_export_list.append(ExportCase2Test("OPENVINO", False, "exported_model_decoder.xml"))
elif "anomaly" in task or "keypoint_detection" in task:
fxt_export_list.append(ExportCase2Test("ONNX", False, "exported_model.onnx"))
fxt_export_list.append(ExportCase2Test("OPENVINO", False, "exported_model.xml"))
if task in (OTXTaskType.VISUAL_PROMPTING, OTXTaskType.ZERO_SHOT_VISUAL_PROMPTING):
fxt_export_list = [
ExportCase2Test("ONNX", False, "exported_model_decoder.onnx"),
ExportCase2Test("OPENVINO", False, "exported_model_decoder.xml"),
]
elif "ANOMALY" in task or OTXTaskType.KEYPOINT_DETECTION in task:
fxt_export_list = [
ExportCase2Test("ONNX", False, "exported_model.onnx"),
ExportCase2Test("OPENVINO", False, "exported_model.xml"),
]

overrides = fxt_cli_override_command_per_task[task]
if "anomaly" in task:
Expand Down Expand Up @@ -182,7 +185,7 @@ def test_otx_e2e_cli(
msg = "There is no OV IR."
raise RuntimeError(msg)
exported_model_path = str(ov_files[0])
if task in ("visual_prompting", "zero_shot_visual_prompting"):
if task in (OTXTaskType.VISUAL_PROMPTING, OTXTaskType.ZERO_SHOT_VISUAL_PROMPTING):
recipe = str(Path(recipe).parents[0] / "openvino_model.yaml")

overrides = fxt_cli_override_command_per_task[task]
Expand Down
Loading