Skip to content

vad model conversion shows the same error as previous fixed #782

@tensorbuffer

Description

@tensorbuffer

Issue Type

Others

OS

Linux

onnx2tf version number

1.28.2

onnx version number

1.17.0

onnxruntime version number

1.18.1

onnxsim (onnx_simplifier) version number

0.4.33

tensorflow version number

2.19.0

Download URL for ONNX

https://github.com/snakers4/silero-vad/blob/master/src/silero_vad/data/silero_vad.onnx

Parameter Replacement JSON

None

Description

  1. Purpose: Run VAD model on device, it's for product development.
  2. What:

onnx2tf -i silero_vad.onnx --overwrite_input_shape "input:1,512"

Depth of output (258) is not a multiple of the number of groups (576) for '{{node tf.nn.convolution/convolution}} = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], explicit_paddings=[], padding="VALID", strides=[1, 1, 128, 1], use_cudnn_on_gpu=true](tf.nn.convolution/convolution/ExpandDims, tf.nn.convolution/convolution/ExpandDims_1)' with input shapes: [1,1,1,576], [1,256,1,258].

  1. How:
    I see two years ago someone asked this model and you fixed with Pad: [silero_vad] Question about Pad #42
    I checked the Pad.py on my system and I do see it's the newer version with that patch. However I don't know why I am seeing the same issue.

Also, from their code, the input shape should be (1, 576), e.g. input:1,1,576 state:1,576,128 sr:1
The 576 is from here: https://github.com/snakers4/silero-vad/blob/master/examples/cpp/silero-vad-onnx.cpp#L315

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions