In the mechanical design of structures, traditional topology optimization methods involve numerous finite element iterative analyses, leading to a significant expenditure of computational resources. Therefore, the improved multi-scale gradient generative adversarial networks topology optimization technique is proposed. The topology optimization condition parameters are compressed into a low-dimensional latent space feature representation using the encoder, allowing the model to better extract features from these parameters. To speed up model training, the generator and discriminator networks use lightweight residual convolutional blocks. The hybrid attention mechanism extracts prominent region features from the topology optimization structure map. The model training process is guided by a multi-dimensional fusion loss function to enhance the quality of generated model samples. Finally, transferring the parameters of the low-resolution topology optimization model to the high-resolution model enables complete training on a limited amount of high-resolution topology optimization datasets. The experimental data on the low- and high-resolution topology optimization datasets demonstrate that, when compared to alternative methods, this method produces better-quality topology optimization structure maps. Additionally, it can generate high-resolution topology optimization structure maps in minimal time, enabling real-time topology optimization.