Function Repository Resource:

CreateFace

Source Notebook

Retrieve the face of a nonexistent person from this-person-does-not-exist.com

Contributed by: Bob Sandheinrich

ResourceFunction["CreateFace"][]

returns a generated image of a face from this-person-does-not-exist.com.

ResourceFunction["CreateFace"][n]

returns n generated faces.

Details and Options

The source code is stored here.
All the data has been in the public domain since 2019.
The second version of StyleGAN2 was introduced in 2020.
ResourceFunction["CreateFace"] supports a legacy "WaitTime" option. A previous version of the service required this to avoid duplicate faces. The current service does not, so the default value is now set to zero. If you see duplicate faces in ResourceFunction["CreateFace"][n], try using "WaitTime"1 to create unique faces.
These people do not exist.

Examples

Basic Examples (1) 

Create a new face using this-person-does-not-exist.com:

In[1]:=
ResourceFunction["CreateFace"][]
Out[1]=

Scope (1) 

Create four faces:

In[2]:=
ResourceFunction["CreateFace"][4]
Out[2]=

Applications (2) 

Create a dataset of facial feature data for generated faces. Most are happy in their nonexistent state:

In[3]:=
Dataset[FacialFeatures /@ ResourceFunction["CreateFace"][8]]
Out[3]=

Create faces, then destroy them:

In[4]:=
ResourceFunction["OccludeFaces"] /@ ResourceFunction["CreateFace"][3]
Out[4]=

Publisher

Bob

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.1.1 – 15 September 2023
  • 1.1.0 – 27 February 2023
  • 1.0.0 – 16 November 2021

Related Resources

Author Notes

Version 1.1.1: bug fix for change to website

Version 1.1.0: switch from the no-longer active thispersondoesnotexist.com to this-person-does-not-exist.com

License Information