I am yolov4 on raspberry piThis repositoryI'm thinking of detecting an object using (referred to).
However, when I start object detection, I get an error saying that there is not enough memory in just 10 seconds.
The error content is:

RuntimeError: [enforce fail at CPUAllocator.cpp: 64]. DefaultCPUAllocator: can't allocate memory: you tried to allocate 2957312 bytes. Error code 12 (Cannot allocate memory)

I interpreted this error as "I tried to use 2957312 bytes of memory, but it wasn't enough."
However, when I typed the free command while processing the object detection, I found that 4.7GB was still free.
Then you can use enough memory, right?
I'm still wondering why the error occurs.