Gray level image coloring method based on VAE-GAN and mixed density network
A VAE-GAN, grayscale image technology, applied in the field of computer vision, can solve the problems of single coloring result, the consistency of coloring structure cannot be guaranteed, etc., to improve the coloring quality, the coloring results are vivid and diverse, and the effect of suppressing color overflow
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] This embodiment provides a grayscale image coloring method based on VAE-GAN and mixed density network, such as figure 1 shown, including the following steps:
[0048] S1. Transform the color image in the data set from the RGB color space to the Lab color space, and obtain a grayscale image. Here, in this embodiment, the image is first scaled to a uniform size of 64×64, and then the color space conversion is performed.
[0049] S2. Construct a VAE-GAN model, make the VAE-GAN learn the ab channel color domain representation of the color image in the data set, and save the learned ab channel color domain representation.
[0050] Such as figure 2 As shown, the VAE-GAN model includes two main parts: VAE part and GAN part. Among them, the main function of VAE is to obtain the characteristics of the color gamut by reconstructing the input color gamut, while the traditional VAE model uses the reconstruction loss of the pixel-by-pixel error square in the training process, re...
Embodiment 2
[0081]This embodiment provides a grayscale image coloring device based on VAE-GAN and a mixed density network, which can implement the grayscale image coloring method in Embodiment 1. The device comprises a sequentially connected color space transformation module, a VAE-GAN model generation module, a mixed density network model generation module and a coloring module, and the VAE-GAN model generation module is also connected with the color space transformation module and the coloring module.
[0082] Wherein, the color space conversion module is used to transform the color image in the data set from the RGB color space to the Lab color space, and obtain a grayscale image;
[0083] The VAE-GAN model generation module is used to construct the VAE-GAN model, so that the VAE-GAN learns the ab channel color domain representation of the color image in the data set, and saves the learned ab channel color domain representation;
[0084] The mixed density network model generation modul...
Embodiment 3
[0088] This embodiment provides a computer-readable storage medium, which stores a program. When the program is executed by a processor, the grayscale image coloring method based on VAE-GAN and mixed density network in Embodiment 1 is implemented, specifically:
[0089] S1, transform the color image in the data set from the RGB color space to the Lab color space, and obtain a grayscale image;
[0090] S2. Construct the VAE-GAN model, make the VAE-GAN learn the ab channel color domain representation of the color image in the data set, and save the learned ab channel color domain representation;
[0091] S3. Construct a mixed density network model, use the grayscale image obtained in step S1 as model input, use the saved ab channel color domain representation as a label, and make the mixed density network model learn a mixed Gaussian distribution as a multimodal distribution of color domain representation ;
[0092] S4. For the grayscale image to be tested, first input the gray...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com