예제 #1
0
def agum_data(action_path, out_path):
    old_actions = actions.read_actions(action_path)
    new_actions = [flip_action(action_i) for action_i in old_actions]
    all_actions = old_actions + new_actions
    dirs.make_dir(out_path)
    for action_i in all_actions:
        path_i = utils.paths.Path(out_path)
        path_i.add(action_i.cat)
        dirs.make_dir(path_i)
        action_i.save(str(path_i))
예제 #2
0
def transform_actions(in_path,out_path):
    actions=action.read_actions(in_path)
    new_actions=[action_i.transform(find_keypoints)
                 for action_i in actions ]
    action.save_actions(new_actions,out_path)