PCCNet: A Few-Shot Patch-wise Contrastive Colorization Network

Publication date

2023-12-29

Authors

Liu, Xiaying
Yang, Ping
Telea, AlexandruORCID 0000-0003-0750-0502ISNI 0000000041071164
Kosinka, Jiri
Wu, Zizhao

Editors

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

taverne

Abstract

Few-shot colorization aims to learn a model to colorize images with little training data. Yet, existing models often fail to keep color consistency due to ignored patch correlations of the images. In this paper, we propose PCCNet, a novel Patch-wise Contrastive Colorization Network to learn color synthesis by measuring the similarities and variations of image patches in two different aspects: inter-image and intra-image. Specifically, for inter-image, we investigate a patch-wise contrastive learning mechanism with positive and negative samples constraint to distinguish color features between patches across images. For intra-image, we explore a new intra-image correlation loss function to measure the similarity distribution which reveals structural relations between patches within an image. Furthermore, we propose a novel color memory loss that improves the accuracy of the memory module to store and retrieve data. Experiments show that our method allows the correctly saturated color to spread naturally over objects and also achieves higher scores in quantitative comparisons with related methods.

Keywords

Taverne

Citation

Liu, X, Yang, P, Telea, A, Kosinka, J & Wu, Z 2023, PCCNet: A Few-Shot Patch-wise Contrastive Colorization Network. in Advances in Computer Graphics : 40th Computer Graphics International Conference, CGI 2023, Shanghai, China, August 28–September 1, 2023, Proceedings, Part II. Lecture Notes in Computer Science, vol. 14496, Springer Nature, pp. 349-361. https://doi.org/10.1007/978-3-031-50072-5_28