Clone this repository:
git clone https://github.com/nvanderperren/FAME-tests.git && cd FAME-tests
Install all neceassary python packages. !IMPORTANT! use Python 3.8, some packages don't support Python 3.9.
pip3 install -r requirements.txt
The workflow needs a CSV with colums image path (= absolute path of image) and name (name of person on picture or unknown).
The script preparations_KP.py
creates this CSV for the Kunstenpunt images.
- mount the hard disk
- add portret and production folders in the
production_dirs
andportret_dirs
variables inpreparations_KP.py
- start the script:
python3 preparations_KP.py
The workflow needs a CSV with columns image path (= absolute path of image) and name (name of person on picture or unknown).
You can adjust some parameters in workflow.py
:
- treshold: is now 0.7
- csv_file: is now
data/filenames.csv
, which is created in the first step
Then, start the script:
python3 workflow.py
(dit stuk moet nog beter uitgewerkt worden)
EURECA project is used to validate the results. To set up the labeling tool, some files need to be created. The scripts/prepare_labeling.py
script creates these files.
Start the script with python3 scripts/prepare_labeling.py
.
You'll see that a data/labeling
folder is created in which you can find two CSV files.
You will find:
- a csv with predictions (
predictions.csv
) in thedata/
folder - cropped faces in the
data/faces/
folder - a visualisation of the clusters in the
data/clusters/
folder - a UMAP visualisation (
UMAP_clusters.html
) in thedata/
folder - files needed for the labeling tool in the
data/labeling/
folder:images.csv
: a list with face ID, path of cropped image, predictions and alike faces of each found facemetadata.csv
: additional metadata per face (cropped image)