Samsung / ONE

On-device Neural Engine
Other
429 stars 157 forks source link

[tools] Support connection info packaging on model2nnpkg #9802

Closed hseok-oh closed 1 year ago

hseok-oh commented 2 years ago

Previous issue: #9116

Let's support packaging with connection info on model2nnpkg.sh. (tools/nnpackage_tool/model2nnpkg/model2nnpkg.sh)

glistening commented 2 years ago

Let's define args to create the following connections.

$ cat nnpackage/examples/v1.3.0/two_tflites/metadata/MANIFEST 
{
  "major-version" : "1",
  "minor-version" : "3",
  "patch-version" : "0",
  "configs"       : [  ],
  "models"        : [ "mv1.0.tflite", "mv1.1.tflite" ],
  "model-types"   : [ "tflite", "tflite" ],
  "pkg-inputs"    : [ "0:0:0" ],
  "pkg-outputs"   : [ "1:0:0" ],
  "model-connect" : [ { "from" : "0:0:0", "to" : [ "1:0:0" ] } ]
}
glistening commented 2 years ago

Here are some candidates:

Candidate 1

Candidate 2

glistening commented 2 years ago

Candidate 1

...

  • It requires long option support. We may use external getopt command instead of bash getopts.

It may be better not to use getopt because it requires users to install getopt and I am not sure getopt is installed by default on Ubuntu.

hseok-oh commented 1 year ago

Currently, conection info is handled by python script argument --io-info. (#10243)