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

Using the same target dataset for both training and testing in Office31 #1

Closed
bardisafa opened this issue Aug 31, 2022 · 1 comment
Closed

Comments

@bardisafa
Copy link

Hi, I realized that you are testing the model on the same target dataset that was used during trainng and active sampling ('tr_or_te' doesn't exist in the filename). Here:

train_target_data = loader.get_data(cfg.DATA_NAME,os.path.join(cfg.DATA_PATH,cfg.DATA_TARGET),
transform.test_transform,tr_or_te='train',n_views=cfg.N_VIEWS)
test_target_data = loader.get_data(cfg.DATA_NAME,os.path.join(cfg.DATA_PATH,cfg.DATA_TARGET),
transform.test_transform,tr_or_te='test',n_views=cfg.N_VIEWS)

Could you explain why you did that? Thanks

@lyxok1
Copy link
Collaborator

lyxok1 commented Sep 1, 2022

Hi, we train and test the model in the same target dataset to follow a standard setting the field of Domain Adaptation, you can refer to some previous work like TQS or CDAN, these classic work also take target domain as available data without label during training.

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