Automatic prostate segmentation in MR images is essential in many clinical applications. Generative adversarial networks(GAN) have recently gained interests due to their promising ability in generating images which are difficult to distinguish from real images. In this paper, we propose an automatic and efficient algorithm base on GAN to segment the prostate contour and make the prostate segmentation shape more realistic. Our restult shows that the mean segmentation accuracy in test dataset is 90.3%±5.5. It indicates that the proposed strategy is feasible for segmentation of prostate MR images.