Seems things have changed since this repo was last tested. In train.py gan.trainGenerator should become gan.train_generator.