coreml-performance
coreml-performance copied to clipboard
Customization doesn't work
I used my own model and got the following error:
CoreMLPerformance/Predictor.swift:19: Fatal error: Unexpectedly found nil while unwrapping an Optional value
I used my own model and got the following error:
CoreMLPerformance/Predictor.swift:19: Fatal error: Unexpectedly found nil while unwrapping an Optional value
I fixed the issue by setting the input name to be "input_1". Please refer to the following codes:
model = ct.convert( optimized_torchscript_model, inputs=[ct.ImageType(name="input_1", shape=example_input.shape)] )