Skip to content
New issue

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

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

Already on GitHub? # to your account

Mismatch of the range between generator's outputs and teacher's inputs #3

Open
sharinka0715 opened this issue Oct 25, 2022 · 0 comments

Comments

@sharinka0715
Copy link

Thanks for sharing your work! I have noticed that the generator's output is in range [-1, 1] (since a tanh function follows the last layer), but it does not match the teacher's input range. In dataloader.py, every different dataset is normalized, e.g. CIFAR10:

transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),

which indicates that the input range of teacher is in around [-2.5, 2.5]. The range of the generator's output is a subset of the teacher's input.

More importantly, I found that fixing this mismatch would affect the final accuracy of student. Could you please tell the reason of this mismatch or handle this problem? Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant