Image dehazing is an effective approach for enhancing the quality of images captured under foggy or hazy conditions. Although existing methods have achieved certain success in dehazing performance, many rely on deep network architectures, leading to high model complexity and computational costs. To address this issue, this study aims to compare and optimize existing algorithms to improve dehazing performance. For this purpose, we innovatively propose a multi-scale feature-coordinated composite loss mechanism, integrating perceptual loss, Mean Squared Error, and L1 regularization to optimize two dehazing methods: AOD-Net and DehazeFormer. Extensive experiments demonstrate significant performance improvements under the multi-objective loss mechanism. For AOD-Net, the PSNR increased by 22.40% (+4.17 dB), SSIM by 3.62% (+0.0318), VSNR by 43% (+1.54 dB), and LPIPS decreased by 56.30% (−0.1161). Similarly, DehazeFormer showed notable enhancements: the PSNR improved by 11.43% (+2.45 dB), SSIM by 0.8% (+0.008), VSNR by 2.6% (+0.23 dB), and LPIPS decreased by 5.5% (−0.0104). These results fully validate the effectiveness of the composite loss mechanism in enhancing the feature representation capability of the models.
Artistic style transfer aims to transfer the style of an artwork to a photograph while maintaining its original overall content. Although current style-transfer methods have achieved promising results when processing photorealistic images, they often struggle with brushstroke preservation in artworks, especially in styles such as oil painting and pointillism. In such cases, the extracted style and content features tend to include redundant information, leading to issues such as blurred edges and a loss of fine details in the transferred images. To address this problem, this paper proposes a multi-scale general style-transfer network based on diffusion models. The proposed network consists of a coarse style-transfer module and a refined style-transfer module. First, the coarse style-transfer module is designed to perform mainstream style-transfer tasks more efficiently by operating on downsampled images, enabling faster processing with satisfactory results. Next, to further enhance edge fidelity, a refined style-transfer module is introduced. This module utilizes a segmentation component to generate a mask of the main subject in the image and performs edge-aware refinement. This enhances the fusion between the subject’s edges and the target style while preserving more detailed features. To improve overall image quality and better integrate the style along the content boundaries, the output from the coarse module is upsampled by a factor of two and combined with the subject mask. With the assistance of ControlNet and Stable Diffusion, the model performs content-aware edge redrawing to enhance the overall visual quality of the stylized image. Compared with state-of-the-art style-transfer methods, the proposed model preserves more edge details and achieves more natural fusion between style and content.