Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some questions about the data load. #3

Open
RiverZhenjiang opened this issue Jun 7, 2022 · 0 comments
Open

Some questions about the data load. #3

RiverZhenjiang opened this issue Jun 7, 2022 · 0 comments

Comments

@RiverZhenjiang
Copy link

RiverZhenjiang commented Jun 7, 2022

it seems that the 'test' and 'trainval' of trian.py is not fit the data loader.

train.py

PCN_TRAIN_DATASET, PCN_TEST_DATASET, AE_TRAIN_DATASET, AE_TEST_DATASET, NUM_PARTS = data_utils.load_data(DATA_PATH,
                                                                                                         NUM_POINTS,
                                                                                                         CATEGORY,
                                                                                                         'test',
                                                                                                         'trainval')

data_utils.py

def load_data(data_path, num_point, category, seen_split, unseen_split):
    pcn_train_dataset, pcn_test_dataset, num_parts = load_pcn_data(data_path, num_point, category, seen_split,
                                                                   unseen_split)
    ae_train_dataset, ae_test_dataset = load_aes_data(data_path, num_point, category, seen_split, unseen_split,
                                                      num_parts)

    return pcn_train_dataset, pcn_test_dataset, ae_train_dataset, ae_test_dataset, num_parts


def load_pcn_data(data_path, num_point, category, seen_split, unseen_split):
    pcn_train_dataset = part_dataset_pcn.PartDatasetPCN(root=data_path, npoints=num_point, class_choice=category,
                                                        split=seen_split)

    pcn_test_dataset = part_dataset_pcn.PartDatasetPCN(root=data_path, npoints=num_point, class_choice=category,
                                                       split=unseen_split)
    num_parts = pcn_train_dataset.get_number_of_parts()

    return pcn_train_dataset, pcn_test_dataset, num_parts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant