Last active
January 22, 2022 21:46
-
-
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 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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