The invention discloses a
single image defogging method based on sub-pixel and conditional
antagonism generation network, which comprises the following steps: obtaining an original fogless image dataset and synthesizing the fogged
data set according to a foggy day imaging model; inputting the fogged image to be processed into a generator G, wherein the
network structure of the generator G is provided with a skip layer connection, a feature map with gradually reduced encoding output size is encoded, and the feature map is respectively obtained by
deconvolution and sub-pixel in a decoding stage, and then the feature map is operated by
convolution to obtain a fogless image output by the generator; inputting the non-
fog image and the original non-
fog image output from the generator G into thediscriminator D, and judging whether the non-
fog image output from the generator D is true or not; the generators G and the
discriminator D are constrained by
antagonism at the same time, and the
antagonism loss and L1 loss are calculated. The parameters of the generators G and the
discriminator D are updated by back propagation according to the principle of
stochastic gradient descent. When thetotal loss of the model converges, the training of the model is completed.