Image colorization based on transformer
Abstract This paper presents a transformer-based method for colorizing grayscale image. By employing a deep architecture with stacked encoder-decoder layers, the model effectively captures intricate features, significantly improving its expressive capacity. The encoder primarily extracts features fr...
Saved in:
| Main Author: | |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
Nature Portfolio
2025-07-01
|
| Series: | Scientific Reports |
| Online Access: | https://doi.org/10.1038/s41598-025-05485-0 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Summary: | Abstract This paper presents a transformer-based method for colorizing grayscale image. By employing a deep architecture with stacked encoder-decoder layers, the model effectively captures intricate features, significantly improving its expressive capacity. The encoder primarily extracts features from the input grayscale image, while the decoder utilizes these features alongside the self-attention mechanism and contextual information to predict the corresponding $$a^*$$ and $$b^*$$ chrominance components in CIELAB color space, and combines the channel $$L^*$$ of the input image to achieve image colorization. To ensure the generated image mimics a real-life image in terms of pixel accuracy and visual quality, the algorithm employs a variety of loss functions. Experimental results demonstrate significant performance improvements in black and white image colorization. The generated images exhibit natural coloring and rich details, making them highly valuable in practical applications. |
|---|---|
| ISSN: | 2045-2322 |