-
Notifications
You must be signed in to change notification settings - Fork 214
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
Gpu memory usage keep increasing #10
Comments
Maybe try a smaller batch size. How much memory does your gpu have? |
@da03 I used 32 for the batch size. The memory space is 12200MB. |
Are you using the raw images? That could be too large, we are cropping the images such that only the equations are kept (script |
@da03 Actually we already cropped the images by ourselves, so we did not use the preprocess_images.py. |
Hmm did you subsample the images to make the size X0.5 smaller? We keep the original size because this math dataset contains fractions, integrals and matrices, which has varying heights, while the attention ocr project mainly works on a single word, which has approximately the same height. |
When I trained the model on my own dataset with 300,000 images, the gpu memory usage kept increasing until it is used up which killed the training process.
I am new to torch. Need your help to figure out this problem @da03
The text was updated successfully, but these errors were encountered: