Skip to content

CoreML export failure: unexpected number of inputs for node x.2 (_convolution): 13 #1945

@Nabyssache

Description

@Nabyssache

Additional context

issue occur:
Converting Frontend ==> MIL Ops: 0%| | 0/970 [00:00<?, ? ops/s]Converting op 221 : constant
Adding op '221' of type const
Converting op 222 : constant
Adding op '222' of type const
Converting op 223 : constant
Adding op '223' of type const
Converting op 224 : constant
Adding op '224' of type const
Converting op 225 : constant
Converting op 226 : constant
Adding op '226' of type const
Converting op 227 : constant
Adding op '227' of type const
Converting op 228 : slice
Adding op '228' of type slice_by_index
Adding op '228_begin_0' of type const
Adding op '228_end_0' of type const
Adding op '228_stride_0' of type const
Adding op '228_end_mask_0' of type const
Converting op 229 : slice
Adding op '229' of type slice_by_index
Adding op '229_begin_0' of type const
Adding op '229_end_0' of type const
Adding op '229_stride_0' of type const
Adding op '229_end_mask_0' of type const
Converting op 230 : slice
Adding op '230' of type slice_by_index
Adding op '230_begin_0' of type const
Adding op '230_end_0' of type const
Adding op '230_stride_0' of type const
Adding op '230_end_mask_0' of type const
Converting op 231 : slice
Adding op '231' of type slice_by_index
Adding op '231_begin_0' of type const
Adding op '231_end_0' of type const
Adding op '231_stride_0' of type const
Adding op '231_end_mask_0' of type const
Converting op 232 : slice
Adding op '232' of type slice_by_index
Adding op '232_begin_0' of type const
Adding op '232_end_0' of type const
Adding op '232_stride_0' of type const
Adding op '232_end_mask_0' of type const
Converting op 233 : slice
Adding op '233' of type slice_by_index
Adding op '233_begin_0' of type const
Adding op '233_end_0' of type const
Adding op '233_stride_0' of type const
Adding op '233_end_mask_0' of type const
Converting op 234 : slice
Adding op '234' of type slice_by_index
Adding op '234_begin_0' of type const
Adding op '234_end_0' of type const
Adding op '234_stride_0' of type const
Adding op '234_end_mask_0' of type const
Converting op 235 : slice
Adding op '235' of type slice_by_index
Adding op '235_begin_0' of type const
Adding op '235_end_0' of type const
Adding op '235_stride_0' of type const
Adding op '235_end_mask_0' of type const
Converting op 236 : listconstruct
Converting op input.1 : cat
Adding op 'input.1' of type concat
Adding op 'input.1_interleave_0' of type const
Converting op 238 : listconstruct
Adding op '238' of type const
Converting op 239 : listconstruct
Adding op '239' of type const
Converting op 240 : listconstruct
Adding op '240' of type const
Converting op 241 : listconstruct
Adding op '241' of type const
Converting op x.2 : _convolution
Converting Frontend ==> MIL Ops: 2%|█ | 21/970 [00:00<00:00, 1017.80 ops/s]
CoreML export failure: unexpected number of inputs for node x.2 (_convolution): 13

Export complete (11.10s). Visualize with https://github.com/lutzroeder/netron

when I use command: python models/export.py --weights "yolov5l.pt" --img 640 --batch 1
I see #1667
my torch = 1.7.1 and torchvision= 0.8.2 torchaudio=0.7.2 coremltools=4.0

what wrong happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions