yuntian-deng commited on
Commit
be95217
·
1 Parent(s): e137c08

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +6 -6
utils.py CHANGED
@@ -46,12 +46,12 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
46
  print ('sleeping')
47
  #time.sleep(120)
48
  print ('finished sleeping')
49
- samples_ddim = model.p_sample_loop(cond=c, shape=[1, 3, 256, 256], return_intermediates=False, verbose=True)
50
- #samples_ddim, _ = sampler.sample(S=999,
51
- # conditioning=c,
52
- # batch_size=1,
53
- # shape=[3, 64, 64],
54
- # verbose=False,
55
  # unconditional_guidance_scale=5.0,
56
  # unconditional_conditioning=uc,
57
  # eta=0)
 
46
  print ('sleeping')
47
  #time.sleep(120)
48
  print ('finished sleeping')
49
+ #samples_ddim = model.p_sample_loop(cond=c, shape=[1, 3, 256, 256], return_intermediates=False, verbose=True)
50
+ samples_ddim, _ = sampler.sample(S=4,
51
+ conditioning=c,
52
+ batch_size=1,
53
+ shape=[3, 256, 256],
54
+ verbose=False)
55
  # unconditional_guidance_scale=5.0,
56
  # unconditional_conditioning=uc,
57
  # eta=0)