Imported from https://github.com/shpda/text-to-image-gen-model-acgan