Skip to content

Commit

Permalink
feature: 'FINETUNE_STRICT_LOAD' in config (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnstark authored Sep 7, 2022
1 parent 2bc5c7c commit ab481e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easytorch/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def init_training(self, cfg: Dict):

# fine tune
if hasattr(cfg['TRAIN'], 'FINETUNE_FROM'):
self.load_model(cfg['TRAIN']['FINETUNE_FROM'])
self.load_model(cfg['TRAIN']['FINETUNE_FROM'], cfg['TRAIN'].get('FINETUNE_STRICT_LOAD', True))
self.logger.info('Start fine tuning')

# resume
Expand Down

0 comments on commit ab481e4

Please sign in to comment.