Skip to content

Why only utilize the test dataset for both training and testing? #29

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

Open
yujunzhen opened this issue Jan 21, 2025 · 1 comment
Open

Comments

@yujunzhen
Copy link

yujunzhen commented Jan 21, 2025

@caoyunkang Hello,a little question please. Why not separate the training and testing datasets?

`
class BaseDataset(data.Dataset):
def init(self, clsnames, transform, target_transform, root, aug_rate=0., training=True):
self.root = root
self.transform = transform
self.target_transform = target_transform
self.aug_rate = aug_rate
self.training = training
self.data_all = []
self.cls_names = clsnames
solver = DataSolver(root, clsnames)
meta_info = solver.run()

    self.meta_info = meta_info['test']  # Only utilize the test dataset for both training and testing 
    for cls_name in self.cls_names:
        self.data_all.extend(self.meta_info[cls_name])

    self.length = len(self.data_all)

`

@caoyunkang
Copy link
Owner

We followed the default settings in the APRIL-GAN repository. Specifically, we used the testing data from one dataset as the training data and then tested the model on another dataset.

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

2 participants