Cargando…
An improved defocusing adaptive style transfer method based on a stroke pyramid
Image style transfer aims to assign a specified artist’s style to a real image. However, most existing methods cannot generate textures of various thicknesses due to the rich semantic information of the input image. The image loses some semantic information through style transfer with a uniform stro...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10124845/ https://www.ncbi.nlm.nih.gov/pubmed/37093872 http://dx.doi.org/10.1371/journal.pone.0284742 |
_version_ | 1785029919135236096 |
---|---|
author | Cao, Jianfang Chen, Zeyu Jin, Mengyan Tian, Yun |
author_facet | Cao, Jianfang Chen, Zeyu Jin, Mengyan Tian, Yun |
author_sort | Cao, Jianfang |
collection | PubMed |
description | Image style transfer aims to assign a specified artist’s style to a real image. However, most existing methods cannot generate textures of various thicknesses due to the rich semantic information of the input image. The image loses some semantic information through style transfer with a uniform stroke size. To address the above problems, we propose an improved multi-stroke defocus adaptive style transfer framework based on a stroke pyramid, which mainly fuses various stroke sizes in the image spatial dimension to enhance the image content interpretability. We expand the receptive field of each branch and then fuse the features generated by the multiple branches based on defocus degree. Finally, we add an additional loss term to enhance the structural features of the generated image. The proposed model is trained using the Common Objects in Context (COCO) and Synthetic Depth of Field (SYNDOF) datasets, and the peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) are used to evaluate the overall quality of the output image and its structural similarity with the content image, respectively. To validate the feasibility of the proposed algorithm, we compare the average PSNR and SSIM values of the output of the modified model and those of the original model. The experimental results show that the modified model improves the PSNR and SSIM values of the outputs by 1.43 and 0.12 on average, respectively. Compared with the single-stroke style transfer method, the framework proposed in this study improves the readability of the output images with more abundant visual expression. |
format | Online Article Text |
id | pubmed-10124845 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-101248452023-04-25 An improved defocusing adaptive style transfer method based on a stroke pyramid Cao, Jianfang Chen, Zeyu Jin, Mengyan Tian, Yun PLoS One Research Article Image style transfer aims to assign a specified artist’s style to a real image. However, most existing methods cannot generate textures of various thicknesses due to the rich semantic information of the input image. The image loses some semantic information through style transfer with a uniform stroke size. To address the above problems, we propose an improved multi-stroke defocus adaptive style transfer framework based on a stroke pyramid, which mainly fuses various stroke sizes in the image spatial dimension to enhance the image content interpretability. We expand the receptive field of each branch and then fuse the features generated by the multiple branches based on defocus degree. Finally, we add an additional loss term to enhance the structural features of the generated image. The proposed model is trained using the Common Objects in Context (COCO) and Synthetic Depth of Field (SYNDOF) datasets, and the peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) are used to evaluate the overall quality of the output image and its structural similarity with the content image, respectively. To validate the feasibility of the proposed algorithm, we compare the average PSNR and SSIM values of the output of the modified model and those of the original model. The experimental results show that the modified model improves the PSNR and SSIM values of the outputs by 1.43 and 0.12 on average, respectively. Compared with the single-stroke style transfer method, the framework proposed in this study improves the readability of the output images with more abundant visual expression. Public Library of Science 2023-04-24 /pmc/articles/PMC10124845/ /pubmed/37093872 http://dx.doi.org/10.1371/journal.pone.0284742 Text en © 2023 Cao et al https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. |
spellingShingle | Research Article Cao, Jianfang Chen, Zeyu Jin, Mengyan Tian, Yun An improved defocusing adaptive style transfer method based on a stroke pyramid |
title | An improved defocusing adaptive style transfer method based on a stroke pyramid |
title_full | An improved defocusing adaptive style transfer method based on a stroke pyramid |
title_fullStr | An improved defocusing adaptive style transfer method based on a stroke pyramid |
title_full_unstemmed | An improved defocusing adaptive style transfer method based on a stroke pyramid |
title_short | An improved defocusing adaptive style transfer method based on a stroke pyramid |
title_sort | improved defocusing adaptive style transfer method based on a stroke pyramid |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10124845/ https://www.ncbi.nlm.nih.gov/pubmed/37093872 http://dx.doi.org/10.1371/journal.pone.0284742 |
work_keys_str_mv | AT caojianfang animproveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT chenzeyu animproveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT jinmengyan animproveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT tianyun animproveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT caojianfang improveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT chenzeyu improveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT jinmengyan improveddefocusingadaptivestyletransfermethodbasedonastrokepyramid AT tianyun improveddefocusingadaptivestyletransfermethodbasedonastrokepyramid |