Aiming at the problems of inadequate utilization of structural semantics and poor repair results of detailed features in the existing deep learning methods for repairing ancient murals, a structure-guided diffusion generative algorithm was proposed. Firstly, a mural structure reconstruction module composed of gated convolution and fast Fourier residual block is constructed, and the edge structure after reconstruction is used to guide the repair of damaged murals, so as to overcome the problem of insufficient utilization of structural semantic repair. Then, a generative diffusion module based on stochastic differential equation is proposed, which performs forward diffusion processing on the mural image to be repaired by stochastic differential equation. Next, a mask-enhanced backward iterative reconstruction module is designed to enhance the semantic consistency between the damaged area and the intact area of the mural, and improve the repair ability of the detailed features of the mural. Finally, the digital inpainting experiments and analysis are carried out on the Dunhuang mural data set. The experimental results show that the proposed algorithm can effectively complete the mural restoration, and the objective evaluation indicators are better than the comparison algorithms.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |