PyTorch-StudioGAN
PyTorch-StudioGAN copied to clipboard
Fix CAS computation
- missing optimizer.zero_grad()
- validation accuracy was computed on the training set instead of the validation set
- fix log
Also, I believe would be better to generate a fake dataset only once and use it to train the classifier for N epochs. So, the correct pipeline would be:
- Generate a fake dataset of the same length (and same number of images per class, preferably) of the original training dataset (e.g: CIFAR10 -> 5000 images per class)
- Shuffle the dataset
- Train the classifier for N epochs and at the end of each epoch compute the accuracy on the original validation dataset
Thanks. I will review the PR and reflect it if there is no problem.
Again thank you for your contribution!