mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-06-25 11:39:17 +08:00
Merge branch 'refs/heads/CogVideoX' into CogVideoX_dev
This commit is contained in:
commit
b37dfd56d5
@ -133,5 +133,6 @@ if __name__ == "__main__":
|
||||
elif args.mode == "both":
|
||||
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")
|
||||
decoded_output = decode_video(args.model_path, args.output_path + "/encoded.pt", dtype, device)
|
||||
save_video(decoded_output, args.output_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user