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