Skip to content

Instantly share code, notes, and snippets.

@johnwalicki
Last active June 19, 2019 04:20
Show Gist options
  • Save johnwalicki/fbf4fea94d931b308ab29dbbf11245d8 to your computer and use it in GitHub Desktop.
Save johnwalicki/fbf4fea94d931b308ab29dbbf11245d8 to your computer and use it in GitHub Desktop.
Watson Visual Recognition Custom Classifier

Overview

This flow builds a very simple web page / form that prompts the user to create a Watson Visual Recognition Custom Classifier. The web form requires a name for the custom classifier, prompts the user to upload a training set of >10 images of an object and >10 images of a negative training set.

The flow then uploads the images, creates two zip files and then calls the Watson Visual Recognition Custom Classifier API.

To test the Visual Recognition model, the form also optional prompts for an image URL to be analyzed.

To test the Visual Recognition model, the form also optional prompts for an image to upload to be analyzed.

Watson Visual Recognition Web Form Flow

Watson Visual Recognition Web Form

Prerequistes

Deploy on IBM Cloud Node-RED Starter Kit or Node-RED local

This flow will run in the IBM Cloud Node-RED Starter Kit or on a local instance of Node-RED. You will need to either bind the Watson Visual Recognition service to your IBM Cloud application or paste the Watson Visual Recognition API key into the Watson Visual Recognition nodes in the flow.

Testing your Watson Visual Recognition Custom Classifier model

  • Use the Node-RED web form at /visualrecognition to upload or link to test images.

Testing your Watson Visual Recognition Custom Classifier model

  • Open your Watson Visual Recognition instance
  • Click on Create a Custom Model Watson Visual Recognition Service
  • Scroll down to the Custom Models section and click on Test to open Watson Studio Watson Visual Recognition Custom Model
  • Click on the Test tab Watson Visual Recognition Custom Model Overview
  • Upload test images to validate your trained model Watson Visual Recognition Custom Model Test
View raw

(Sorry about that, but we can’t show files that are this big right now.)

@johnwalicki
Copy link
Author

WatsonVisualReco-flow-screenshot
WatsonVisualReco-SimpleWebApp
WatsonVisualReco-ServiceInstance
WatsonVisualReco-CustomModel
WatsonVisualReco-CustomModelTest
WatsonVisualReco-CustomModelOverview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment