Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
9c6b57e
1
Parent(s):
f942748
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.unsqueeze(0)}
|
48 |
print (image_sequence.shape, c['c_concat'].shape)
|
49 |
#c = model.enc_concat_seq(c, c_dict, 'c_concat')
|
50 |
# Zero out the corresponding subtensors in c_concat for padding images
|
|
|
44 |
#print (c['c_crossattn'].shape)
|
45 |
#print (c['c_crossattn'][0])
|
46 |
print (prompt)
|
47 |
+
c = {'c_concat': image_sequence.transpose(0, 1).unsqueeze(0)}
|
48 |
print (image_sequence.shape, c['c_concat'].shape)
|
49 |
#c = model.enc_concat_seq(c, c_dict, 'c_concat')
|
50 |
# Zero out the corresponding subtensors in c_concat for padding images
|