Exemplo n.º 1
0
def get_helen_test_data(query_label_names, aug_setting_name):
    return ps.Dataset(
        'HELENRelabeled_wo_pred',
        category='test',
        aug_ids=[0],
        aug_setting_name=aug_setting_name,
        query_label_names=query_label_names)
Exemplo n.º 2
0
    def gen_training_data(self,
                          query_label_names,
                          aug_setting_name='aug_512_0.8',
                          dataset_names=[]):
        datasets = []
        if len(dataset_names) == 0:
            dataset_names = [
                'HELENRelabeled', 'MultiPIE', 'HangYang', 'Portrait724'
            ]

        for dataset_name in dataset_names:
            datasets.append(
                ps.Dataset(dataset_name,
                           category='train',
                           aug_ids=[0, 1, 2, 3],
                           aug_setting_name=aug_setting_name,
                           query_label_names=query_label_names))
        return ps.CombinedDataset(datasets)