mirror of
https://github.com/THUDM/CogVideo.git
synced 2026-05-07 15:18:46 +08:00
Merge 9869560fa33cb204bc0b9cea3443a261751901f4 into 7a1af7154511e0ce4e4be8d62faa8c5e5a3532d2
This commit is contained in:
commit
24fd32e624
@ -142,9 +142,7 @@ if __name__ == "__main__":
|
||||
assert args.video_path, "Video path must be provided for encoding."
|
||||
encoded_output = encode_video(args.model_path, args.video_path, dtype, device)
|
||||
torch.save(encoded_output, args.output_path + "/encoded.pt")
|
||||
print(
|
||||
f"Finished encoding the video to a tensor, save it to a file at {encoded_output}/encoded.pt"
|
||||
)
|
||||
print(f"Finished encoding the video to a tensor, saved to {args.output_path}/encoded.pt")
|
||||
elif args.mode == "decode":
|
||||
assert args.encoded_path, "Encoded tensor path must be provided for decoding."
|
||||
decoded_output = decode_video(args.model_path, args.encoded_path, dtype, device)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user