> ## Content Index
> Fetch the complete content index at: https://blog.maxg.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Colorizing Infrared Images With AI, Using Photoshop and DeOldify
- URL: https://blog.maxg.io/colorizing-infrared-images-with-photoshop/
- Published: 2022-05-19T16:00:00.000Z
- Updated: 2022-05-19T16:00:00.000Z
- Description: Colorizing 850NM IR images with Machine Learning works better than expected, and Photoshop does much worse than expected.
- Author: MTG
- Tags: IR, Mamiya, phase one, Achromatic, AI, Colorization, Machine Learning, #Import 2026-07-28 09:30

I really enjoy the look of infrared images in black and white - the clouds have much more contrast, the effect of the apthoshere is reduced so the image is sharper, and many things absorb and reflect IR light differently. One question I have had for awhile is if a dedicated monochrome image sensor - one with no bayer filter - would have accepable color resolution when using AI to colorize the image. One easy way to try this out was Photoshop's newish neural filters, one of which is colorization. I am not sure what algorithm they use specifically, but I do like the fact it supports images of any resolution. 

Many github repos for colorization are limited to images of a certain preset size, though [DeOldify](https://github.com/jantic/DeOldify?ref=blog.maxg.io) does work for images of any size if you have enough CPU/GPU memory. Using the "Artistic" model, I colorized each of the images below to compare Photoshop's algorithm. 

Images were processed at their full \~100MP resolution before downscaling to 2048px for posting here, for both Photoshop and DeOldify. It used a lot of memory 😢. Images were taken with a Phase One IQ3 100 Achromatic Digital Back, mounted on a Mamiya RZ67 with the 350mm f5.6 APO lens, plus a 850NM IR pass filter. Only the electronic shutter was used, and the lens was at F8-16 - if I remember correctly. 

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_1.jpg)

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_2-1.jpg)

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_DeOldify_fixed_1.jpg)

Automatic colorization in Photoshop - works fairly well! It is a little too purple in the clouds, but otherwise the scene is plausible. The last image is colorized with DeOldify, and I actually prefer the colorization a lot to Photoshops, it is very realistic and still has interesting colors. 

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_4-1.jpg)

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_5-2.jpg)

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_DeOldify_fixed_3.jpg)

This image worked very well, with some minor exceptions. The very white tree in IR is still white/purple, and there is some purple mis-colorization throughout. DeOldify (the last image again) has a much more conservative colorization than Photoshop, but has less purple over saturation. 

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_3-2.jpg)

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_6-1.jpg)

![](https://storage.ghost.io/c/0c/14/0c14ba88-461e-47d0-9a84-3fa42b8e70e2/content/images/2022/05/IR_COLOR_DeOldify_fixed_2.jpg)

This one I had to guide with an anchor color for the cloud in the top right, as it was far to green. This colorization is okay, but the center cloud line area is implausibly blue. DeOldify has a much better colorization for this image in my opinion, it looks very natural if slightly aliased in places.

Overall, I think DeOldify is actually much better than Photoshop, at least for these images. This is a slightly more difficult task than normal monochrome to RGB colorization in my opinion, because all of these images are shot with an 850NM IR Filter, so only light that is longer than 850NM in wavelength can be recorded by the image sensor. Do these images have less data for colorization algorithms utilize than a monochrome image taken across the entire visible spectrum? Or is the content and luminance of the image enough to imagine plausibly correct colors? Photoshop and Deoldify probably do not have any color IR images in their training datasets; there is also the question of how to properply map the colors from the IR band.