Skip to content

Commit

Permalink
One last place where checkpoint_num_classes should be present (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodAxe authored Oct 18, 2023
1 parent 096cb0e commit 68a96bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/super_gradients/training/sg_trainer/sg_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def train_from_config(cls, cfg: Union[DictConfig, dict]) -> Tuple[nn.Module, Tup
pretrained_weights=cfg.checkpoint_params.pretrained_weights,
checkpoint_path=cfg.checkpoint_params.checkpoint_path,
load_backbone=cfg.checkpoint_params.load_backbone,
checkpoint_num_classes=get_param(cfg.checkpoint_params, "checkpoint_num_classes"),
)

# INSTANTIATE DATA LOADERS
Expand Down

0 comments on commit 68a96bb

Please sign in to comment.