Imported from https://github.com/daixiangzi/ImprovedGan-pytorch