def get_deep_frames(action_path,reduction,cls): print(action_path) action=read_action(action_path) images=reduction.transform(action.frames) assigment=cls.find_clusters(images) action.set_seq(assigment) print(action) return action
def compute_sequence(action_path,cls): action=actions.read_action(action_path) cls_frames= [cls.test(frame) for frame in action.flat_frames()] action.set_seq(cls_frames) print(action) return action