Test pattern generation plays a vital role in the model calibration in the optical proximity correction process. Traditional OPC resist models mainly use the image parameters such as the minimum intensity, the maximum intensity, the slope of intensity along the cut lines crossing the gauge points as their input parameters to calculate the resist contour position. To guarantee the accuracy of the resist model over the whole design layout, it is important that the image parameter space of the test patterns used to calibrate the OPC model covers the image parameter space of the original design layout. We present a method to generate test patterns based on the provided image parameters. The method is based on the adversarial neural network. With this method, we can prepare the test patterns with the desired image parameter coverage.