Skip to content

Commit

Permalink
remove a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Mar 5, 2024
1 parent c14637e commit 477c075
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zoobot/pytorch/training/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def __init__(
self.encoder = encoder

# TODO read as encoder property
if isinstance(self.encoder, CustomMAEEncoder):
self.encoder_dim = 256 # vit hidden dim, assuming average pool over seq dim
# self.encoder_dim = 9216
else:
self.encoder_dim = define_model.get_encoder_dim(self.encoder)
# if isinstance(self.encoder, CustomMAEEncoder):
# self.encoder_dim = 256 # vit hidden dim, assuming average pool over seq dim
# # self.encoder_dim = 9216
# else:
self.encoder_dim = define_model.get_encoder_dim(self.encoder)

# for backwards compat.
if n_layers:
Expand Down

0 comments on commit 477c075

Please sign in to comment.