Пример #1
0
        public FrameDNNOnnxYolo(List <Tuple <string, int[]> > lines, string modelName, DNNMode mode)
        {
            _lines = lines;

            switch (ConfigurationManager.AppSettings["Runtime"])
            {
            case "docker":
                onnxWrapper = new ORTWrapper($@"./modelOnnx/{modelName}ort.onnx", mode);
                break;

            case "vs":
                onnxWrapper = new ORTWrapper($@"..\..\..\modelOnnx\{modelName}ort.onnx", mode);
                break;
            }
        }
Пример #2
0
 public FrameDNNOnnxYolo(List <Tuple <string, int[]> > lines, string modelName, DNNMode mode)
 {
     _lines      = lines;
     onnxWrapper = new ORTWrapper($@"..\..\..\..\..\..\modelOnnx\{modelName}ort.onnx", mode);
 }