Generate Faces that Trick Facial Recognition with GANs in PyTorch

Mike Chaykowsky
7 min readApr 14, 2020

My goal here is to create an easily adaptable framework to generate faces that look realistic, but also trick a facial recognition classifier. The example we will work through is the task of generating realistic faces that always classify as your face — despite them not being your face (or anyone’s face for that matter).

This is actually a tricky task because it involves updating the generator in two ways.

  1. Update the generator to make realistic images

--

--

Mike Chaykowsky

Data Scientist at Rivian. x- RAND Researcher. Based out of Los Angeles. @ChaykowskyMike linkedin.com/in/chaykowsky