The accuracy of metasurface inverse design depends on the input dimension of the target light field and the output dimension of the unit structure parameters. When the two light field targets are simultaneously controlled, the designed unit structure often cannot satisfy the simultaneous directional control of the two light field target parameters due to the existence of coupling. This greatly limits the completeness of the function of metasurfaces in applications. In this paper, we apply the designed 13-layer residual network (ResNet) to the inverse design of wavefront control of dielectric metasurfaces. After the neural network training is completed, the correspondence between any amplitude, phase and the element structure parameters within a certain error range can be realized, which greatly saves the time cost in the metasurface design process. As a verification of the inverse design method, we arranged two focusing metasurfaces of different sizes. Their focusing efficiencies are more than 53%. The nanounit structure and its inverse design method proposed in this paper provide a new idea for the design of the metasurface to control the polarized light field. At the same time, it will have important applications in the intelligent design of metasurfaces.