hamzagamouh / protein_embeddings

2 stars 1 forks source link

mistake on line 75 #2

Open ProkopDivin opened 1 year ago

ProkopDivin commented 1 year ago

there is a mistake on line 75 am running python script in interactive mode and this hapened

divinpr@volta05:/$ python compute_protein_embeddings.py --emb_name bert --input_
Import embedder...
Some weights of the model checkpoint at /home/divinpr/.cache/bio_embeddings/protrm.dense.bias', 'cls.seq_relationship.bias', 'cls.predictions.transform.dense.weorm.weight', 'cls.predictions.transform.LayerNorm.bias']
- This IS expected if you are initializing BertModel from the checkpoint of a moeTraining model).
- This IS NOT expected if you are initializing BertModel from the checkpoint of cation model).
Traceback (most recent call last):
  File "compute_protein_embeddings.py", line 75, in <module>
    if not os.isfile(input_dataset):
AttributeError: module 'os' has no attribute 'isfile'

there should be os.path.isfile(input_dataset) insted of os.isfile(input_dataset)

hamzagamouh commented 1 year ago

@ProkopDivin That’s right. I will correct it. Thank you for mentioning that