da03 commited on
Commit
b87ef92
·
1 Parent(s): aab7be4
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -44,7 +44,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
44
  #print (c['c_crossattn'].shape)
45
  #print (c['c_crossattn'][0])
46
  print (prompt)
47
- c = {'c_concat': image_sequence}
48
  #c = model.enc_concat_seq(c, c_dict, 'c_concat')
49
  # Zero out the corresponding subtensors in c_concat for padding images
50
  #padding_mask = torch.isclose(image_sequence, torch.tensor(-1.0), rtol=1e-5, atol=1e-5).all(dim=(1, 2, 3)).unsqueeze(0)
 
44
  #print (c['c_crossattn'].shape)
45
  #print (c['c_crossattn'][0])
46
  print (prompt)
47
+ c = {'c_concat': image_sequence.unsqueeze(0)}
48
  #c = model.enc_concat_seq(c, c_dict, 'c_concat')
49
  # Zero out the corresponding subtensors in c_concat for padding images
50
  #padding_mask = torch.isclose(image_sequence, torch.tensor(-1.0), rtol=1e-5, atol=1e-5).all(dim=(1, 2, 3)).unsqueeze(0)