Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Feb 27, 2024
1 parent 797b748 commit 9eb0d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zoobot/pytorch/training/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ def __init__(
else:
self.encoder_dim = define_model.get_encoder_dim(self.encoder)
self.n_blocks = n_blocks
logging.info('Blocks to finetune: {}'.format(n_layers))

# for backwards compat.
if n_layers:
logging.warning('FinetuneableZoobot(n_layers) is now renamed to n_blocks, please update to pass n_blocks instead! For now, setting n_blocks=n_layers')
self.n_blocks = n_layers
logging.info('Layers to finetune: {}'.format(n_layers))
logging.info('Layers to finetune: {}'.format(n_layers))

self.learning_rate = learning_rate
self.lr_decay = lr_decay
Expand Down

0 comments on commit 9eb0d89

Please sign in to comment.