基於標準化流的圖示上色風格控制
IconFlow: Style Control for Icon Colorization
摘要
在本研究,我們提出了 IconFlow,此模型能夠根據使用者指定的線稿和顏色風格產生平色圖示。我們使用監督式學習來訓練編解碼器網路,以線稿和參考圖示產生符合線稿結構及參考風格的彩色圖示。為加強泛化能力與生成品質,我們使用了逐像素解碼器、全域風格向量和結構一致性損失(content consistency loss),以減少封閉區域內的漸層和增加邊界顏色的不連續性。我們也訓練了一個條件式標準化流(Conditional Normalizing Flow),根據使用者指定的顏色風格以常態分布取樣風格向量,這種方法可以讓使用者控制產生的風格並產生多樣的著色結果。與之前使用生成對抗網路的著色方法相比,我們的方法能夠產生較高品質且多樣的圖示。我們和多個近期的自動著色和影像至影像轉換(Image-to-Image Translation)方法進行各種情況下生成結果的比較。我們的方法在定性與定量皮估上勝過目前最先進的方法。
In this study, we present IconFlow, a colorization network that generates flat-color icons according to user-specified line drawings and semantic colorization styles. Specifically, we train an encoder-decoder network in a supervised manner to map the paired contour images and style codes to flat-color icons. To enhance network generalization and the quality of icons, we adopt a pixelwise decoder, a global style code, and a contour loss to reduce color gradients at flat regions and increase color discontinuity at boundaries. Afterwards, we train a conditional normalizing flows network to sample style codes from a normal distribution according to user- specified colorization style. This conditional sampling enables users to control attributes and the decoder to generate diverse colorization results. Compared to previous colorization methods built upon conditional generative adversarial networks, our IconFlow enjoys the advantages of both high image quality and diversity. To evaluate its effectiveness, we compared the flat- color icons generated by our IconFlow and recent colorization and image-to-image translation methods on various conditions. Experiment results verify that our IconFlow outperforms state- of-the-arts qualitatively and quantitatively.