| 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") |
|
|
|
|
|
|
|
|