Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
94b146f
1
Parent(s):
b871f44
utils.py
CHANGED
@@ -50,7 +50,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
|
|
50 |
pos_map = pos_maps[0]
|
51 |
leftclick_map = torch.cat(leftclick_maps, dim=0)
|
52 |
print (pos_maps[0].shape, c['c_concat'].shape, leftclick_map.shape)
|
53 |
-
c['c_concat'] = torch.cat([c['c_concat'][:, :, :, :], pos_maps[0].to(c['c_concat'].device).unsqueeze(0),
|
54 |
|
55 |
print ('sleeping')
|
56 |
#time.sleep(120)
|
|
|
50 |
pos_map = pos_maps[0]
|
51 |
leftclick_map = torch.cat(leftclick_maps, dim=0)
|
52 |
print (pos_maps[0].shape, c['c_concat'].shape, leftclick_map.shape)
|
53 |
+
c['c_concat'] = torch.cat([c['c_concat'][:, :, :, :], pos_maps[0].to(c['c_concat'].device).unsqueeze(0), leftclick_map.to(c['c_concat'].device).unsqueeze(0)], dim=1)
|
54 |
|
55 |
print ('sleeping')
|
56 |
#time.sleep(120)
|