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

training questions #9

Open
lmdsx opened this issue Oct 18, 2021 · 2 comments
Open

training questions #9

lmdsx opened this issue Oct 18, 2021 · 2 comments

Comments

@lmdsx
Copy link

lmdsx commented Oct 18, 2021

Hello!
Thanks for your inspiring work. And I 'm very intersted in it,Among them, there is a little doubt in the training,How is batchsize set during training? After tampering and non-tampering images are shuffled in the dataloader, the loss function used by the images in batch will be different. My training setting, when the batchsize is 8, I don’t know how to calculate the loss,Is it to traverse or set batchsize to 1 or some other method?

@dong03
Copy link
Owner

dong03 commented Oct 21, 2021

We return class labels together with images in dataset and send different parts into the corresponding loss function.

e.g. real part: images[class ==0], fake part: images[class ==1]

@hilssen
Copy link

hilssen commented Mar 26, 2023

Hello! Can you provide the training code?

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