The folder MetFaces/prepare_data
contains the code to prepare data for the MetFaces experiments.
Since we apply the FFHQ image classifier to annotate the MetFaces data, you first need to follow the instruction Training FFHQ image classifier to get the pre-trained FFHQ image classifier.
Generate 10k images and latent variables of StyleGAN2-ADA (including w and z):
bash scripts/run_gen_batch.sh
Use the pre-trained FFHQ image classifier to annotate the generated images:
bash scripts/run_metfaces_labeling.sh
The resulting pairs of latent variables and labels will be used to train latent classifiers.