private bool AreValidYoloFiles(YoloConfiguration config) { if (string.IsNullOrEmpty(config.ConfigFile) || string.IsNullOrEmpty(config.WeightsFile) || string.IsNullOrEmpty(config.NamesFile)) { return(false); } if (Path.GetFileNameWithoutExtension(config.ConfigFile) != Path.GetFileNameWithoutExtension(config.WeightsFile)) { return(false); } return(true); }
public YoloWrapper(YoloConfiguration yoloConfiguration, DNNMode dnnMode) { this.DnnMode = dnnMode; this.Initialize(yoloConfiguration.ConfigFile, yoloConfiguration.WeightsFile, yoloConfiguration.NamesFile, 0); }