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

Why use trainloader_iter and trainloader_gt_iter at the same time? #47

Open
daifeng2016 opened this issue Dec 21, 2019 · 4 comments
Open

Comments

@daifeng2016
Copy link

Hi, I am wondering why you use trainloader_iter and trainloader_gt_iter at the same time during your training process, since they are both refer to the labeled dataset. During the D training, only labels_gt is used from trainloader_gt_iter, what is the difference if using labels from trainloader_gt_iter?

@hfslyc
Copy link
Owner

hfslyc commented Jan 16, 2020

It's simply for generating two sampling sequences for the entire dataset. one for the "real" branch and one for the fake "branch". You can also sample twice from the same data loader. We only do this for better readability since data loader in this project does not cost much efficiency.

@songkq
Copy link

songkq commented Nov 6, 2020

@hfslyc Hi, can I replace the labels_gt with the labels? I mean if I can just sample once from the same trainloader_iter. Does is it matter?

@hfslyc
Copy link
Owner

hfslyc commented Nov 7, 2020

@ipScore I think it doesn't matter.

@songkq
Copy link

songkq commented Nov 7, 2020

@hfslyc Thanks.

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

3 participants