Skip to content

Commit b94c6c5

Browse files
committed
Resolved Unecessary modification
1 parent ae18eb7 commit b94c6c5

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/anomalib/deploy/export.py

-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ class CompressionType(str, Enum):
5858
INT8 = "int8"
5959
INT8_PTQ = "int8_ptq"
6060
INT8_ACQ = "int8_acq"
61-
POT = "pot"
62-
NNCF = "nncf"
6361

6462

6563
class InferenceModel(nn.Module):

src/anomalib/engine/engine.py

-6
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,6 @@ def export(
915915
916916
Raises:
917917
ValueError: If Dataset, Datamodule, and transform are not provided.
918-
ValueError: If an unsupported compression type is specified for non-OpenVINO export types.
919918
TypeError: If path to the transform file is not a string or Path.
920919
921920
CLI Usage:
@@ -976,11 +975,6 @@ def export(
976975
else:
977976
logging.error(f"Export type {export_type} is not supported yet.")
978977

979-
if compression_type and export_type != ExportType.OPENVINO:
980-
msg = f"Compression type {compression_type} is only applicable for OpenVIVO Export Type."
981-
logging.error(f"Compression type {compression_type} is only applicable for OpenVIVO Export Type.")
982-
raise ValueError(msg)
983-
984978
if exported_model_path:
985979
logging.info(f"Exported model to {exported_model_path}")
986980
return exported_model_path

0 commit comments

Comments
 (0)