Skip to content

Commit

Permalink
Update src/anomalib/models/image/vlm_ad/lightning_model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Samet Akcay <[email protected]>
  • Loading branch information
ashwinvaidya17 and samet-akcay authored Oct 15, 2024
1 parent b7c4bf6 commit 8a8bfbf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/anomalib/models/image/vlm_ad/lightning_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ def configure_transforms(image_size: tuple[int, int] | None = None) -> None:
def _export_not_supported_message() -> None:
logging.warning("Exporting the model is not supported for VLM-AD model. Skipping...")

def to_torch( # type: ignore[override]
self,
*_,
**__,
) -> None:
def to_torch(self, *_, **__) -> None: # type: ignore[override]
"""Skip export to torch."""
return self._export_not_supported_message()

Expand Down

0 comments on commit 8a8bfbf

Please sign in to comment.