Open pykao opened 2 years ago
hi sorry for the late reply. Have you tried model.eval() before feeding the input?
Hi @kexinhuang12345,
I have tried model.eval()
before feeding the input.
https://github.com/pykao/MolTrans/blob/c91a98eced0e18f9b63d439f84355f6225567287/train.py#L54
But it still gives me different logits for the same input.
Could you please help me to solve this problem?
@kexinhuang12345
I think there is a issue on the dropout layer in model.py
even if you enter model.eval()
before the input.
This dropout layer is still enable.
Best, Po-Yu (Ken) Kao
Hi @kexinhuang12345,
Could you find the reason why I get different predictions for the same drug-target pairs?
Hi Kexin,
I tried to write the inference code to predict the binding affinity probability given the drug-target pairs. However, I found that the
model
always gives differentscores
for the same inputsd, p, d_mask, p_mask
.Then, I entered two checkpoints in the
train.py
:https://github.com/pykao/MolTrans/blob/c91a98eced0e18f9b63d439f84355f6225567287/train.py#L58
https://github.com/pykao/MolTrans/blob/c91a98eced0e18f9b63d439f84355f6225567287/train.py#L178
Then, I entered
CUDA_VISIBLE_DEVICES=2,3,5,6 python train.py --task davis
It entered the IPython interface.
Could you tell me why the model give different scores while the input drug-target pairs are the same?
Best regards, Po-Yu Kao