Accelerating Style Transfer: Enhancing Efficiency of Diffusion-Based Models with Advanced Sampling Methods
DOI:
https://doi.org/10.54097/035cr916Keywords:
Diffusion-based Style Transfer; Accelerated Sampling Methods; StyleID; Image Generation.Abstract
Traditionally, generating images with diffusion-based style transfer models has been time-consuming. This study explores how recent advancements in accelerated sampling methods can expedite the image generation process for top-performing style transfer model. Style Injection in Diffusion (StyleID) renowned for its exceptional style transfer results, serves as the foundation for this research. The study integrates various accelerated sampling techniques—Fast Sampling of Diffusion Probabilistic Models (FastDPM), Pseudo Numerical Methods for Diffusion Models (PNDMs), DPM-Solver, and Unified Predictor-Corrector (UniPC) —into the StyleID framework. While the core techniques of StyleID remain unchanged, these accelerated methods are applied to both the inverse and reverse diffusion processes. The findings reveal that UniPC can effectively reduce the Number of Function Evaluations (NFE) from 50, as used by Denoising Diffusion Implicit Models (DDIM) in StyleID, to just 10, while maintaining the quality of the stylized images. Additionally, within the 10-50 NFE range, DPM-Solver and PNDMs yield superior results compared to DDIM. Conversely, FastDPM does not enhance the efficiency or quality of image generation at any NFE. Consequently, the use of UniPC in the sampling method results in a fivefold increase in efficiency for producing high-quality stylized images.
Downloads
References
[1] Saribal C. et al. Detecting handedness of spatially oriented molecules by Coulomb explosion imaging. The Journal of Chemical Physics, 2021, 154(7).
[2] Everaert. Martin N. et al. Diffusion in style. Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023: 2251-2261.
[3] Zhang Y.X. et al. Inversion-based style transfer with diffusion models. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2023: 10146-10156.
[4] Wang Z.Z. Lei Z. and Wei X. Stylediffusion: Controllable disentangled style transfer via diffusion models. Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023: 7677-7689.
[5] Jeong J. Mingi K. and Youngjung U. Training-free Content Injection using h-space in Diffusion Models. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision. 2024: 5151-5161.
[6] Chung J. Sangeek H. and Jae-Pil H. Style injection in diffusion: A training-free approach for adapting large-scale diffusion models for style transfer. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024: 8795-8805.
[7] Rombach R. et al. High-resolution image synthesis with latent diffusion models. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2022: 10684-10695.
[8] Huang X. and Serge B. Arbitrary style transfer in real-time with adaptive instance normalization. Proceedings of the IEEE international conference on computer vision. 2017: 1501-1510.
[9] Zhao W.L. et al. UniPC: A unified predictor-corrector framework for fast sampling of diffusion models. Advances in Neural Information Processing Systems, 2024, 36.
[10] Kong, Z.F. and Wei P. On fast sampling of diffusion probabilistic models. 2021, arXiv preprint: 2106.00132.
[11] Liu L.P. et al. Pseudo numerical methods for diffusion models on manifolds. 2022, arXiv preprint: 2202.09778.
[12] Lu C. et al. DPM-Solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps. Advances in Neural Information Processing Systems, 2022, 35: 5775-5787.
[13] Ronneberger O. Philipp F. and Thomas B. U-net: Convolutional networks for biomedical image segmentation. Medical image computing and computer-assisted intervention–MICCAI, 2015: 234-241.
[14] Zhang R. et al. The unreasonable effectiveness of deep features as a perceptual metric. Proceedings of the IEEE conference on computer vision and pattern recognition. 2018, 586-595.
[15] Wright M. and Björn O. Artfid: Quantitative evaluation of neural style transfer. DAGM German Conference on Pattern Recognition. Cham: Springer International Publishing, 2022: 560-576.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Highlights in Science, Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







