Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training time and GPU usage #2

Open
icrto opened this issue Apr 6, 2021 · 3 comments
Open

Training time and GPU usage #2

icrto opened this issue Apr 6, 2021 · 3 comments

Comments

@icrto
Copy link

icrto commented Apr 6, 2021

Hi,
First of all, thank you for making this code available!
I also have access to the MIMIC-CXR database and was wondering if you experienced problems during training concerning GPU usage.
I am training on an RTX 2080Ti and tqdm shows an average of 1.3 it/sec, predicting it will take approximately 4 hours to complete one epoch...which is completely unfeasible. I noticed the GPU usage is very low (~20%) and it is idle (0% usage) for long periods of time. Even if I increase the batch size the behaviour is the same.
Have you also experienced this? If so, any ideas on how to improve the training speed?

Thanks in advance!

@edreisMD
Copy link
Owner

edreisMD commented Apr 6, 2021

Hi, in my experience lots of time is spent loading the image from the HD and preprocessing it on the CPU, so I use an SSD which speeds up the images loading time in each batch, making the GPU usage more efficient. I don't know if there are other techniques to improve training speed. If anyone knows, please let me know, so I'll also benefit!

@icrto
Copy link
Author

icrto commented Apr 7, 2021

Thank you so much for your insight! Unfortunately, I don't have enough space on my SSD for the whole dataset...I guess I will try to at least resize the images offline and see if it helps.

@zoule41
Copy link

zoule41 commented Aug 16, 2023

Hello, I encountered a problem while executing the code of the warehouse author. I would like to ask you: What is the data structure of "csv_file" in the config file? I'm not sure how to set up this file. Thank you~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants