public static async Task <TinyYoloV212Model> CreateTinyYoloV212Model(StorageFile file) { var learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file); var model = new TinyYoloV212Model { _learningModel = learningModel }; return(model); }
private async void LoadYoloOnnxModel() { var file = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///tiny-yolov2-1.2.onnx")); _model = await TinyYoloV212Model.CreateTinyYoloV212Model(file); //, }