Skip to content

Instantly share code, notes, and snippets.

@ferrouswheel
Last active December 8, 2015 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferrouswheel/9cef937f5579386f2e3a to your computer and use it in GitHub Desktop.
Save ferrouswheel/9cef937f5579386f2e3a to your computer and use it in GitHub Desktop.
Files related to Joel Pitt's Kiwicon 2015 talk on facial recognition and detection technology

Image Credits

# Graph LFW performance through time
from pandas.io.parsers import read_csv
from pandas import DataFrame
import matplotlib.pyplot as plt
import numpy as np
df = read_csv('lfw_through_time.csv', skipinitialspace=True)
data = df[['year', 'accuracy', 'externaldata', 'commercial']]
have_years = data.dropna(subset=['year'])
no_external_data = have_years.loc[df['commercial'].isnull()].loc[df['externaldata'] == 0]
w_external_data_not_commercial = have_years.loc[df['commercial'].isnull()].loc[df['externaldata'] == 1]
w_external_data_commercial = have_years.loc[df['commercial'] == ' Commercial'].loc[df['externaldata'] == 1]
w_external_data_commercial = have_years.loc[df['commercial'] == 'Commercial ']
def plot_graph(fn, datasets):
plt.figure(figsize=(6.5, 6.5))
plt.style.use('dark_background')
ax = plt.subplot(111)
ax.grid(True)
ax.set_xlim([1990,2016])
ax.set_ylim([0.0,1.0])
ax.set_ylabel('Accuracy')
ax.set_title('LFW performance by publication year')
gridlines = ax.get_xgridlines() + ax.get_ygridlines()
for line in gridlines:
#line.set_color('white')
line.set_linestyle(':')
for data, marker, c in datasets:
ax.scatter(data['year'], data['accuracy'], marker='o', s=100, c=c, edgecolors='face')
plt.savefig(fn, transparent=True)
plot_graph("1.png", [(no_external_data, 'v', 'green')])
plot_graph("2.png", [(no_external_data, 'v', 'green'), (w_external_data_not_commercial, 's', 'blue')])
plot_graph("3.png", [(no_external_data, 'v', 'green'), (w_external_data_not_commercial, 's', 'blue'), (w_external_data_commercial, 'o', 'red')])
date month year reference name accuracy stderr commercial externaldata
October 2009 11 Simile classifiers 0.8472 0.0041 1
October 2009 11 Attribute and Simile classifiers 0.8554 0.0035 1
2010 14 Multiple LE + comp 0.8445 0.0046 1
2011 18 Associate-Predict 0.9057 0.0056 1
2012 23 Tom-vs-Pete 0.9310 0.0135 1
2012 23 Tom-vs-Pete + Attribute 0.9330 0.0128 1
2012 26 combined Joint Bayesian 0.9242 0.0108 1
2013 27 high-dim LBP 0.9517 0.0113 1
24 July 2013 33 DFD 0.8402 0.0044 1
2013 34 TL Joint Bayesian 0.9633 0.0108 1
2011 19 face.com r2011b 0.9130 0.0030 Commercial 1
2014 40 Face++ 0.9950 0.0036 Commercial 1
24 June 2014 41 DeepFace-ensemble 0.9735 0.0025 1
2013 42 ConvNet-RBM 0.9252 0.0038 1
2013 44 POOF-gradhist 0.9313 0.0040 1
2013 44 POOF-HOG 0.9280 0.0047 1
14 April 2014 45 FR+FCN 0.9645 0.0025 Commercial 1
2014 46 DeepID 0.9745 0.0026 1
15 April 2014 47 GaussianFace 0.9852 0.0066 Commercial 1
18 June 2014 48 DeepID2 0.9915 0.0013 1
53 TCIT 0.9333 0.0124 Commercial 1
3 December 2014 55 DeepID2+ 0.9947 0.0012 Commercial 1
56 betaface.com 0.9808 0.0016 Commercial 1
3 February 2015 57 DeepID3 0.9953 0.0010 Commercial 1
59 insky.so 0.9551 0.0013 Commercial 1
60 Uni-Ubi 0.9900 0.0032 Commercial 1
2015 62 FaceNet 0.9963 0.0009 1
2015 63 Tencent-BestImage 0.9965 0.0025 Commercial 1
23 July 2015 64 Baidu 0.9977 0.0006 Commercial 1
2015 65 AuthenMetric 0.9977 0.0009 Commercial 1
1 September 2015 67 MMDFR 0.9902 0.0019 1
2015 70 CW-DNA-1 0.9950 0.0022 Commercial 1
1991 1 Eigenfaces original 0.6002 0.0079 0
2007 2 Nowak original 0.7245 0.0040 0
2007 3 Nowak funneled 0.7393 0.0049 0
2008 5 Hybrid descriptor-based funneled 0.7847 0.0051 0
2009 6 3x3 Multi-Region Histograms (1024) 0.7295 0.0055 0
2009 7 Pixels/MKL funneled 0.6822 0.0041 0
2009 7 V1-like/MKL funneled 0.7935 0.0055 0
2013 25 APEM (fusion) funneled 0.8408 0.0120 0
2013 30 MRF-MLBP 0.7908 0.0014 0
2013 32 Fisher vector faces 0.8747 0.0149 0
2014 49 Eigen-PEP 0.8897 0.0132 0
2014 50 MRF-Fusion-CSKDA 0.9589 0.0194 0
2015 58 POP-PEP 0.9110 0.0147 0
2015 68 Spartans 0.8755 0.0021 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment