Signal measurement and diagnosis of wind turbine gearbox are very important for equipment maintenance. Generative adversarial networks (GAN) are particularly outstanding in data generation due to its game mechanism. An improved gear fault diagnosis method based on GAN for unbalanced data sets is proposed in this paper. Firstly, the fault data is encoded by binary vectorization based on kurtosis perceptron. Secondly, the individuals that fit the fitness are selected by the deterministic selection and the macro factor code string is crossed by multiple points. Then, gaussian mutation is focused on searching for local fault points. Finally, the nonlinear decision boundary is established by the logistic regression auxiliary classifier. The effectiveness of the proposed method was verified by three groups of comparison experiments. Compared with the existing methods, the proposed method has a better ability for fault feature generation, classification, and diagnosis accuracy under unbalanced data sets.