kaurm43 commited on
Commit
f6e426f
·
verified ·
1 Parent(s): 80cde2c

Update Downstream Tasks/Property_Prediction.py

Browse files
Downstream Tasks/Property_Prediction.py CHANGED
@@ -535,7 +535,7 @@ class MultimodalContrastiveModel(nn.Module):
535
  device: str = DEVICE
536
  ) -> np.ndarray:
537
  """
538
- Convenience: PSMILES-only embeddings (used for fast bulk encoding tasks).
539
  """
540
  self.eval()
541
  if self.psm_tok is None or self.psmiles is None or self.proj_psmiles is None:
@@ -1260,7 +1260,7 @@ def load_pretrained_multimodal(pretrained_path: str) -> MultimodalContrastiveMod
1260
  except Exception as e:
1261
  print(f"[LOAD][WARN] Could not load PSMILES encoder from dir: {e}")
1262
 
1263
- # Fallback: initialize with vocab fallback (still functional, but not your finetuned weights)
1264
  if psmiles_encoder is None:
1265
  try:
1266
  psmiles_encoder = PSMILESDebertaEncoder(
 
535
  device: str = DEVICE
536
  ) -> np.ndarray:
537
  """
538
+ PSMILES embeddings
539
  """
540
  self.eval()
541
  if self.psm_tok is None or self.psmiles is None or self.proj_psmiles is None:
 
1260
  except Exception as e:
1261
  print(f"[LOAD][WARN] Could not load PSMILES encoder from dir: {e}")
1262
 
1263
+ # Fallback: initialize with vocab fallback
1264
  if psmiles_encoder is None:
1265
  try:
1266
  psmiles_encoder = PSMILESDebertaEncoder(