mirror of
https://github.com/aladdinpersson/Machine-Learning-Collection.git
synced 2026-02-21 11:18:01 +00:00
updated progan
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user