未验证 提交 fe883840 编写于 作者: L lzzyzlbb 提交者: GitHub

fix stylegan path_batch_shrink type (#449)

上级 a4987a39
......@@ -258,7 +258,7 @@ class StyleGAN2Model(BaseModel):
l_g_total += l_g
if current_iter % self.gen_iters == 0:
path_batch_size = max(1, batch // self.path_batch_shrink)
path_batch_size = max(1, int(batch // self.path_batch_shrink))
noise = self.mixing_noise(path_batch_size, self.mixing_prob)
fake_img, latents = self.nets['gen'](noise, return_latents=True)
l_g_path, path_lengths, self.mean_path_length = g_path_regularize(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册