Figure 4. (a) Illustrates the training stage of the GenDeg model where it is trained to condition on the clean image, text prompt and mean intensity (µ) and variation (σ) of the degradation pattern. (b) Shows the inference stage where the model generates a degraded image based on these conditions; and (c) Depicts the architecture of the Swin-transformer-based restoration network.