Open kenhuang1964 opened 5 months ago
Hi you have to define all the constants such as:
model.AddConstant(new Unity.Sentis.Layers.Constant("8400,5", new int[] { 8400, 5 }));
model.AddConstant(new Unity.Sentis.Layers.Constant("0.5", new float[] { 0.5f }));
There is a good example of a model using the NMS layer here.. Although I don't think you'll need the offsets as YOLO8 doesn't use them I think.
Thank you so much @pauldog!
I tried to implement object detection but I am coming across an error saying "KeyNotFoundException: The given key 'nms' was not present in the dictionary."
Here is my current code:
The object detection model I am using is YOLOv8n. Here is the input and output structure: INPUTS images name: images tensor: float32[1, 3, 640, 640]
OUTPUTS output0 name: output0 tensor: float32 [1,5,8400]
I mostly just followed the depth detection sample code. This script is intended to be used for an AR app. Any help would be greatly appreciated. Thanks!