The invention discloses a wall painting digital
restoration method based on structure guidance and a
state space model, which comprises the following steps: constructing an edge restoration model with a
mask image, a damaged edge image and a damaged grey-scale image as input and an edge restoration image as output, the method is characterized in that the method comprises the following steps: 1, sequentially constructing a sample
convolution block, three down-sampling
convolution blocks, eight double-path Mamba modules, three up-sampling
convolution blocks, one output convolution block and one
discriminator; constructing a main body repair model of which the input is the damaged mural picture, the
mask picture and the edge repair picture and the output is the main body repair picture, and constructing a detail repair model of which the input is the
mask picture, the main body repair picture and the edge repair picture and the output is the final repair picture; applying the trained model to a to-be-repaired actual mural; according to the method, the prior structure information of the mural is utilized in a multi-scale mode to guide the repairing process, the
line structure and texture detail information of the mural are better restored, the mural repairing effect is remarkably improved, and the generated image is closer to a real mural.