public static async Task <HeroModel> CreateHeroModel(StorageFile file) { LearningModelPreview learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file); HeroModel model = new HeroModel(); model.learningModel = learningModel; return(model); }
private async void LoadModel() { var modelFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri(ModelPath)); Model = await HeroModel.CreateHeroModel(modelFile); }