Machine Learning is Fun! Part 4: Modern Face Recognition with Deep Learning
Adam Geitgey


I have been able to set everything up and working correctly but am experiencing issues in running the following command:

python3 ./demos/ train ./generated-embeddings/

Executing the above mentioned command on my terminal gives me the following error:

/usr/local/lib/python3.5/dist-packages/sklearn/utils/ DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
 if ‘order’ in inspect.getargspec(np.copy)[0]:
Loading embeddings.
Traceback (most recent call last):
 File “./demos/”, line 291, in <module>
 File “./demos/”, line 112, in train
 le = LabelEncoder().fit(labels)
 File “/usr/local/lib/python3.5/dist-packages/sklearn/preprocessing/”, line 110, in fit
 y = column_or_1d(y, warn=True)
 File “/usr/local/lib/python3.5/dist-packages/sklearn/utils/”, line 485, in column_or_1d
 raise ValueError(“bad input shape {0}”.format(shape))
ValueError: bad input shape ()

My setup: UBUNTU 16.04 LTS 64 bit with Python 3.5.2

Do you have any idea of what’s going on here and how to fix it?

Thanks a lot in advance

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.