Skip to content

Instantly share code, notes, and snippets.

@youngsoul
Last active January 22, 2022 21:46
Show Gist options
  • Save youngsoul/764223ef556da2d69887e8b658d8c528 to your computer and use it in GitHub Desktop.
Save youngsoul/764223ef556da2d69887e8b658d8c528 to your computer and use it in GitHub Desktop.
Script to convert a saved TF MobileNetV2 model to OpenVino and compile to .blob for use in OpenCV AI Kit ( OAK )
python -m mo --reverse_input_channels --batch 1 --mean_values \[127.5, 127.5, 127.5\] --scale_values \[127.5, 127.5, 127.5\] --saved_model_dir ./mask_detector --output_dir openvino_model
rm /Users/patrickryan/.cache/blobconverter/saved_model_openvino_2021.4_6shave.blob
blobconverter --openvino-xml ./openvino_model/saved_model.xml --openvino-bin ./openvino_model/saved_model.bin --shaves 6 --output-dir ./openvino_model --no-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment