Open arpsyapathy opened 5 years ago
That means you ran out of memory. Maybe that particular image was really large in resolution?
I had the same problem, and my images are 3120x4208. Is this that big? How much memory does it need?
yep, i tried to run dlib with cnn detection and 1k dimension size with 16gb ram on linux vps > the same. macbook with 16gb - ok. something wrong with memory allocation during upscaling. i guess workaround is to resize the input image before detection
It is not happening because of photo resolution. Because I was getting error at 17/218 then I deleted 2 pictures at 17& 18 position but now I getting error at 15/216 . If someone got the solution please help.
Resize your input images prior to passing them through the network. Your input images are too large and your GPU is running out of memory.
Thank You So much After resizing the images it did work.
Thank You So much After resizing the images it did work.
Can you share the code @rotyweb
I have the same issue on virtuabox machine. When changing detection-method to hog instead of cnn it works
This could be because PyImageSearch dataset images are of different size. I resized the image 400x300 before calling face_recognition.face_locations and "bad alloc" error disappeared. However dlib does not use CUDA despite compling, seems it is a known issue in dlib
First of all, resize your image then send it to the model or network.
Hello! I use script encode_faces.py from https://www.pyimagesearch.com/2018/06/18/face-recognition-with-opencv-python-and-deep-learning/ for encoding my dataset in pickle. But I get error "MemoryError: std::bad_alloc" when [INFO] processing image 12/69.
Help please. Thank you advance