Hello everyone, I hope someone can help me with this issue.
I'm currently working with a Raspberry Pi 4 Model B and I want to use DeepFace for a project I have in mind.
I was running a script calling the DeepFace.stream() function, but as the library was loading the Age models, the program is killed. As I was trying to do some manual debug with a few print lines in /deepface/extendedmodels/Age.py , I noticed that it crashes after age_model.load_weights(home+'/.deepface/weights/age_model_weights.h5') is being called at line 51 of the aforementioned file. I notice a spike of CPU usage to 99% before the program is killed. I suppose it's a problem due to the dimensions of the models. I also notice that the model weights for facial expression analysis is loaded without any error (I suppose it loads because it's the lighter of the files, and I therefore suppose that Gender model too kills the execution).
Following, some additional info. Hope you can help me with this problem, thank you for your time reading about my ordeal and for any support.
PM
Current Python version:Python 3.7.3
Some info from neofetch:
OS: Raspbian GNU/Linux 10 (buster) armv7l
Host: Raspberry Pi 4 Model B Rev 1.5
Kernel: 5.10.103-v7l+
CPU: BCM2711 (4) @ 1.500GHz
Memory: 578MiB / 1820MiB
Hello everyone, I hope someone can help me with this issue. I'm currently working with a Raspberry Pi 4 Model B and I want to use DeepFace for a project I have in mind. I was running a script calling the DeepFace.stream() function, but as the library was loading the Age models, the program is killed. As I was trying to do some manual debug with a few print lines in /deepface/extendedmodels/Age.py , I noticed that it crashes after age_model.load_weights(home+'/.deepface/weights/age_model_weights.h5') is being called at line 51 of the aforementioned file. I notice a spike of CPU usage to 99% before the program is killed. I suppose it's a problem due to the dimensions of the models. I also notice that the model weights for facial expression analysis is loaded without any error (I suppose it loads because it's the lighter of the files, and I therefore suppose that Gender model too kills the execution). Following, some additional info. Hope you can help me with this problem, thank you for your time reading about my ordeal and for any support. PM
Current Python version:Python 3.7.3
Some info from neofetch:
Output of "pip3 freeze":
The script I'm currently trying to run (I know it's a single line, but just to be sure I'm doing anything correctly):
The terminal output as I try to run my code: