Closed NBarile closed 12 months ago
You need to create a Record, not a Class
public record MyYolo : YoloModel
not
public class MyYolo : YoloModel
You need to create a Record, not a Class
public record MyYolo : YoloModel
notpublic class MyYolo : YoloModel
Thanks !
Have you a exemple of class to show me ?
You need to create a Record, not a Class
public record MyYolo : YoloModel
notpublic class MyYolo : YoloModel
Thanks !
Have you a exemple of class to show me ?
I find a working model :
public record MyYolo : YoloModel
{
public MyYolo()
: base(640, 640, 3, 7 /*Number of class + 5*/, new int[] { 8, 16, 32 }, new int[][][]
{
new int[][]
{
new int[] { 10, 13 },
new int[] { 16, 30 },
new int[] { 33, 23 }
},
new int[][]
{
new int[] { 30, 61 },
new int[] { 62, 45 },
new int[] { 59, 119 }
},
new int[][]
{
new int[] { 116, 90 },
new int[] { 156, 198 },
new int[] { 373, 326 }
}
}, new int[] { 80, 40, 20 }, 0.2f, 0.25f, 0.45f, new string[] { "output0" }, new List<YoloLabel>
{
new YoloLabel(0, "pointrouge"),
new YoloLabel(1, "pointblanc")
}, UseDetect: true)
{
}
}
Hello
I have a problem when i try to create my own YoloModel class for my custom yolo model.
If I understand, I can't herit from YoloModel ?
But if I can't, how can i create my own model .
Have you a documentation to easly create custom model ?
Thanks !
Here is the code if need :