Beispiel #1
0
        public static async Task <TinyYoloV2Model> CreateTinyYoloV2Model(StorageFile file)
        {
            var learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file);

            var model = new TinyYoloV2Model {
                _learningModel = learningModel
            };

            return(model);
        }
Beispiel #2
0
        private async void LoadYoloOnnxModel()
        {
            var file = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Tiny-YOLOv2.onnx"));

            _model = await TinyYoloV2Model.CreateTinyYoloV2Model(file); //,
        }