Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 3c042f3

Browse files
authored
[image classification] bug fix - use full zoo stub prefix to determine zoo checkpoint (#1036)
prior to this fix, IC trainer would recognize any checkpoint starting with "zoo" as a stub, this causes issues if a local path starts with zoo. this PR fixes the issue by matching to the full zoo prefix "zoo:"
1 parent 3ccb428 commit 3c042f3

File tree

1 file changed

+1
-1
lines changed
  • src/sparseml/pytorch/image_classification/utils

1 file changed

+1
-1
lines changed

src/sparseml/pytorch/image_classification/utils/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def _run_train_epoch(
332332
)
333333

334334
def _setup_checkpoint_manager(self):
335-
if self.checkpoint_path and self.checkpoint_path.startswith("zoo"):
335+
if self.checkpoint_path and self.checkpoint_path.startswith("zoo:"):
336336
zoo_model = Model(self.checkpoint_path)
337337
self.checkpoint_path = download_framework_model_by_recipe_type(zoo_model)
338338

0 commit comments

Comments
 (0)