PyTorch Generator Test

Outline: The point of this test was to check whether the PyTorch and Tensorflow generator produce the same images for the same seed. Moreover, I want to see the impact of generating new images on the distribution of p_hat_cnn.

To the first point, the two models produce the same images for the same seed ! I plot the p_hat_cnn distribution of the PyTorch StyleGAN2 port for which I have transferred weights. Here are a few important points:

The main takeaway for me is that we may need to be careful how to set \(\psi\) when we generate images so as to not skew our editing. We could potentially be missing important features depending on how far we move from the baseline distribution.