1. Generate Images to Calculate FID Scores

Run

python gen_fid_imgs.py --n_sample 50000 --perturb 3 --sublayer_str dense2_act --batch_size 4 --generator stylegan1

or

python gen_fid_imgs.py --n_sample 50000 --perturb 3 --sublayer_num 3 --batch_size 4 --generator stylegan2

2. Calculate FID scores

Run

python fid_hydra.py -m args.perturb=3,4,5 args.sublayer_num=3,4,5,6,7,8 args.generator=stylegan2

or

python fid_hydra.py -m args.perturb=3,4,5 args.sublayer_num=dense2_act,dense3_act,dense4_act,dense5_act,dense6_act,dense7_act args.generator=stylegan1
