I am trying to adapt scikit-learn face recognition based on a script script for use on my own image dataset (note that this script works fine on my Python 3, sklearn 0.17).
The next call to fetch_lfw_people() is something that probably needs to be modified, and I tried my best to let the script skip this, instead to my own image folders.
I would like the script - instead of extracting data from the downloaded folders - to get images from my own dataset located in '/User/pepe/images/' .
# Download the data, if not already on disk and load it as numpy arrays lfw_people = fetch_lfw_people(min_faces_per_person=70, resize=0.4)
Do you have any suggestions to fix this?
As you can see from the GitHub code, the central part is not actually fetch_lfw_people() itself, but an lfw.py file that has additional features.
source share