Use image type for CoreML input, reshape last layer to work with metal shader
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import coremltools as ct
|
||||
|
||||
|
||||
def convert_coreml(model_path, save_path='../mobilenet_nnconv5.mlmodel'):
|
||||
mlmodel = ct.convert(model_path)
|
||||
def convert_coreml(model_path, save_path='mobilenet_nnconv5.mlmodel'):
|
||||
mlmodel = ct.convert(model_path, inputs=[ct.ImageType()])
|
||||
mlmodel.save(save_path)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user