forked from RenYang-home/ALVC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALVC.py
22 lines (17 loc) · 882 Bytes
/
ALVC.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--path", default='BasketballPass')
parser.add_argument("--l", type=int, default=512, choices=[256, 512, 1024, 2048])
args = parser.parse_args()
frames = len(os.listdir(args.path))
print('Running ALVC with extrapolation (P-frames)')
os.system('python Recurrent_AutoEncoder_Extrapolation.py --path ' + args.path + ' --frame ' + str(frames)
+ ' --l ' + str(args.l))
print('Running entropy coding')
os.system('python Recurrent_Prob_Model.py --path ' + args.path + ' --frame ' + str(frames)
+ ' --l ' + str(args.l))
print('Running ALVC with interpolation (B-frames)')
os.system('python Interpolation_Compression.py --path ' + args.path + ' --frame ' + str(frames)
+ ' --l ' + str(args.l))