Muhammad Taqi Raza
commited on
Commit
·
fed9194
1
Parent(s):
87f323a
modifying requirements.txt
Browse files
inference/cli_demo_camera_i2v_pcd.py
CHANGED
@@ -369,12 +369,13 @@ def generate_video(
|
|
369 |
# ++++++++++++++++++++++++++++++++++++++
|
370 |
latents = video_generate_all # This is a latent
|
371 |
|
372 |
-
|
373 |
-
|
374 |
latents = [
|
375 |
-
torch.stack([
|
376 |
-
for sublist in latents
|
377 |
-
]
|
|
|
|
|
378 |
|
379 |
print(f"Type of latents: {type(latents)}")
|
380 |
print(f"Length of latents: {len(latents)}")
|
|
|
369 |
# ++++++++++++++++++++++++++++++++++++++
|
370 |
latents = video_generate_all # This is a latent
|
371 |
|
372 |
+
to_tensor = T.ToTensor()
|
|
|
373 |
latents = [
|
374 |
+
torch.stack([to_tensor(img) for img in sublist]) # [T, C, H, W]
|
375 |
+
for sublist in latents # original input
|
376 |
+
]
|
377 |
+
|
378 |
+
latents = torch.stack(latents) # [B, T, C, H, W]
|
379 |
|
380 |
print(f"Type of latents: {type(latents)}")
|
381 |
print(f"Length of latents: {len(latents)}")
|