Skip to content

Commit 9069801

Browse files
Merge pull request #2 from kajc10/patch-2
Removed hardcoded num_samples in ddpm
2 parents 56976a8 + d9750b2 commit 9069801

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/sample_ddpm_vqvae.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ def sample(model, scheduler, train_config, diffusion_model_config,
2424
autoencoder_model_config['z_channels'],
2525
im_size,
2626
im_size)).to(device)
27-
xt = torch.randn((2,
28-
autoencoder_model_config['z_channels'],
29-
im_size,
30-
im_size)).to(device)
27+
3128
save_count = 0
3229
for i in tqdm(reversed(range(diffusion_config['num_timesteps']))):
3330
# Get prediction of noise

0 commit comments

Comments
 (0)