mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-05 00:15:51 +01:00
0aabf9a24f
* Change base image * Update python * Update coral library * Fix source file * Install correct apt packages * Cleanup * Fix installation of coral deps * fix python installations * Fix devcontainer build * Get tensorrt build working * Update other deps * Filter out tflite log * Get ROCm build working * Get rockchip build working * Get hailo build working * Add note to comment
12 lines
515 B
Python
12 lines
515 B
Python
import openvino as ov
|
|
from openvino.tools import mo
|
|
|
|
ov_model = mo.convert_model(
|
|
"/models/ssdlite_mobilenet_v2_coco_2018_05_09/frozen_inference_graph.pb",
|
|
compress_to_fp16=True,
|
|
transformations_config="/usr/local/lib/python3.11/dist-packages/openvino/tools/mo/front/tf/ssd_v2_support.json",
|
|
tensorflow_object_detection_api_pipeline_config="/models/ssdlite_mobilenet_v2_coco_2018_05_09/pipeline.config",
|
|
reverse_input_channels=True,
|
|
)
|
|
ov.save_model(ov_model, "/models/ssdlite_mobilenet_v2.xml")
|