I am getting 2 odd things in the log after trying to switch to a new model, which I can’t figure out and am curious if anyone knows. The default model worked but I wanted to try to get something more accurate. The new model appears to load but I haven’t seen it actually defect anything yet.
-
When the addon starts up it says “width”: -1, “height”: -1, this doesn’t seem right as the default model is 300x300. Why would this be and what am I doing wrong?
-
When a scan is initiated it gives me a “WARN” “Missing label”. What is causing this? I have a label file.
2020-01-22 16:51:31.263706: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE3 SSE4.1 SSE4.2 AVX AVX2
2020-01-22T16:51:31.294-0600 INFO detector/detector.go:78 Configured Detector {"package": "detector", "name": "inception", "type": "tensorflow", "model": "/share/doods/faster_rcnn_inception_v2_coco_2018_01_28.pb", "labels": 165, "width": -1, "height": -1}
2020-01-22T16:51:31.301-0600 INFO server/server.go:274 API Listening {"package": "server", "address": ":8080", "tls": false, "version": "v0.1.5-0-g99f5768"}
2020-01-22T16:52:03.726-0600 WARN tensorflow/tensorflow.go:214 Missing label {"package": "detector.tensorflow", "name": "inception", "index": 15}
2020-01-22T16:52:03.726-0600 INFO tensorflow/tensorflow.go:259 Detection Complete {"package": "detector.tensorflow", "name": "inception", "id": "", "duration": 9.255106498, "detections": 0}
2020-01-22T16:52:03.727-0600 INFO server/server.go:138 HTTP Request {"status": 200, "took": 9.470519011, "request": "/detect", "method": "POST", "package": "server.request", "request-id": "03492332-doods.local.hass.io/d2HBZQ4Dfd-000001", "remote": "192.168.1.199:56690"}
Below is my config:
"server": {
"port": "8080"
},
"auth_key": "",
"doods.detectors": [
{
"name": "default",
"type": "tflite",
"modelFile": "/opt/doods/models/coco_ssd_mobilenet_v1_1.0_quant.tflite",
"labelFile": "/opt/doods/models/coco_labels0.txt",
"numThreads": 1,
"numConcurrent": 1,
"hwAccel": false
},
{
"name": "inception",
"type": "tensorflow",
"modelFile": "/share/doods/faster_rcnn_inception_v2_coco_2018_01_28.pb",
"labelFile": "/share/doods/coco_labels1.txt",
"numThreads": 1,
"numConcurrent": 1,
"hwAccel": false
}
]
}