-
Notifications
You must be signed in to change notification settings - Fork 23
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 on a single GPU #5
Comments
Can you try this alternative codebase: This uses less memory and has better inference speed. |
@yaohungt Thank you so much. I have reduced the batch size and now it is training. |
Hello, |
Hi, can you be more specific? If your input has a larger size, then you may need a larger network to fit the training. |
Yes of course, i was attempting to input .mat files of 84 x 84 with only 1 channel. Trying to work my way through some errors i decided to alter the dimensions of my input image to 32 x 32 to match the CIFAR10 data used in this example, i feel this should fix the memory problems. However, i now have an error to do with batch size matching. ValueError: Expected input batch_size (128) to match target batch_size (5). I believe this is because i am inputting 32 x 32 with no padding. Apologies for taking up your time, i am fairly new to pytorch! Thanks alot for the swift reply! 😃 |
I haven't seen your code, but my guess is because of your input size: 84x84x1. While CIFAR10 has 32x32x3. You can modify the config file in ./configs so that the code can work on your dataset. |
I have altered the backbone code to accept one channel.
I think my problem will be to do with the way im loading data? ValueError: Expected input batch_size (128) to match target batch_size (5). Thanks again for your time |
I'm not sure. I think you can print 1) the shape of the default CIFAR10 data; and 2) the shape of your own data. They shall look alike. |
Yeah it's been quite mind boggling so far, i'll keep working! Thank you for all your good work! |
Hi,
I would like to know is this network can be trained on a single gpu. Because when I am training it gives me Cuda out of memory error. Please help me in this regard.
The text was updated successfully, but these errors were encountered: