Skip to content

Commit

Permalink
MolBind: fix hardcoded SmilesEncoder for central modality
Browse files Browse the repository at this point in the history
  • Loading branch information
codingS3b committed Apr 11, 2024
1 parent 25b3bf5 commit c7a4ff7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/molbind/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def __init__(self, cfg):
self.central_modality = central_modality

# Instantiate all encoders and projection heads
self.dict_encoders = {central_modality: SmilesEncoder(**cfg.model.encoders[central_modality])}
self.dict_encoders = {
central_modality: AVAILABLE_ENCODERS[central_modality](
**cfg.model.encoders[central_modality])
}
self.dict_projection_heads = {
central_modality: ProjectionHead(**cfg.model.projection_heads[central_modality])
}
Expand Down

0 comments on commit c7a4ff7

Please sign in to comment.