SemanticStyleGAN icon indicating copy to clipboard operation
SemanticStyleGAN copied to clipboard

测试 visualize 目录下文件发现的问题

Open O-O1024 opened this issue 3 years ago • 1 comments

1、没有把项目根目录添加到 sys.path,根本无法 import,我就是在项目根目录运行的

2、invert.py 文件有很多问题!!!

2.1、args.device、args.truncation_mean、lpips.PerceptualLoss 都是未定义的。lpips下也没找到 PerceptualLoss,是不是 readme 文件写漏了一些步骤?

2.2、truncation_mean 怎么用来生成随机数了 g_ema = g_ema.style(torch.randn(args.truncation_mean<<<===, g_ema.style_dim, device=device)).mean(0)

O-O1024 avatar Jul 19 '22 19:07 O-O1024

  1. please run the scripts under the root folder
  2. the inversion script was updated after I uploaded it. The current version should not have these problems.

seasonSH avatar Jul 20 '22 07:07 seasonSH