How-to: Build Your Own Classifier
In this demo, we will see how we can build our own classifier for use in Appium.
Last updated
Was this helpful?
In this demo, we will see how we can build our own classifier for use in Appium.
Last updated
Was this helpful?
First, clone the repository located .
The training data provided with the project is organized as follows:
There is a training_images
directory that contains the training data.
Within the training_images
directory, there are several subdirectories.
Each subdirectory is named after a label. For example, there is a cart
subdirectory.
Each subdirectory contains example icons for the associated label, that have been collected across many applications
There is also a _negative
subdirectory that contains many example images of things that are not examples for any of the other labels (e.g., negative examples).
First, you will need to collect additional training data and manipulate the provided training data, either by:
Adding additional examples for any of the already provided labels,
Creating new subdirectories for new labels, and populating the new subdirectories with example images,
Deleting already provided labels or examples, or,
Adding more negative examples.
Once you are satisfied with the dataset, you may execute the training as follows:
After your classifier has finished training according to your provided parameters, two files will be created:
output/saved_model.pb
output/saved_model.pbtxt
To run your classifier just like we did under the sample_run
folder, we can simply replace the models under that folder.
Make sure you run through the steps under Demo 1: AI using Appium
first:
To use your classifier in place of the classifier provided by Test.ai out of the box, simply replace the models that are installed by the test-ai-classifier
node package:
Then, try using the classifier just like we did for Demo 1
.