You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ruben van de Ven
||2 years ago|
|js||2 years ago|
|.gitignore||2 years ago|
|README.md||2 years ago|
|accesstoken.example.js||2 years ago|
|lfw_cities.py||2 years ago|
|lfw_map.html||2 years ago|
|lfw_map.php||2 years ago|
|requirements.txt||2 years ago|
This set of scripts generates a map with the birth places of people in the Labeled Faces in the Wild dataset using information available at WikiData.
It searches WikiData for the names in LFW, gets their birth place if available, and again uses WikiData to find the coordinates of these cities. Obviously, this further skews the bias of the LFW dataset with the selective information that is available through WikiData.
In total there are 3136 for which a city with coordinates is found on WikiData, and a 2587 people for which this is not the case.
virtualenv --system-site-packages -p python3 venv source venv/bin/activate pip install -r requirements.txt
Then fetch the names from lfw:
And create/fill the database:
python lfw_cities.py --csv lfw-names.txt --db lfw-names.db