DLMODEL_SOURCE(1)

πŸ’– DLMODEL_SOURCE(1) πŸ’–

okay so bestie, welcome to dlmodel_source β€” yes, the manual page name is DLMODEL_SOURCE(1) and no, we are not being normal about it. this is a User Command and it's gonna change your whole directory game. periodt.


✨ NAME ✨

dlmodel_source β€” create a structured deep learning model directory. it's giving organized. it's giving tidy. it's giving "my models live in a folder that makes sense" energy. πŸŽ€


🌸 SYNOPSIS 🌸

dlmodel_source

that's it. no flags. no args. just vibes and questions. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

dlmodel_source helps you create a structured deep learning (DL) model directory via CLI. that's the whole point, that's the assignment. if you want the full tea, scroll down to the specification section below. πŸ‘‘

the structured directory gets created in /tmp.

then it's interview time, bestie. it's gonna ask you questions to collect all your model info:

  • Package name β€” the name of the DL package, e.g. inception.
  • Package version β€” the version of the DL package, e.g. 3.
  • Modle filepath β€” the absolute or relative path of the model file. (and yes, that's literally how it's spelled up in here, we are simply not touching it πŸ™ˆ)
  • Label filepath β€” the absolute or relative path of the label file.
  • Config name β€” the name of the config data source (peep config filepath below for the lore). if there isn't any config, just leave it blank. no config, no problem. 🫢
  • Config filepath β€” the absolute or relative path of the config file.
  • Inference engine β€” the inference engine that supports the DL model's format.

🌈 MODEL DIRECTORY STRUCTURE 🌈

here's an example of what a structured DL model directory looks like, and honestly? iconic.

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

πŸŽ€ METADATA FORMAT OF MODEL PACKAGE πŸŽ€

the metadata, meta.json, describes all the details in the structured model directory. it's the main character of the folder ngl.

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>",
        ...
    }
}

πŸ’œ SEE ALSO πŸ’œ

  • dlmodel2deb(1) β€” go look at it, bestie, it's the sequel. ✨

and that's the whole page, babes. this masterpiece was brought to you by DLMobelBox, dated October 2017 β€” yeah, it's been slaying since 2017 and it still eats. πŸ’…πŸ‘‘πŸ¦‹