The invention provides a target detection method based on a generative confrontation network, which includes designing a generator, generating various samples according to category labels, designing an agent, detecting the data of the generator, providing false true values, and applying the data generated by the agent to Training of target detectors, designing target detectors, judging whether the generated data is conducive to improving the accuracy of target detection, designing adversaries, in the training phase, judging whether the data comes from real data or generated data, the generator and the discriminator are trained alternately, In the testing phase, the data to be detected is directly input into the target detector to obtain the detection result. The combination of the samples generated by the generation network of the invention and the real samples can enrich the training data, improve the detection accuracy, the target detection network provides feedback to the generation network, so that the generated samples are more realistic, and the data generated by the agent is directly applied to the training of the target detector. There is no need to spend a lot of manpower and material resources for labeling, and the present invention has a simple structure and is easy to deploy.