File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 44
55from __future__ import annotations
66
7- import logging as log
87from typing import TYPE_CHECKING , Any , TypeAlias
98
109import torch
@@ -285,12 +284,6 @@ def export(
285284 Returns:
286285 Path: path to the exported model.
287286 """
288- if export_format == OTXExportFormatType .OPENVINO :
289- if to_exportable_code :
290- msg = "Exportable code option is not supported yet for anomaly tasks and will be ignored."
291- log .warning (msg )
292- to_exportable_code = False
293-
294287 return self ._exporter .export (
295288 model = self .model ,
296289 output_dir = output_dir ,
Original file line number Diff line number Diff line change @@ -158,15 +158,8 @@ def test_otx_e2e(
158158 ExportCase2Test ("ONNX" , False , "exported_model_decoder.onnx" ),
159159 ExportCase2Test ("OPENVINO" , False , "exported_model_decoder.xml" ),
160160 ] # TODO (sungchul): EXPORTABLE_CODE will be supported
161- elif "anomaly" in task :
162- fxt_export_list = [
163- ExportCase2Test ("ONNX" , False , "exported_model.onnx" ),
164- ExportCase2Test ("OPENVINO" , False , "exported_model.xml" ),
165- ] # anomaly doesn't support exportable code
166161
167162 overrides = fxt_cli_override_command_per_task [task ]
168- if "anomaly" in task :
169- overrides = {} # Overrides are not needed in export
170163
171164 tmp_path_test = tmp_path / f"otx_test_{ model_name } "
172165 for export_case in fxt_export_list :
You can’t perform that action at this time.
0 commit comments