The invention provides an All-In-One
image restoration method based on
deep learning in the technical field of
image restoration, and the method comprises the steps: S1, obtaining a large number of original images, carrying out the
randomization processing of each original image, obtaining a corresponding
noise image, and constructing a
data set based on each original image and the
noise image; s2, creating an
image restoration model based on the prompt network, the
encoder and the decoder, and setting a
loss function of the image restoration model; the prompt network, the
encoder and the decoder are connected in sequence; the
encoder is provided with a plurality of
data stream architecture blocks; the decoder is provided with a plurality of prompt blocks; s3, training the image restoration model through the
data set, and continuously optimizing hyper-parameters of the image restoration model in the training process; and S4, deploying the trained image restoration model, and performing image restoration by using the deployed image restoration model. The method has the advantages that the generalization ability and the restoration quality of image restoration are greatly improved.