When trainning a model, I got OSError: [Errno 12] Cannot allocate memory
I googled, found the way to set swap file for Nano, but could not find the way to set swap file for NX.
Do you have any suggestions?
I am training Resnet18.
Here are file counts I used:
The total file size is 7.42 GB
I removed some images, and it works now.
On a computer/server, when I get out of memery error, I set the batch size smaller to fix the issue.
But on jetson NX, decrease batch size do not work… I change it from 32 to 16, but still I got the error.
Should I change it to 8 or 1?
Later, I need to add more images.