Image making · Research feature

Deep transfer learning based image colorization using VGG19 and CLAHE

A deep learning method using VGG19 and CLAHE improves colorization of grayscale images, showing better quality in contrast and structural similarity than prior techniques.

Adapted from research by Neelanjan Ghosh, Gouranga Mandal.

Journal publication · 2026-02-18 · Attribution & reuse
In this article
Editorial illustration of a color study.

Editor’s introduction

The study evaluates a deep transfer learning framework that leverages a pre-trained VGG19 network to extract texture and semantic features from grayscale images, followed by CLAHE to enhance contrast and color vibrancy. Performance is measured using PSNR, SSIM, and perceptual metrics that align with human visual perception under common distortions. Results show improved color fidelity and structural similarity across datasets including ImageNet, COCO-Stuff, and Places365. The approach demonstrates strong performance in pixel-level colorization through regression and soft-encoding branches, with benefits from multi-skip connections and small kernels that reduce artifacts. However, the method performs poorly when input images have extreme intensity variations or are very dark or very bright, and color outputs may appear unnatural in such cases.

Introduction

In computer vision, converting grayscale images into colorized versions remains a crucial and challenging task, mainly because a single intensity value might represent a wide range of useful color options. Enriching training data for different machine learning tasks, improving archive images, film material, and medical imaging are just a few of the many uses for the capacity to generate true colors.

Earlier approaches of image colorization mostly relied on manual intervention or direction based on references. Through the use of smoothness restrictions, users were able to apply color suggestions or “scribbles” to the image using optimization-driven techniques like those first presented by Levin et al.. Similarly, via blurring local or global feature matching, exemplar-driven approaches transferred color information from reference images to grayscale inputs. These approaches produced realistic results, but they were less dependable when the inputs were vague, sparse, or contextually incompatible because they mostly depended on thorough human annotations or well selected reference photos.

Automatic image colorization has advanced greatly since the advent of convolutional neural networks (CNNs). A CNN-based system that converts luminance values into chrominance components within the CIE Lab color space was proposed by Zhang et al., demonstrating a high capacity to capture semantic information. Building on this, Iizuka et al. created a dual-pathway architecture that enhances color transform accuracy by combining fine-grained local information with global scene context. Later, by learning to generate more varied and natural color distributions, generative adversarial networks (GANs) significantly improved visual sanity.

Even with these advancements, CNN-based model training from scratch requires large datasets and a lot of processing power. A solution is provided by deep transfer learning, which can reduce training weights while extracting powerful semantic and textural information for colorization by utilizing pre-trained models on massive datasets like ImageNet. For example, combining the perceptual loss functions with pre-trained backbones such as VGG or ResNet topologies improves performance,.

The strategic contributions of this article are as follows:We propose a CNN-based colorization framework that leverages deep transfer learning, using a pretrained backbone (VGG19) for semantic and texture feature extraction.Amalgamation of Contrast Limited Adaptive Histogram Equalization (CLAHE) acts as a post-processing step, producing very prominent color output image with perfect contrast adjustment.We conduct extensive experiments on benchmark datasets, demonstrating marked improvements over baseline models in PSNR, SSIM, and FID metrics.Unlike traditional models, our approach effectively balances low-level detail and high-level semantics by aggregating features across multiple backbone layers.The method generalizes well across domains, making it well-suited for various traditional tasks such as colorizing historical gray photos, colorization of medical scan images, etc.

This is how the rest of the paper is arranged: The work in guided, automatic, and transfer learning-based colorization is reviewed in Section “Literature review”. Our suggested architecture and strategy are described in Section “Proposed methodology”. The experimental configuration and output results are demonstrated in Section “Experimental results”. Limitations of the proposed method are discussed in Section “Limitation”. Finally, the conclusion and outline of future directions are described in Section “Conclusion and future scope”.

Literature review

Research in image colorization has undergone rapid evolution in the past five years (2020–2025), driven by deep learning, transformers, and human–AI collaboration. The literature study can broadly be grouped into three categories: (A) Hybrid Exemplar and Scribble-Based Methods, (B) Automatic Deep Learning Approaches, and (C) Transfer Learning and Efficient Architectures.

Hybrid exemplar and scribble-based methods

Xiao et al. established a cooperative deep colorization framework where nominal user doodles are broadcast to produce natural-colored photos. This method can effectively preserve the semantic consistency of an image during transformation from grayscale to a colored version and make it precise. Furthermore, Yuan et al. introduced an exemplary-conditioned attention framework. This framework can transform colors from a grayscale image input. In contrast to earlier exemplary-based approaches, this model handled semantic inconsistencies very effectively. It applies attention mechanisms across both global and local scene data.

Lee et al. familiarized a hybrid approach that combines user input with a pre trained features derived from large-scale vision models. Their procedure maps user-specified hints into a semantic feature space, which improves steadiness and decreases artifacts of color bleeding in various scenarios. Approaches of this kind mainly focus on balancing between manual controls and automated processing. This method is very useful for professional artists and heritage restoration specialists, where independent preference and accuracy are crucial.

Overall, the evolution of study in this area signifies a shift toward fully automated colorization, reducing the necessity for direct user involvement. However, interactive methods that incorporate user hints or exemplar references continue to play an important role in niche domains, where precise control and domain-specific preferences are essential.

Automatic deep learning approaches

Su et al. introduced contextual loss into CNN-based frameworks, arguing that conventional pixel-level losses often lead to desaturation. Their contextual loss improved semantic fidelity, producing visually pleasing results on natural scenes. Patel et al. advanced the field by using a GAN-based model enhanced with a style loss term, which apprehended global artistic styles and reduced the common “washed-out” effect seen in the prior CNN methods.

A significant revolution came with transformer-based models. Bahng et al. established a colorization transformer capable of modeling long-range dependencies called ColTran that captures local context. It empowered globally comprehensible color assignments and significantly beat the GANs on benchmark datasets. Kim et al. advanced this research work by adding a GAN–transformer-based hybrid model that combines the fine-grained sharpness achieved by GANs with the global contextual thoughtfulness of transformers. It carried enhancements in both perceptual practicality and operational accuracy.

Transfer learning and efficient architectures

Royer et al. verified that downstream colorization tasks, particularly in low-data regimes can significantly improve performance by using self-supervised pretraining on large-scale unlabeled datasets. Their results emphasized the role of pretraining as a substitute for labor-intensive dataset curation. Similarly, Zhang et al. proposed a ResNet-based transfer learning framework that unites perceptual loss, enabling faster convergence and better semantic alignment across various datasets.

Building on this, Liu et al. proposed a multi-scale VGG feature fusion strategy. By incorporating features from different layers of pretrained networks, their model preserved both global context and local details, resulting in improved sharpness and fewer artifacts. Rao et al. addressed the difficulties of deploying heavy GANs on mobile by presenting a model distillation method.

Enhancement-based methods

This evolution replicates a movement from experimental prototypes toward applied applications. Here, efficiency, scalability, and accessibility are considered crucial factors. Patel et al. used a GAN-based model enhanced with a style loss term, which apprehended global artistic styles and reduced the common “washed-out” effect seen in the prior CNN methods. Besides, there are multiple low light image enhancement methods,.

Transfer learning for feature extraction

To enhance semantic feature extraction, a transfer learning model is introduced. Pretrained models such as ResNet-50 and ResNet-101 provide robust object and scene-level priors, whereas VGG-based networks are fine-tuned for specific domains like facial attributes. This method allows the model to leverage earlier acquired visual features. It reduces training time and improves overall colorization accuracy. By employing dataset-specific transfer strategies, the network model can better align its feature illustrations with the semantic characteristics of the input images. The core part of this approach is transfer learning. It uses previously learned models that are trained on very large-scale datasets and applies them to a less labeled dataset for some new problems. Accumulating wide annotated colorization datasets is very rare and difficult. That’s why transfer learning is extremely beneficial in certain circumstances. The methodology starts with selecting an appropriate pre-trained CNN model, such as VGG or ResNet, and modifies it by adding layers accordingly to predict color information from grayscale inputs. A carefully curated dataset of grayscale images is considered for training with their corresponding color images. During the preliminary training stages, the pre-trained layers are frozen to reserve the learned visual representations, while the newly added layers are augmented for the colorization task.

CNN-based colorization network

The proposed colorization framework employs an encoder–decoder CNN architecture. The encoder extracts both global contextual information and local spatial features, while an attention-based fusion module emphasizes significant structures, including object edges, scene layouts, and facial regions. The decoder then reconstructs the chrominance channels through transposed convolutions, and skip connections are incorporated to retain fine-grained spatial details, mitigating information loss across network layers. This architecture ensures that the system adapts to diverse image domains, producing contextually coherent and visually realistic colorizations.

Training strategy

The training is performed in three stages. First, generic pretraining is conducted using large-scale datasets to establish general object and scene representations. In the second phase, fine-tuning is carried out on more specialized domains, such as small objects, enhancing detail. Finally, joint optimization across all datasets produces a robust, domain-generalized model. The learning process is adjusted using Adam from a preliminary learning rate of 1 × 10−4, scheduled dynamically using cosine annealing. The loss function combines pixel-wise mean squared error (MSE) with perceptual loss from VGG features, while adversarial loss further improves realism in generated colors.

Hypercolumn representation

For each pixel, features are obtained by collecting the outputs of units from multiple layers corresponding to that pixel’s location. While each CNN layer produces feature maps, subsampling and pooling operations cause these maps to differ in spatial resolution from the original input, making it unclear which units correspond to a given pixel. To address this, the feature maps are resized to match the input image dimensions using bilinear interpolation. The features from all or selected layers are then concatenated to form a single vector for each pixel, referred to as a hypercolumn.

There are various color models with three basic color channels, including RGB, Lab, HSL, and HSV, by which any color image can be represented. In the colorization task, it is crucial to preserve the actual luminance information of the original grayscale image while predicting the color components. The RGB space exhibits strong inter-channel correlations, meaning that changes to color components often affect image brightness, which is undesirable. To minimize such interference, a color space that reduces correlation between luminance and chrominance is preferred. The Lab color space is particularly suitable, representing images with three values: luminance (denoted by L), green–red axis (denoted by a), and blue–yellow axis (denoted by b). Lab covers the full range of colors visible to the human eye and has minimal correlation among its channels, making it ideal for colorization. In this work, the L luminance channel is taken as the input grayscale image, while the network predicts the matching “a” and “b” color channels.

Post-processing enhancement

After initial colorization, results are refined through Contrast Limited Adaptive Histogram-Equalization (CLAHE) is applied to the luminance channel to get prominent color and contrast adjustment. This technique improves local contrast, enhances edge sharpness, and balances tonal variations, producing visually appealing outputs across objects, scenes, and faces. The addition of this step ensures that the reconstructed images achieve both semantic fidelity and perceptual quality,.

Quantitative performance evaluation

For color images, these metrics were calculated for each channel, and the average value was reported. PSNR and SSIM were evaluated on output-colored images, providing measures of reconstruction fidelity and structural similarity between the ground truth and the colorized outputs. However, these no-reference similarity metrics capture perceptual quality effectively. This perceptual metric was employed, which evaluates the alignment of metric scores with human visual perception under common distortions, such as noise, photometric variations, blur, geometric warping, and compression. This is achieved by computing the cosine distance between normalized feature vectors extracted from the images.

For evaluating quality metrics, we relied on visual inspection to highlight both successful and unsuccessful colorization cases for comparison. Visual performance was assessed using images from the ImageNet, COCO-Stuff, and Places365 datasets. For testing, the first 500 images from the validation sets of each dataset were selected to evaluate the colorization results.

Limitation

Although, the proposed hybrid method is well efficient for colorization of gray image, it has some limitations. If, gray value or intensity values are not properly distributed in input image, then colorization will not be perfect. If input image consist of very high intensity across the image in most of the pixel then, the CLAHE will not work properly. Sometimes, the output color produced by proposed methods are not realistic and not looking natural. The colorization will not work properly in case of very dark and very bright input image.

Conclusion and future scope

This paper presented a deep transfer learning–based image colorization framework using VGG19 and CLAHE within an encoder–decoder architecture. By integrating global semantics from Places365 and local object–scene features from the COCO-Stuff dataset, the model achieved improved pixel-level colorization through regression and soft-encoding branches. Experiments on ImageNet, COCO-Stuff and Places365 datasets confirmed its effectiveness, yielding strong results in PSNR, RMSE, SSIM, and Pearson correlation. The study highlights the benefits of multi-skip connections, YUV color space, and small convolutional kernels in reducing artifacts and enhancing feature learning. The method is highly effective for restoring old historical photos and for coloring gray medical scan images. While the model demonstrates robust performance, challenges remain with complex textures, rare colors, and highly cluttered images, leading to occasional noise, mis-colorization, or inconsistency.

Future work will emphasize refining the color distribution model using multi-scale optimization and employing generative models for more realistic and diverse results. Experiments on larger and more diverse datasets will improve generalization across domains. Further exploration of alternative color spaces such as HSV, YCbCr, and CIE Lab may enhance performance. Additionally, deeper U-Net variants and optimized training strategies on high-performance hardware can accelerate learning and improve accuracy. These directions aim to overcome current limitations and advance the reliability of automatic image colorization in real-world applications.