Skip to content

Commit

Permalink
maxvit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Feb 6, 2024
1 parent adcce7d commit 3095b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zoobot/pytorch/training/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def configure_optimizers(self):
self.encoder.layer4
]
elif isinstance(self.encoder, timm.models.MaxxVit):
blocks_to_tune = self.encoder.stem + [stage for stage in self.encoder.stages]
blocks_to_tune = [self.encoder.stem] + [stage for stage in self.encoder.stages]
else:
raise ValueError(f'Encoder architecture not automatically recognised: {type(self.encoder)}')

Expand Down

0 comments on commit 3095b5a

Please sign in to comment.