Add coreml conversion

This commit is contained in:
Piv
2021-03-29 18:58:16 +10:30
parent f2a42cca4c
commit f3fc0f8fbb

10
coreml.py Normal file
View File

@@ -0,0 +1,10 @@
import coremltools as ct
def convert_coreml(saved_model_path):
mlmodel = ct.convert(saved_model_path)
mlmodel.save('../mobilenet_nnconv.mlmodel')
if __name__ == '__main__':
convert_coreml('../mobilenet-nnconv5-e12-experimental')