Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question ONNX Conv2D Layer with Stride different to 1 not supported

Discussion in 'Barracuda' started by ptrem, Jan 13, 2022.

  1. ptrem

    ptrem

    Joined:
    Jan 13, 2022
    Posts:
    1
    Hello guys,
    would like to use an ONNX model in Unity. The first layer is a Conv2D with Stride 4.
    I see in the object details that this is also stored in the model. However, when I run the inference, there is an error that the array size is not correct.
    It turns out that the given size is the result of a Conv2D layer with Stride 1.
    Also, there is no problem loading models that only contain Conv2D layers with Stride 1.
    The model was originally created with Tensorflow2.

    Has anyone already had experience with this and can provide some help?
    Or is there a better way to use TF2 Models directly with Barracuda.

    Thanks
     

    Attached Files:

  2. alexandreribard_unity

    alexandreribard_unity

    Unity Technologies

    Joined:
    Sep 18, 2019
    Posts:
    53