updated progan

This commit is contained in:
Aladdin Persson
2021-03-24 13:01:45 +01:00
parent 59b1de7bfe
commit 74597aa8fd
5 changed files with 15 additions and 26 deletions

View File

@@ -87,6 +87,4 @@ def generate_examples(gen, steps, truncation=0.7, n=100):
noise = torch.tensor(truncnorm.rvs(-truncation, truncation, size=(1, config.Z_DIM, 1, 1)), device=config.DEVICE, dtype=torch.float32)
img = gen(noise, alpha, steps)
save_image(img*0.5+0.5, f"saved_examples/img_{i}.png")
gen.train()
gen.train()