Loading Models

Using Models From Nexus

After your model has been trained on Nexus, you can locate the model key and project secret. This will be used by Datature Hub to load your model from Nexus.

You can then run Edge using the following command:

datature-edge
    --model_key MODEL_KEY
    --project_secret PROJECT_SECRET
    --model_format MODEL_FORMAT # (tf, tflite)
    --input_shape INPUT_SHAPE # <WIDTH>,<HEIGHT>

Using Your Own Custom Models

If you want to load your own custom model, you can do so by enabling the --local flag and providing the path to your model file and the path to your label file. The full command to run Edge is shown below:

datature-edge
    --local
    --model_path MODEL_PATH
    --label_path LABEL_PATH
    --model_format MODEL_FORMAT # (tf, tflite)
    --input_shape INPUT_SHAPE # <WIDTH>,<HEIGHT>

๐Ÿ“˜

The arguments listed in the above code blocks are required to prevent any ambiguity, please check your model specifications on Nexus before proceeding.