-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun_vis_cov.py
47 lines (45 loc) · 1.44 KB
/
run_vis_cov.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
if __name__ == "__main__":
datasets = {
"dsprites": {
"decoder_models": {
'btcvae': None,
'factor_VAE': None,
'VAE': None,
'betaH_VAE': None,
'betaB_VAE': None,
'InfoGAN-CR': None,
},
},
"celeba": {
"decoder_models": {
'btcvae': None,
'factor_VAE': None,
'VAE': None,
'betaH_VAE': None,
'betaB_VAE': None,
'InfoGAN-CR': None,
'BEGAN': None,
'WGAN': None,
},
},
"celebahq": {
"decoder_models": {
'PGAN': None,
'StyleGAN': None,
},
},
}
suffixes = ['l100', '2', '3', '4', '5']
for dataset_name, details in datasets.items():
print(details)
for decoder_model, decoder_checkpoint in details["decoder_models"].items():
for suffix in suffixes:
if decoder_model == 'InfoGAN-CR' and suffix == 'l100':
suffix = None
print(decoder_model, suffix)
extra = f"fake_{decoder_model}_{dataset_name}"
if suffix is not None:
extra += f"_{suffix}"
to_run = f"python vis_cov.py --extra {extra} --plot "
os.system(to_run)