Use a Custom Model

In order to use your own custom model, first upload the model to the model catalog. Although your model lives in our model catalog, it will be private and only accessible by you.

Upload your model to the Model Catalog

Using your model

Once your model is in the catalog, it can be installed just like any other model.

  1. Navigate to your app directory and run the following command in the terminal:

     $ aai app models add [username/modelName]
    

    Where [username] is your alwaysAI username, and [modelName] is the name you gave the model when you uploaded it. Here’s an example:

     $ aai app models add alwaysai/MyFirstModel
    
  2. Update the ObjectDetection instantiation in app.py to use the new model:

     obj_detect = ObjectDetection("username/modelName")
    
  3. Deploy the updated application to your target device:

     $ aai app deploy
    
  4. Start the application:

     $ aai app start
    
  5. (Optional) If you have a previous model in the app, you can remove it from your configuration:

     $ aai app models remove alwaysai/mobilenet_ssd