Developer Center

Resources to get you started with Algorithmia

Train a Face Recognition Model to Recognize Celebrities

Updated

Available on GitHub.

Earlier this week we introduced Face Recognition, a trainable model that is hosted on Algorithmia. This model enables you to train images of people that you want the model to recognize and then you can pass in unseen images to the model to get a prediction score.

The great thing about this algorithm is that you don’t have to have a huge dataset to get a high accuracy on the prediction scores of unseen images. The Face Recognition algorithm trains your data quickly using at least ten images of each person that you wish to train on.

Learn how to use the Face Recognition model so you can see which celebrity you look most like.

For the full blog post related to this recipe, see Train a Face Recognition Model to Recognize Celebrities.

Getting Started

Install the Algorithmia client from PyPi:

  install algorithmia 

You’ll also need a free Algorithmia account, which includes 5,000 free credits a month – more than enough to get started with crawling, extracting, and analyzing web data.

Sign up here, and then grab your API key.

Find this line in the script:

 
client = Algorithmia.client("YOUR_API_KEY")
 

and add in your API key.

How to Train the Face Recognition Model

After putting in your own API key to the line above run it in your console environment:

  face_recognition.py 

Built With