logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dlmodel_source - create a structured deep learning model directory

Description

dlmodel_source  helps  to create a structured deep learning (DL) model directory via CLI. Please refer to
       the specification section below for more details.

       The structured directory will be created in /tmp.

       Questions for collecting model information:

       Package name
              The name of the DL package, e.g. inception.

       Package version
              The version of the DL package, e.g. 3.

       Modle filepath
              Absolute or relative path of the model file.

       Label filepath
              Absolute or relative path of the label file.

       Config name
              Name of the config data source (see config filepath below). If there is not any config,  leave  it
              blank.

       Config filepath
              Absolute or relative path of the config file.

       Inference engine
              The inference engine supporting the DL model's format.

Metadata Format Of Model Package

       Metadata, meta.json, describes all the details in the structured model directory.

       Example of meta.json

           # Note: model directory name is fight-detection-1.0.0
           {
               "name": "fight-detection",
               "version": "1.0.0",
               "inference-engine": "tensorflow",
               "model": "model.pb",
               "label": "labels.txt",
               # optional configs
               "config": {
                   "<optional-key>": "<optional-value>",
                   "<optional-key>": "<optional-value>",
                   ...
               },
               "checksums-sha256": {
                   "model.pb": "<sha256sum>",
                   "labels.txt": "<sha256sum>",
                   "<optional-file-path>": "<sha256sum>",
                   ...
               }
           }

Model Directory Structure

       Example of a structured DL model directory:

           <modelname-version>
           |-- <model-file>
           |-- <label-file>
           |-- <optional-config-files>
           |-- LICENSE    # optional currently
           `-- meta.json

Name

       dlmodel_source - create a structured deep learning model directory

See Also

dlmodel2deb(1)

DLMobelBox                                        October 2017                                 DLMODEL_SOURCE(1)

Synopsis

dlmodel_source

See Also