class_docstr: Callback to compresses a trained model.
  
  Model is first exported to ``.onnx`` format, and then converted to OpenVINO IR.
  
  Args:
      input_size (tuple[int, int]): Tuple of image height, width
      dirpath (str): Path for model output
      filename (str): Name of output model
code: def __init__(
      self,
      input_size: tuple[int, int],
      dirpath: str,
      filename: str,
      export_mode: ExportMode,
  ) -> None:
      self.input_size = input_size
      self.dirpath = dirpath
      self.filename = filename
      self.export_mode = export_mode
  
file_path: anomalib/src/anomalib/utils/callbacks/export.py
imports: from __future__ import annotations
  import logging
  from pathlib import Path
  import pytorch_lightning
  from pytorch_lightning import Callback
  from anomalib.deploy import ExportMode, export
  from anomalib.models.components import AnomalyModule
label_desc: Use image node_id 1 to create a new ExportCallback object from inherited base classes: Callback with example: obj = ExportCallback(input_size, dirpath, filename, export_mode)