Skip to content

Commit 0cca585

Browse files
committed
no sync all DDPs that were usedeven if detached, to play it safe
1 parent a3ba351 commit 0cca585

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'stylegan2_pytorch = stylegan2_pytorch.cli:main',
99
],
1010
},
11-
version = '0.22.1',
11+
version = '0.22.2',
1212
license='GPLv3+',
1313
description = 'StyleGan2 in Pytorch',
1414
author = 'Phil Wang',

stylegan2_pytorch/stylegan2_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def train(self):
829829
avg_pl_length = self.pl_mean
830830
self.GAN.D_opt.zero_grad()
831831

832-
for i in gradient_accumulate_contexts(self.gradient_accumulate_every, self.is_ddp, ddps=[D_aug]):
832+
for i in gradient_accumulate_contexts(self.gradient_accumulate_every, self.is_ddp, ddps=[D_aug, S, G]):
833833
get_latents_fn = mixed_list if random() < self.mixed_prob else noise_list
834834
style = get_latents_fn(batch_size, num_layers, latent_dim, device=self.rank)
835835
noise = image_noise(batch_size, image_size, device=self.rank)

0 commit comments

Comments
 (0)