Skip to content

Commit

Permalink
Resolved Unecessary modification
Browse files Browse the repository at this point in the history
Signed-off-by: Haroon <[email protected]>
  • Loading branch information
sky0walker99 committed Dec 2, 2024
1 parent edf2b51 commit c4a11d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/anomalib/deploy/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ class CompressionType(str, Enum):
INT8 = "int8"
INT8_PTQ = "int8_ptq"
INT8_ACQ = "int8_acq"
POT = "pot"
NNCF = "nncf"


class InferenceModel(nn.Module):
Expand Down
6 changes: 0 additions & 6 deletions src/anomalib/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,6 @@ def export(
Raises:
ValueError: If Dataset, Datamodule, and transform are not provided.
ValueError: If an unsupported compression type is specified for non-OpenVINO export types.
TypeError: If path to the transform file is not a string or Path.
CLI Usage:
Expand Down Expand Up @@ -976,11 +975,6 @@ def export(
else:
logging.error(f"Export type {export_type} is not supported yet.")

if compression_type and export_type != ExportType.OPENVINO:
msg = f"Compression type {compression_type} is only applicable for OpenVIVO Export Type."
logging.error(f"Compression type {compression_type} is only applicable for OpenVIVO Export Type.")
raise ValueError(msg)

if exported_model_path:
logging.info(f"Exported model to {exported_model_path}")
return exported_model_path
Expand Down

0 comments on commit c4a11d5

Please sign in to comment.