Hello!
I would want to learn Barracuda and Machine Learning with Unity. I am trying to import the RobustVideoMatting (GitHub - PeterL1n/RobustVideoMatting: Robust Video Matting in PyTorch, TensorFlow, TensorFlow.js, ONNX, CoreML!) neural network ONNX models provided but I have the following error:
Exception: Must have input rank for 613 in order to convert axis for NHWC op
Unity.Barracuda.Compiler.Passes.NCHWToNHWCPass.ConvertAxis (Unity.Barracuda.Layer layer, Unity.Barracuda.ModelBuilder net)
Asset import failed, "Assets/RVM/ONNX/rvm_resnet50_fp32.onnx" > Exception: Must have input rank for 613 in order to convert axis for NHWC op
And warnings:
Unsupported attribute coordinate_transformation_mode, node 399 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 399 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Unsupported attribute ceil_mode, node 579 of type AveragePool. Value will be ignored and defaulted to 0.
Unsupported attribute ceil_mode, node 580 of type AveragePool. Value will be ignored and defaulted to 0.
Unsupported attribute ceil_mode, node 581 of type AveragePool. Value will be ignored and defaulted to 0.
Unsupported attribute coordinate_transformation_mode, node 605 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 605 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Unsupported attribute coordinate_transformation_mode, node 641 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 641 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Unsupported attribute coordinate_transformation_mode, node 677 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 677 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Unsupported attribute coordinate_transformation_mode, node 713 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 713 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Unsupported attribute coordinate_transformation_mode, node 770 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 770 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Unsupported attribute coordinate_transformation_mode, node 784 of type Resize. Value will be ignored and defaulted to half_pixel.
Unsupported attribute nearest_mode, node 784 of type Resize. Value will be ignored and defaulted to round_prefer_floor.
Is the model supported by Barracuda (it is based on MobileNet and ResNet)? Do you have any idea of what is the issue?
Thanks!