Open braindevices opened 2 years ago
run with torch 1.10.2 yield the same stack trace.
one related question will be: if we call the model in pytorch like model([input,])
. the input is a dict: {key1:val1, key2:val2}
What the inputs in ct.convert()
should look like? Will it looks like [ct.TensorType(shape of val1), ct.TensorType(shape of va2)]
or it should be some more nested types?
@braindevices - can you give us a minimal example (i.e. a simple toy network) that reproduces this issue?
@TobyRoseman this is the current minimal I can get. The model is from Detectron2 Model Zoo. When you run the script it will automatically download it.
🐞Describe the bug
the maskrcnn model in detectron2 can be converted to torchscript via torch.jit.script without problem. However, this torchscript model cannot be convert to coreml.
Stack Trace
To Reproduce
try to use the attached script.
to save the torchscript model:
to convert to coreml:
System environment (please complete the following information):