示例#1
0
        public bool LoadModel(string modelPath)
        {
            ModelPath model = new ModelPath(modelPath);

            _aspectRatio = model.FixedAspectRatio;
            if (model.Found)
            {
                _yolo       = new Yolo(model.ConfigPath, model.WeightsPath, model.NamesPath);
                IsYoloReady = true;
            }
            else
            {
                MessageBox.Show("Missing Required model(.cfg, .weight, .name) files", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);

                IsYoloReady = false;
            }
            return(IsYoloReady);
        }
示例#2
0
 public static void GetAllFile(string path)
 {
     mModelPath = new ModelPath(path);
 }