File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ def train_from_folder(
1515 image_size = 128 ,
1616 network_capacity = 16 ,
1717 transparent = False ,
18- batch_size = 3 ,
19- gradient_accumulate_every = 5 ,
18+ batch_size = 5 ,
19+ gradient_accumulate_every = 6 ,
2020 num_train_steps = 150000 ,
2121 learning_rate = 2e-4 ,
22- ttur_mult = 2 ,
22+ ttur_mult = 1.5 ,
2323 num_workers = None ,
2424 save_every = 1000 ,
2525 generate = False ,
Original file line number Diff line number Diff line change 44 name = 'stylegan2_pytorch' ,
55 packages = find_packages (),
66 scripts = ['bin/stylegan2_pytorch' ],
7- version = '0.18.1 ' ,
7+ version = '0.18.2 ' ,
88 license = 'GPLv3+' ,
99 description = 'StyleGan2 in Pytorch' ,
1010 author = 'Phil Wang' ,
Original file line number Diff line number Diff line change @@ -699,7 +699,7 @@ def train(self):
699699
700700 aug_prob = self .aug_prob
701701
702- apply_gradient_penalty = self .steps > 5000 and self . steps % 4 == 0
702+ apply_gradient_penalty = self .steps % 4 == 0
703703 apply_path_penalty = self .steps > 5000 and self .steps % 32 == 0
704704 apply_cl_reg_to_generated = self .steps > 20000
705705
You can’t perform that action at this time.
0 commit comments