Ejemplo n.º 1
0
        public static async Task <TinyYoloV212Model> CreateTinyYoloV212Model(StorageFile file)
        {
            var learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file);

            var model = new TinyYoloV212Model {
                _learningModel = learningModel
            };

            return(model);
        }
Ejemplo n.º 2
0
        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); //,
        }