OSError: [Errno 12] Cannot allocate memory Error in the jetson nano

Hello to everyone. I’m having a problem. I’m trying to train jetson nano with the yolov5 model…I changed the pytorch version.I installed all the requirements for yolov5 jetson nano system. Now I am getting another error. New memory related bug.(OSError: [Errno 12] Cannot allocate memory
I researched. I created a swapfile and allocated additional memory. But the error persists. I went according to this source:


Since Jetson is designed for inference, it’s not recommended to run a training task.

Please note that swap memory is not a GPU-accessible memory.
If your training app requires a GPU buffer, the total size won’t increase after adding a swap.

Would you mind monitoring the system memory status with tegrastats first?

$ sudo tegrastats


So I can’t train. While the only plus of colab was the gpu, I was surprised why it wasn’t on a computer with a gpu.it continues like this. When you type the command: ```
sudo tegrastats

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.