yuntian-deng commited on
Commit
4bb6f21
·
1 Parent(s): 6787b07

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -58,12 +58,12 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
58
  DDPM = False
59
  DDPM = False
60
  if DDPM:
61
- samples_ddim = model.p_sample_loop(cond=c, shape=[1, 4, 64, 48], return_intermediates=False, verbose=True)
62
  else:
63
  samples_ddim, _ = sampler.sample(S=8,
64
  conditioning=c,
65
  batch_size=1,
66
- shape=[4, 64, 48],
67
  verbose=False)
68
  # unconditional_guidance_scale=5.0,
69
  # unconditional_conditioning=uc,
 
58
  DDPM = False
59
  DDPM = False
60
  if DDPM:
61
+ samples_ddim = model.p_sample_loop(cond=c, shape=[1, 4, 48, 64], return_intermediates=False, verbose=True)
62
  else:
63
  samples_ddim, _ = sampler.sample(S=8,
64
  conditioning=c,
65
  batch_size=1,
66
+ shape=[4, 48, 64],
67
  verbose=False)
68
  # unconditional_guidance_scale=5.0,
69
  # unconditional_conditioning=uc,