Skip to content

Commit 74b82df

Browse files
Update src/anomalib/models/image/anomaly_dino/torch_model.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: Rajesh Gangireddy <[email protected]>
1 parent 495416c commit 74b82df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anomalib/models/image/anomaly_dino/torch_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(
7676

7777
# Load DINOv2 backbone
7878
if not encoder_name.startswith("dinov2"):
79-
err_str = f"Encoder must be dinov2, got {encoder_name}"
79+
err_str = f"Encoder name must start with 'dinov2', got '{encoder_name}'"
8080
raise ValueError(err_str)
8181
self.feature_encoder = DinoV2Loader.from_name(self.encoder_name)
8282
self.feature_encoder.eval()

0 commit comments

Comments
 (0)