We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e077b1e commit 25fc952Copy full SHA for 25fc952
src/anomalib/models/image/efficient_ad/lightning_model.py
@@ -93,7 +93,7 @@ def prepare_pretrained_model(self) -> None:
93
if not (pretrained_models_dir / "efficientad_pretrained_weights").is_dir():
94
download_and_extract(pretrained_models_dir, WEIGHTS_DOWNLOAD_INFO)
95
teacher_path = (
96
- pretrained_models_dir / "efficientad_pretrained_weights" / f"pretrained_teacher_{self.model_size}.pth"
+ pretrained_models_dir / "efficientad_pretrained_weights" / f"pretrained_teacher_{self.model_size.value}.pth"
97
)
98
logger.info(f"Load pretrained teacher model from {teacher_path}")
99
self.model.teacher.load_state_dict(torch.load(teacher_path, map_location=torch.device(self.device)))
0 commit comments