yuntian-deng commited on
Commit
bcb186a
·
1 Parent(s): 1f8aaef

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -57,7 +57,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
57
  # eta=0)
58
 
59
  #x_samples_ddim = model.decode_first_stage(samples_ddim)
60
- x_samples_ddim = pos_map.to(c['c_concat'].device).unsqueeze(0).expand(-1, 3)
61
  #x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
62
  x_samples_ddim = torch.clamp(x_samples_ddim, min=-1.0, max=1.0)
63
 
 
57
  # eta=0)
58
 
59
  #x_samples_ddim = model.decode_first_stage(samples_ddim)
60
+ x_samples_ddim = pos_map.to(c['c_concat'].device).unsqueeze(0).expand(-1, 3, -1, -1)
61
  #x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
62
  x_samples_ddim = torch.clamp(x_samples_ddim, min=-1.0, max=1.0)
63