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); }
public static void GetAllFile(string path) { mModelPath = new ModelPath(path); }