Add basic coreml and mlkit conversion scripts
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import coremltools as ct
|
||||
|
||||
|
||||
def convert_coreml(saved_model_path):
|
||||
mlmodel = ct.convert(saved_model_path)
|
||||
mlmodel.save('../mobilenet_nnconv.mlmodel')
|
||||
def convert_coreml(model_path, save_path='../mobilenet_nnconv5.mlmodel'):
|
||||
mlmodel = ct.convert(model_path)
|
||||
mlmodel.save(save_path)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user