Indico Data receives top position in Everest Group's Intelligent Document Processing (IDP) Insurance PEAK Matrix® 2024
Read More
  Everest Group IDP
             PEAK Matrix® 2022  
Indico Named as Major Contender and Star Performer in Everest Group's PEAK Matrix® for Intelligent Document Processing (IDP)
Access the Report

BLOG

Regressor Based Image Stylization

March 20, 2015 | Image Data Use Case, Machine Learning, Tutorials

Back to Blog

We’re happy to showcase a side project from our Head of Research, Alec Radford. Using regression based machine learning techniques, he’s recently released an open-source image stylization library, stylize, for Python. Feel free to check out the repo and play with the code there!
Here’s what he has to say about it:

Inspired by the various projects implementing polygonal stylization of images via blends of genetic algorithms and hill climbing and Andrej Karpathy’s rephrasing of the problem in a machine learning framework.

Whereas genetic algorithm and hill climbing approaches can take hours, stylize runs in seconds with much greater flexibility and higher fidelity when desired.

 


Usage (example.py has more detail):

from stylize import render
from scipy.misc import imread
image = imread('image.jpg')
defaults = render(image)

 

Our Test Subject, my cat IggyIggy the Cat

 

Default stylizationDefault stylization

render(image)

 


 

AbstractAbstract

render(image,depth=4)

 

SmoothSmooth

render(image,iterations=25)

 

More DetailMore Detail

render(image,ratio=0.00005)

 

Less DetailLess Detail

render(image,ratio=0.001)

 


 

Visualizing the Process

Iggy the Stylized CatHow it Worksstylize

is currently based off of regression trees and an ensembled version of that model, the random forest regressor. Regression trees work by recursively partitioning (“splitting”) their input feature space and assigning associations to those partitions (such as colors). At each frame the model splits every partition in half again until hitting its minimum partition size.

[addtoany]

Increase intake capacity. Drive top line revenue growth.

[addtoany]

Unstructured Unlocked podcast

April 10, 2024 | E44

Unstructured Unlocked episode 44 with Tom Wilde, Indico Data CEO, and Robin Merttens, Executive Chairman of InsTech

podcast episode artwork
March 27, 2024 | E43

Unstructured Unlocked episode 43 with Sunil Rao, Chief Executive Officer at Tribble

podcast episode artwork
March 13, 2024 | E42

Unstructured Unlocked episode 42 with Arthur Borden, VP of Digital Business Systems & Architecture for Everest and Alex Taylor, Global Head of Emerging Technology for QBE Ventures

podcast episode artwork

Get started with Indico

Schedule
1-1 Demo

Resources

Blog

Gain insights from experts in automation, data, machine learning, and digital transformation.

Unstructured Unlocked

Enterprise leaders discuss how to unlock value from unstructured data.

YouTube Channel

Check out our YouTube channel to see clips from our podcast and more.
Subscribe to our blog

Get our best content on intelligent automation sent to your inbox weekly!