File size: 634 Bytes
fc385a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import h5py
import argparse
import pdb

if __name__=="__main__":

    parser = argparse.ArgumentParser(description='Process features')
    parser.add_argument('--source_h5_path', type=str, help="path to the source features")
    parser.add_argument('--path_seg_len', type=str, help="path to the seg_len file")
    parser.add_argument('--target_h5_path', type=str, help="path to the target features")
    args = parser.parse_args()

    source_features = h5py.File(args.source_h5_path, 'r')['feature'][()]
    seg_len = h5py.File(args.path_seg_len, 'r')['seg_len'][()]

    pdb.set_trace()

    print("Feature Processing Finished")