The invention discloses a generative invisible watermarking method based on a stable
diffusion model, which comprises the following steps of:
processing a text prompt / image prompt to obtain a
latent variable, guiding to generate an image by using the
latent variable, converting the image into a low-dimensional potential representation through a variational auto-
encoder, generating potential
noise according to the low-dimensional potential representation, and generating a stable
diffusion model according to the potential
noise. Performing multiple iterations by combining the potential
noise and the low-dimensional potential representation to generate a noise-containing image; a
watermark decoder is utilized to finely adjust the decoder, so that the finely-adjusted weight
watermark is embedded into the generated image; and meanwhile, when the stable
diffusion model generates an image, compressing the image into potential noise by using a variational auto-
encoder, then performing
wavelet transform on the obtained potential noise to obtain a noise
watermark, mapping noise watermark information into an annular pattern watermark, embedding the annular pattern watermark into a noise low-frequency sub-band, and performing
image generation by using the watermark-containing noise to obtain a watermark-containing image. According to the method, the watermark is embedded in the
image generation process, and the watermark information in the generated image can be extracted.