forked from dotnet/machinelearning-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTinyYoloModel.cs
More file actions
25 lines (21 loc) · 796 Bytes
/
TinyYoloModel.cs
File metadata and controls
25 lines (21 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace OnnxObjectDetection
{
public class TinyYoloModel : IOnnxModel
{
public string ModelPath { get; private set; }
public string ModelInput { get; } = "image";
public string ModelOutput { get; } = "grid";
public string[] Labels { get; } =
{
"aeroplane", "bicycle", "bird", "boat", "bottle",
"bus", "car", "cat", "chair", "cow",
"diningtable", "dog", "horse", "motorbike", "person",
"pottedplant", "sheep", "sofa", "train", "tvmonitor"
};
public (float,float)[] Anchors { get; } = { (1.08f,1.19f), (3.42f,4.41f), (6.63f,11.38f), (9.42f,5.11f), (16.62f,10.52f) };
public TinyYoloModel(string modelPath)
{
ModelPath = modelPath;
}
}
}