The invention provides a brocade
pattern generation method and
system based on a
diffusion model, and relates to the technical field of
pattern generation, and the method comprises the steps: collecting a brocade
sample image, extracting the structural features of a brocade sample pattern, and building a multi-mode joint embedding space; analyzing a design intention input by a user into a multi-
modal condition vector, and mapping the multi-
modal condition vector to a multi-
modal joint embedding space to obtain condition embedding features; introducing a structure
perception attention mechanism into the
noise prediction network of the
diffusion model, generating a structure constraint feature map, and in the reverse denoising process of the
diffusion model, carrying out hierarchical fusion on the condition embedding features and the structure constraint feature map to obtain a brocade generation result; and performing brocade process feasibility
verification on the brocade generation result, and outputting a brocade pattern. According to the method, the intelligent level and the production efficiency of brocade
pattern generation can be improved by combining a structure
perception attention mechanism and a hierarchical fusion strategy.