-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun_barcodes.py
42 lines (39 loc) · 1.21 KB
/
run_barcodes.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
import os
if __name__ == "__main__":
datasets = {
"dsprites": {
"decoder_models": {
'btcvae': None,
'factor_VAE': None,
'VAE': None,
'betaH_VAE': None,
'betaB_VAE': None
},
},
"celeba": {
"decoder_models": {
'btcvae': None,
'factor_VAE': None,
'VAE': None,
'betaH_VAE': None,
'betaB_VAE': None,
'WGAN': None,
'BEGAN': None,
#'InfoGAN-CR': None,
},
},
"celebahq": {
"decoder_models": {
'PGAN': None,
'StyleGAN': None,
},
},
}
suffixes = ['2']
for suffix in suffixes:
for dataset_name, details in datasets.items():
print(details)
for decoder_model, decoder_checkpoint in details["decoder_models"].items():
print(decoder_model)
to_run = f"CUDA_VISIBLE_DEVICES=1 python barcode_gen.py --dataset {dataset_name} --decoder_model {decoder_model} --suffix {suffix} "
os.system(to_run)