File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2121SCENE_URL = "/v1/vision/scene"
2222# Models and labels
2323FACE_MODEL = "models/face_detection/mobilenet_ssd_v2_face/mobilenet_ssd_v2_face_quant_postprocess.tflite"
24- OBJ_MODEL = "models/object_detection/mobilenet_ssd_v2_coco/mobilenet_ssd_v2_coco_quant_postprocess .tflite"
24+ OBJ_MODEL = "models/object_detection/ssd_mobilenet_v2_coco_quant_postprocess_edgetpu .tflite"
2525OBJ_LABELS = "models/object_detection/mobilenet_ssd_v2_coco/coco_labels.txt"
2626SCENE_MODEL = "models/classification/dogs-vs-cats/model.tflite"
2727SCENE_LABELS = "models/classification/dogs-vs-cats/labels.txt"
2828
2929# Setup object detection
30- obj_interpreter = tflite .Interpreter (model_path = OBJ_MODEL )
31- obj_interpreter .allocate_tensors ()
30+ obj_interpreter = tflite .Interpreter (model_path = OBJ_MODEL , experimental_delegates = [load_delegate ('libedgetpu.so.1.0' )])obj_interpreter .allocate_tensors ()
3231obj_input_details = obj_interpreter .get_input_details ()
3332obj_output_details = obj_interpreter .get_output_details ()
3433obj_input_height = obj_input_details [0 ]["shape" ][1 ]
You can’t perform that action at this time.
0 commit comments