coreml-performance icon indicating copy to clipboard operation
coreml-performance copied to clipboard

Customization doesn't work

Open femalegeekinsv opened this issue 2 years ago • 1 comments

I used my own model and got the following error:

CoreMLPerformance/Predictor.swift:19: Fatal error: Unexpectedly found nil while unwrapping an Optional value

femalegeekinsv avatar Mar 29 '22 16:03 femalegeekinsv

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)] )

JierunChen avatar Jun 11 '22 12:06 JierunChen