Laser & Optoelectronics Progress, Volume. 57, Issue 6, 061021(2020)

An Image Style Transformation Model Compression Algorithm for Mobile Terminal

Fei Pei, Jinfeng Liu*, and Xiaohe Li
Author Affiliations
  • College of Information Engineering, Ningxia University, Yinchuan, Ningxia 750021, China
  • show less
    Figures & Tables(9)
    Overall structure of model iterative optimization style transformation algorithm
    Image style transformation network structure
    Network architecture before and after improvement. (a) Before improvement; (b) after improvement
    Style transformation scores before and after network model compression. (a) Before compression; (b) after compression
    Transformation scores of image with different styles after network model compression
    • Table 1. Number of network parameters at each layer

      View table

      Table 1. Number of network parameters at each layer

      LayerNumber ofparametersRatio of numberof parameters /%
      Conv177760.4
      Conv2184321.1
      Conv3737284.4
      Res129491217.6
      Res229491217.6
      Res329491217.6
      Res429491217.6
      Res529491217.6
      Deconv1737284.4
      Deconv2184321.1
      Deconv377760.4
    • Table 2. Comparison of number of parameters before and after model compression

      View table

      Table 2. Comparison of number of parameters before and after model compression

      LayerNumber of parametersRatio ofcompression /%
      BeforecompressionAftercompression
      Conv1777677760
      Conv218432184320
      Conv373728737280
      Res12949125324881.9
      Res22949125324881.9
      Res32949125324881.9
      Res42949125324881.9
      Res52949125324881.9
      Deconv173728737280
      Deconv218432184320
      Deconv3777677760
      Total167443236371278.3
    • Table 3. Data related to the compressed model

      View table

      Table 3. Data related to the compressed model

      ModelBefore compressionAfter compressionCompressionratioSpeed-upratio
      Size /MBTime /msSize /MBTime /ms
      Wave21.169374.445904.561.51
      Feathers21.168514.453144.561.29
      Mosaic21.169504.444214.561.57
      Denoised21.144204.435714.561.23
    • Table 4. Test results at mobile terminal

      View table

      Table 4. Test results at mobile terminal

      BrandModelInstallationtime /sInitializationtime /sCPUusage /%
      HuaweiP10 Plus3.850.831.00
      HuaweiHonor 93.310.720.13
      HuaweiHonor 7X4.381.160.82
      360N5S5.710.971.07
      VivoV173CA5.151.561.78
      SonyXperia XA9.471.384.27
    Tools

    Get Citation

    Copy Citation Text

    Fei Pei, Jinfeng Liu, Xiaohe Li. An Image Style Transformation Model Compression Algorithm for Mobile Terminal[J]. Laser & Optoelectronics Progress, 2020, 57(6): 061021

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Image Processing

    Received: Sep. 11, 2019

    Accepted: Nov. 19, 2019

    Published Online: Mar. 6, 2020

    The Author Email: Jinfeng Liu (850683631@qq.com)

    DOI:10.3788/LOP57.061021

    Topics