A Swedish machine learning researcher named Emil Wallner has released a free web tool called Palette.fm that automatically colorizes black-and-white photos using AI. After uploading a photo, users can choose a color filter or refine the colors using a written text description.
Palette.fm uses a deep learning model to classify images, which guides its initial guesses for the colors of objects in a photo or illustration. “I’ve made a custom AI model that uses the image and text to generate a colorization,” Wallner wrote in a message to Ars. “One model creates the text and the other takes the image and the text to generate the colorization.”
After you upload an image, the site’s sleek interface provides an estimated caption (description) of what it thinks it sees in the picture. If you don’t like any of the preset color filters, you can click the pencil icon to edit the caption yourself, which guides the colorization model using a text prompt.
To test it, we took a photo of a small pumpkin and removed the color using Photoshop. Then we uploaded the black-and-white version and experimented with selecting the pre-made filters that Palette.fm provides. Once we found a good filter, we edited the caption to refine the colors by describing the objects in the scene. For example, Palette.fm originally thought the pumpkin was a “claw” and didn’t recognize the sidewalk. But once we put those terms in the written prompt, the colors made more sense. We further refined the image later (not pictured in the example below) by specifying “green leaves” in the background.
For now, Palette.fm is available as a free service, but Wallner plans on adding a paid option. The site processes the images online, in the cloud. As far as the privacy of the uploaded photos is concerned, the Palette.fm site reads, “We don’t store your images.” But as with any cloud service, take that with a grain of salt regarding private photos. Refreshingly, Palette.fm does not require any kind of user account registration at the moment.
So far, Palette.fm has delighted people on Hacker News who used the tool to colorize photos of beloved relatives, historical photographs, and more. A variation of Wallner’s colorization technology has also been available as a bot on Twitter since late last year. Have fun colorizing.