Skip to content

Instantly share code, notes, and snippets.

@J3698
Created September 7, 2021 16:24
Show Gist options
  • Save J3698/3cda3da3187dc1717dd2e37cdaaf8b12 to your computer and use it in GitHub Desktop.
Save J3698/3cda3da3187dc1717dd2e37cdaaf8b12 to your computer and use it in GitHub Desktop.
Convert OpenVINO to blob
import blobconverter
def convert_blob(name):
xmlfile = os.path.join("./exports", name) + ".xml"
binfile = os.path.join("./exports", name) + ".bin"
blob_path = blobconverter.from_openvino(
xml = xmlfile,
bin = binfile,
data_type = "FP16",
shaves = 5,
output_dir = "./exports"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment