Search Unity

Question OnnxLayerImportException: Only tensors of rank 4 or less are supported, but got rank 6

Discussion in 'ML-Agents' started by MakiKK, Jul 9, 2020.

  1. MakiKK

    MakiKK

    Joined:
    Jul 9, 2020
    Posts:
    2
    I made tiny yolo model file by "keras-yolo2" ("Tiny Yolo" mode) and converted .h5 to .onnx by "keras2onnx".
    Then I import model file in Unity, An error occurred.
    "OnnxLayerImportException: Only tensors of rank 4 or less are supported, but got rank 6"
    Is there a way to use this model? Is "keras-yolo2" or "keras2onnx" unusable?

    Used: Unity 2019.4.2f1
    All error message:
     
  2. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289
  3. MakiKK

    MakiKK

    Joined:
    Jul 9, 2020
    Posts:
    2
    Thank you for your reply.
    There was a similar case on that page, so I will try it while looking at it.
     
  4. Romaissa_Guetoutou

    Romaissa_Guetoutou

    Joined:
    Feb 11, 2023
    Posts:
    3
    Please I face the same issue, did you solve it