compomics / DeepLC

DeepLC: Retention time prediction for (modified) peptides using Deep Learning.
https://iomics.ugent.be/deeplc
Apache License 2.0
52 stars 18 forks source link

batch_num is not used anymore in the resent versions #58

Closed markmipt closed 1 year ago

markmipt commented 1 year ago

Hi again,

I've noticed that latest versions of DeepLC (2+) does not use argument batch_num anymore (Or did I read the code wrong?). That leads to GPU memory errors when DeepLC is used to predict RTs for few millions of peptides on the weak GPU.

I compare everything to version 1.1.2, which is the most stable and effective for me right now. And works fine for the same set of peptides on the same hardware.

Regards, Mark

RobbinBouwmeester commented 1 year ago

Hi Mark,

I will have a look! And yes, it is also our experience the 2+ version can sometimes still be problematic. Still ironing out some of the issues...

Kind regards,

Robbin

RobbinBouwmeester commented 1 year ago

You should be able to use batches again, (>= v2.2.7, aece880). Also maybe have a look at batch_num_tf when you initialize DeepLC, that determines the internal batch size of tensorflow. Batch_num parameter has (again) the same behavior as before.

markmipt commented 1 year ago

Hi Robbin,

Thanks for the commit. However, it was not enough to fix memory errors. But I've finally found the problem and made an extra patch, see pull request for details.

Regards, Mark