Closed rbvh closed 8 months ago
I came across the same issue and came up with a workaround by adding a line of code args.step = "something"
. Check out the logic in this file
Whilst such a workaround can make the code run successfully, I'm not sure if the results are correct in the sense of pre-trained feature extraction. Hope the authors can comment and advise on this issue.
Hi rbvh and hellowangqian,
I'm sorry for not replying sooner; I've been quite busy recently.
I have addressed this problem by adding a line of code here.
Now, when you set args.step
to pretrain
, the code should run smoothly.
Example:
data = pd.read_csv('./data/bbbp.csv')
emb, smiles = get_embs(args, data.smiles.tolist())
Thank you, very much appreciated!
Hello,
I'm trying to figure out how to get embeddings from the pretrained model to determine molecule similarity. I found that there is a
get_embs
inmake_predictions.py
, but I can't get it to work. I wrote something like this:This leads to
I can add
strict=False
to theload_state_dict
call inget_embs
, but this leads toWhat should I do to get this to work?
Thanks