Platforms to show: All Mac Windows Linux Cross-Platform

Back to WinLearningModelMBS class.

WinLearningModelMBS.LoadFromFile(File as FolderItem) as WinLearningModelMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method WindowsML MBS WinFrameworks Plugin 20.5 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Loads a model for Windows Machine Learning.
Example
dim ModelFile as FolderItem =SpecialFolder.Desktop.Child("SqueezeNet.onnx")

if not ModelFile.Exists then
MsgBox "Please download model first!"
quit
end if

dim model as WinLearningModelMBS = WinLearningModelMBS.LoadFromFile(ModelFile)

if model = nil then
msgbox "Failed to load model!"
// Check path and you need Windows 10
quit
end if

Please use an onnx file as you find them on various websites, e.g. start here:
https://docs.microsoft.com/en-us/windows/ai/windows-ml/get-onnx-model

Will rasie an exception about unregistered class if called on older Windows versions before 10.

WinLearningModelMBS.LoadFromFilePath(Path as String) as WinLearningModelMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method WindowsML MBS WinFrameworks Plugin 20.5 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Loads a model for Windows Machine Learning.

Please use an onnx file as you find them on various websites, e.g. start here:
https://docs.microsoft.com/en-us/windows/ai/windows-ml/get-onnx-model

Will rasie an exception about unregistered class if called on older Windows versions before 10.

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


The biggest plugin in space...