• Laser & Optoelectronics Progress
  • Vol. 57, Issue 6, 061021 (2020)
Fei Pei, Jinfeng Liu*, and Xiaohe Li
Author Affiliations
  • College of Information Engineering, Ningxia University, Yinchuan, Ningxia 750021, China
  • show less
    DOI: 10.3788/LOP57.061021 Cite this Article Set citation alerts
    Fei Pei, Jinfeng Liu, Xiaohe Li. An Image Style Transformation Model Compression Algorithm for Mobile Terminal[J]. Laser & Optoelectronics Progress, 2020, 57(6): 061021 Copy Citation Text show less
    Overall structure of model iterative optimization style transformation algorithm
    Fig. 1. Overall structure of model iterative optimization style transformation algorithm
    Image style transformation network structure
    Fig. 2. Image style transformation network structure
    Network architecture before and after improvement. (a) Before improvement; (b) after improvement
    Fig. 3. 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
    Fig. 4. 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
    Fig. 5. Transformation scores of image with different styles after network model compression
    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 1. Number of network parameters at each layer
    LayerNumber of parametersRatio ofcompression /%
    BeforecompressionAftercompression
    Conv1777677760
    Conv218432184320
    Conv373728737280
    Res12949125324881.9
    Res22949125324881.9
    Res32949125324881.9
    Res42949125324881.9
    Res52949125324881.9
    Deconv173728737280
    Deconv218432184320
    Deconv3777677760
    Total167443236371278.3
    Table 2. Comparison of number of parameters before and after model compression
    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 3. Data related to the compressed model
    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
    Table 4. Test results at mobile terminal
    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