Generate a heatmap for the birthplaces of people in the Labeled Faces in the Wild dataset. Using WikiData.
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 1ed2ed16c6 Heatmap of Labeled Faces in the Wild 5 months ago
js Heatmap of Labeled Faces in the Wild 5 months ago
.gitignore Heatmap of Labeled Faces in the Wild 5 months ago
README.md Heatmap of Labeled Faces in the Wild 5 months ago
accesstoken.example.js Heatmap of Labeled Faces in the Wild 5 months ago
lfw_cities.py Heatmap of Labeled Faces in the Wild 5 months ago
lfw_map.html Heatmap of Labeled Faces in the Wild 5 months ago
lfw_map.php Heatmap of Labeled Faces in the Wild 5 months ago
requirements.txt Heatmap of Labeled Faces in the Wild 5 months ago

README.md

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.

Install

virtualenv --system-site-packages -p  python3 venv
source venv/bin/activate
pip install -r requirements.txt

Then fetch the names from lfw:

wget http://vis-www.cs.umass.edu/lfw/lfw-names.txt

And create/fill the database:

python lfw_cities.py --csv lfw-names.txt --db lfw-names.db