Controlling face attributes
Everything we have done in this chapter serves only one purpose: to prepare us for face editing! This is the climax of this chapter!
Latent space arithmetic
We have talked about the latent space several times now but haven't given it a proper definition. Essentially, it means every possible value of the latent variables. In our VAE, it is a vector of 200 dimensions, or simply 200 variables. As much as we hope each variable has a distinctive semantic meaning to us, such as z[0] is for eyes, z[1] dictates the eye color, and so on, things are never that straightforward. We will simply have to assume the information is encoded in all the latent vectors and we can use vector arithmetic to explore the space.
Before diving into high-dimensional space, let's try to understand it using a two-dimensional example. Imagine you are now at point (0,0) on a map and your home is at (x,y). Therefore, the direction toward your home is (x – 0 ,y...