The application discloses an inverse ISP method based on a spiral
diffusion model and camera
perception adaptation, and relates to the technical field of computer photography and
image signal processing. The method comprises the following steps: S1, constructing an inverse ISP training sample, each training sample comprising an
RGB image, a target RAW image corresponding to the
RGB image and a camera
label; S2, constructing an inverse ISP network based on a spiral
diffusion model, introducing a time-varying weight map related to
pixel intensity at different time steps in the
diffusion process; S3, setting a camera
perception low-rank
adaptation module in the inverse ISP network, comprising a plurality of low-rank
adaptation branches corresponding to different camera labels, and selecting a corresponding low-rank adaptation
branch to participate in network calculation according to the input camera
label; S4, in the training stage, training the inverse ISP network based on the forward probability distribution of the spiral diffusion model; in the sampling stage, inputting the
RGB image and the camera
label into the trained inverse ISP network, and obtaining the target RAW
image based on the reverse iterative sampling process of the spiral diffusion model.