AWS DeepLens
Developer Guide

Model Class Constructor

Creates an awscam.Model object to run inference and to parse the result.

Request Syntax

import awscam model = awscam.Model(model_topology_file, loading_config)

Parameters

  • model_topology_file—Required. A path to an optimized model (.xml) file output by the mo.optimize method.

    Models supported: Classification, Segmentation and Single Shot MultiBox Detector (SSD)

    Note

    When deploying an Amazon SageMaker-trained SSD model, you must first run deploy.py (available from https://github.com/apache/incubator-mxnet/tree/master/example/ssd/) to convert the model artifact into a deployable mode.

  • loading_config (dict)—Required. Specifies whether the model should be loaded into the GPU or CPU. The format of this parameter is a dictionary.

    Permitted values:

    • {"GPU":1}—Loads the model into the GPU

    • {"GPU":0}—Loads the model into the CPU