Introducing MAX— Model Asset Exchange
Tags: ibm, machinelearning, modelassetexchange
Published: 2019-06-17 17:22:06

---
title: Introducing MAX— Model Asset Exchange
published: true
tags: ibm,machine-learning,model-asset-exchange
canonical_url: 
---

![](https://cdn-images-1.medium.com/max/1024/1*E99n0jgH4eL9rpfyFELN5Q.png)

**_Data Science is about learning_**. I don’t mean supervised learning, unsupervised learning, reinforcement learning or transfer learning ! I mean **_LEARNING_**  ! From books. From code. From your colleagues and friends. From stackoverflow ! You are constantly learning and improving your skill set. New models and breakthroughs are being announced at a faster rate than ever. As data scientists, you need to be aware of what is going on in this field and stay on top of the latest developments. IBM has a few open source projects that I want to write about that will help you keep up to date. We will look MAX or Model Asset Exchange in this post.

![](https://cdn-images-1.medium.com/max/490/1*ytBdCoJZcGBZ-igTzjvdsw.gif)<figcaption>Learning</figcaption>

MAX is a repository of open source Machine Learning and Deep Learning models developed by my colleagues and friends at IBM. They include topics ranging from object recognition, pose detector, audio analysis and age estimator. The team puts out a new model every now and then. So what’s the big deal ?

> You can clone, fork, improve upon, provide feedback and learn from these models ! You LEARN ! You learn how to make one yourself and make it usable ! You learn why it works well. You learn why some it does not work well and more importantly why it does not work with certain inputs.

My dear friend and colleague [Patrick Titzler](https://medium.com/u/df9e907db0b1) gave a talk in San Francisco recently on MAX and showed us how to use Node-RED to quickly test some of these models. I met [Ayush](https://www.instagram.com/throughshutter/) at the same meetup. Ayush is using two models from MAX to facilitate his everyday hobby — photography. I will save that for another post later. Let’s look at my favorite MAX models …

#### [Object Detector](https://developer.ibm.com/exchanges/models/all/max-object-detector?cm_mmc=OSocial_Blog-_-Developer_IBM+Developer-_-WW_WW-_-ibmdev-OInfluencer-Medium-USL-ibm-max-object-detector&cm_mmca1=000037FD&cm_mmca2=10010797)

This model recognizes the objects present in an image from the 80 different high-level classes of objects in the COCO Dataset. This problem has been solved for most part and if the framework/platform you are using does not do well with the default results, try creating a custom classifier (insert url) with Watson Visual Recognition. As an example, I gave the leading visual recognition APIs an image of Raspberry Pi and they mostly came back with “computer chip”, “mother board” or “electronic”. Those are all amazing results, but I wanted more. I was able to train a custom classifier using Watson to tell me with high confidence if the picture was “Raspberry Pi Model A” or “Raspberry Pi Model B” 😳. Pretty cool stuff ! You can read about the customer classifier in this [medium post](https://dev.to/lidderupk/watson-visual-recognition--custom-models-15go). That being said, this open source model still makes for a great learning resource. You can also try these patterns in Node-RED, more coming on this option in the next post ! Pretty cool that it got the bicycle just with what was visible in the picture ! The bicycle is hanging upside down in my room 🆒 !

![](https://cdn-images-1.medium.com/max/1024/1*VIdcctKY4glS0IEWGMQJ4g.png)<figcaption>Node-RED for MAX</figcaption>

#### [Facial Age Estimator](https://developer.ibm.com/exchanges/models/all/max-facial-age-estimator?cm_mmc=OSocial_Blog-_-Developer_IBM+Developer-_-WW_WW-_-ibmdev-OInfluencer-Medium-USL-ibm-max-age-estimator&cm_mmca1=000037FD&cm_mmca2=10010797)

This model detects faces in an image, extracts facial features for each face detected and finally predicts the age of each face.

This is my favorite by far because it gets me younger every time :). At first, I was quite annoyed that IBM would put out a model that did not do as well as I expected it to. Sometimes I shave and other times I have a stubble. It gives me a different result in day light vs inside a dimly lit conference hall. But then I realized that these are all learning opportunities for me. Questions that we need to ask of each model. I started looking at the training data and quickly realized that unless I am in Hollywood and have five lbs of makeup on, it wont be able to guess my age. The training data is IMDB imageset that you can [find here](https://developer.ibm.com/exchanges/models/all/max-facial-age-estimator?cm_mmc=OSocial_Blog-_-Developer_IBM+Developer-_-WW_WW-_-ibmdev-OInfluencer-Medium-USL-ibm-max-age-estimator&cm_mmca1=000037FD&cm_mmca2=10010797). We will look at this dataset closely in an upcoming blog post.

[IMDB-WIKI - 500k+ face images with age and gender labels](https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/)

We Now have an [IBM code pattern](https://developer.ibm.com/patterns/estimate-ages-for-detected-human-faces?cm_mmc=OSocial_Blog-_-Developer_IBM+Developer-_-WW_WW-_-ibmdev-OInfluencer-Medium-USL-max-estimate-age&cm_mmca1=000037FD&cm_mmca2=10010797) that will help you create a web application that uses this model ! These world leaders are awfully young !

![](https://cdn-images-1.medium.com/max/1024/1*nos_L2nOT37mr1snpxLh7Q.png)<figcaption>G-7 leaders</figcaption>

It does fairly well with my image, only off by two … I will let you guess in which direction.

![](https://cdn-images-1.medium.com/max/1024/1*8u0DswIGrLub0HC_wQEqJQ.png)<figcaption>Upkar Lidder</figcaption>

#### [Image Caption Generator](https://developer.ibm.com/exchanges/models/all/max-image-caption-generator?cm_mmc=OSocial_Blog-_-Developer_IBM+Developer-_-WW_WW-_-ibmdev-OInfluencer-Medium-USL-ibm-max-image-caption&cm_mmca1=000037FD&cm_mmca2=10010797)

This is the model Ayush was using to generate captions for his Instagram account. By the way, you can follow him here: [https://www.instagram.com/throughshutter](https://www.instagram.com/throughshutter/)

This model generates captions from a fixed vocabulary that describe the contents of images in the COCO Dataset. Even though the training dataset is limited (80 object categories), it does pretty well. Here is an example

![](https://cdn-images-1.medium.com/max/950/1*SqfWTFfphEaOn2SjU4Y4AA.png)<figcaption><strong><em>a man in a suit talking on a cell phone</em></strong></figcaption>

> **_A man in a suit talking on a cell phone_**

The caption says **_a man in a suit talking on a cell phone._** That is not bad at all ! There are plenty of other models you can try on MAX. But let’s look at how you can use Node-RED to quickly test a few of these. The MAX team has created some assets to help us out. If you have never used Node-RED before, get ready to fall in love 💕.

#### [Audio Classifier](https://ibm.biz/BdzPh9)

This one is so much fun. _This model recognizes a signed 16-bit PCM wav file as an input, generates embeddings, applies_ [_PCA transformation/quantization_](https://github.com/tensorflow/models/tree/master/research/audioset#output-embeddings)_, uses the embeddings as an input to a multi-attention classifier and outputs top 5 class predictions and probabilities as output._ WHAT 🤯 !! Basically, it identifies sounds and noise. The data is coming from [AudioSet](https://research.google.com/audioset/ontology/index.html). I am building some cool demos and games to use this model. Stay tuned !

![](https://cdn-images-1.medium.com/max/1024/1*m7St2oLWP1Gm2HuZoOPtQg.png)

#### [Human Pose Estimator](https://ibm.biz/BdzPhC)

I had a lot of fun with this one at a recent data science workshop ! This model detects humans and their poses in a given image. The model first detects the humans in the input image and then identifies the body parts, including nose, neck, eyes, shoulders, elbows, wrists, hips, knees, and ankles. Next, each pair of associated body parts is connected by a pose line.

![](https://cdn-images-1.medium.com/max/1024/1*x69Jto9UfnwN9MFk_fnCzw.png)<figcaption>Human Pose Estimator</figcaption>

Those are some of my favorite models. There are lots more in the Model Asset Exchange. [Give them a try and let me know which ones you like](https://ibm.biz/BdzPhV) ! I have some more posts coming up on how to use/deploy [some of these models](https://ibm.biz/BdzPhV).

[Max Katz](https://medium.com/u/bf01a11701fe), sorry for the confusion in advance :). I will write a separate post to introduce you ! [Patrick Titzler](https://medium.com/u/df9e907db0b1), thank you for the wonderful meetup ! [Gabriela de Queiroz](https://medium.com/u/a66cd0d81fb9) and Simon, thank you for demoing MAX at the [IBM AI-ML Summit](https://aiml-developer-summit.splashthat.com/) in San Francisco.