In third way using 'blobconverter' module, code:
import blobconverter
blobconverter.from_onnx(
model="C:\Project\rdd\oak\models\pruned.onnx",
output_dir="C:\Project\rdd\oak\models",
data_type="FP16",
shaves=6,
use_cache=False,
optimizer_params=[]
)
what 'optimizer_params' means, is there any example? I can't find in docs.
And my .json:
{
"nn_config":
{
"output_format" : "detection",
"NN_family" : "YOLO",
"input_size": "640x640",
"NN_specific_metadata" :
{
"classes" : 4,
"coordinates" : 4,
"anchors" : [10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326],
"anchor_masks" :
{
"side80" : [0,1,2],
"side40" : [3,4,5],
"side20" : [6,7,8]
},
"iou_threshold" : 0.5,
"confidence_threshold" : 0.2
}
},
"mappings":
{
"labels":
[
"D00",
"D10",
"D20",
"D40"
]
}
}