Models Folder
The Models folder contains two files generated by the LumiScan Training Framework:
-
<file name>.json (for example, model.json) contains the detection parameters and references the neural network model.
-
<file name>.onnx (for example, model.onnx) contains the trained neural network model.
On ctrlX OS: The model files must be uploaded using WebDAV.[1]
On a PC: Copy the model files into the models folder of the settings folder, see Uploading Data.
Model.json File
The model.json file contains the parameters required to configure the neural network model used for detection.
The following example shows the JSON structure:
{
"classList": {
"0": "nockeIO",
"1": "nockeVerbogen"
},
"thresholdList": {
"nockeIO": 0.02,
"nockeVerbogen": 0.02
},
"resizedImageShape": {
"height": 431,
"width": 571
},
"normalizationMean": [
123.67500305175781,
116.27999877929688,
103.52999877929688
],
"normalizationStd": [
58.39500045776367,
57.119998931884766,
57.375
],
"spacialNMSRadius": 3,
"pathToNetwork": "model.onnx",
"provider": "CPU",
"deviceIndex": 0
}
All parameters are generated by the LumiScan Training Framework.
Only thresholdList, pathToNetwork, provider, and deviceIndex should be modified manually. These parameters are described in Table 8.
| Parameter | Description |
|---|---|
|
Defines the minimum confidence threshold for each detection class.
|
|
Specifies the path to the trained neural network model used for object detection. The path must be relative to the location of the current JSON file. |
|
Specifies the inference provider. Possible values:
|
|
Specifies the device index. Currently, this value must be |
| Restart the LumiScan AI Object Matching application after changing any of these parameters. |
Complete reference
Every setting of this file as its JSON Schema network-description.schema.json defines it, generated for version 2.1.0:
| Setting | Type | Default | Allowed values | Description |
|---|---|---|---|---|
|
object |
Required. |
||
|
string |
not empty |
Required. |
|
|
string |
not empty |
Required. |
|
|
string |
not empty |
||
|
string |
not empty |
||
|
string |
not empty |
||
|
string |
Required. Current only support 'OrientedObjectDetection' |
||
|
object |
[Deprecated] Please rename to 'classes' |
||
|
object |
[Deprecated] Please rename to 'thresholds' |
||
|
object |
Required. Key: Index as string type, Value: Class name |
||
|
object |
Required. Key: Class Name, Value: <0-1 float> threshold value between 0 and 1 |
||
|
object |
Required. |
||
|
number |
Required. |
||
|
number |
Required. |
||
|
number[] |
exactly 3 entries |
Required. |
|
|
number[] |
exactly 3 entries |
Required. |
|
|
string |
|
Required. Type of provider, currently only CPU is supported. |
|
|
number |
Required. Index of the device to use. If the provider is CPU, this value is ignored. If the provider is GPU, this value is the index of the GPU to use. |
||
|
number |
Required. |
||
|
string |
not empty |
Required. Path to the network file. The network file must be in ONNX format and the path is relative to the description file. |