Changelog
Tracking Changes
1.1.8
Fixed
GraphFormaterror when creating models.Fixed build errors when building for WebGL.
NatML now requires Unity 2022.3+.
1.1.7
Fixed
JsonExceptionwhen creating some models (#58).Fixed crash when building on Unity Cloud Build with macOS worker (#56).
1.1.6
Fixed
DllNotFoundExceptionwhen building on Linux (#54).Fixed
Illegal byte sequence encountered in the inputerror when building on macOS and Windows (#55).Refactored
PredictionSessionclass toEndpointPrediction.Refactored
NatML.PredictionSessionsfield toEndpointPredictions.Removed
MLAudioFeature.FromStreamingAssetsmethod. UseMLUnityExtensions.StreamingAssetsToAbsolutePathto get a path and create an audio feature.Deprecated
PredictorSessionclass.Deprecated
NatML.PredictorSessionsfield.
1.1.5
Added support for Safari 16.4, bringing NatML to 88% of browsers.
Added
MLArrayFeature.CopyTomethod overload that accepts aTexture2D.Added
MLEdgeModel.Createmethod overload that accepts aNatMLClientinstance in place of anaccessKey.Added
MLCloudModel.Createmethod overload that accepts aNatMLClientinstance in place of anaccessKey.Added
Feature.dictValuefield for working with dictionary features.Refactored
Dtype.Listenumeration member toDtype.List.Refactored
Dtype.Dictionaryenumeration member toDtype.Dict.Removed
MLCloudModel.Predictmethod overload that accepts aDictionary<string, MLFeature>.Removed
MLImageFeature.RegionOfInterestmethod.
1.1.4
Added
NatML.APInamespace for accessing the full NatML web API from .NET.Fixed
MLEdgeModel.Createmethod blocking for a long time on Android and Windows (#49).Fixed
MLEdgeModel.Createmethod throwing error when called from non-Unity threads.Updated default edge prediction configuration to use the CPU and neural processor (and not the GPU) on Android (#49).
Refactored
MLDepthFeature.ViewportToWorldPointmethod toUnproject.Removed
MLEdgeModel.AudioFormatstruct. UseNatML.API.Types.AudioFormatclass instead.Removed
MLEdgeModel.Normalizationstruct. UseNatML.API.Types.Normalizationclass instead.Removed
MLImageFeature.AspectModeenumeration. UseNatML.API.Types.AspectModeenumeration instead.Removed
MLAudioType.FromAudioCliputility method.Removed
MLAudioType.FromVideoCliputility method.Removed
MLVideoType.FromVideoCliputility method.
1.1.3
Added support for making edge predictions on the GPU on Android with
MLEdgeModel.ComputeTarget.GPU.Fixed
MLEdgeModel.Predictsporadically crashing on Android.
1.1.2
Added support for CoreML models that consume pixel buffers (
CVPixelBufferRef) instead of multi-arrays.Fixed
MLEdgeModel.Createignoringconfigurationargument when model is fetched from NatML Hub.Fixed
MLAsyncPredictoraccumulating massive amounts of memory on iOS and macOS.Refactored
MLTextFeatureclass toMLStringFeature.Refactored
MLTextTypeclass toMLStringType.Refactored
MLModelDataEmbedattribute toMLEdgeModel.Embed.
1.1.1
Added model embedding support for encrypted models.
1.1.0
Added
MLCloudModelclass for making predictions with predictor endpoints.Added
MLEdgeModel.Createmethods for creating an edge model from a predictor tag or anMLModelDatainstance.Added
MLEdgeModel.ComputeTargetenumeration for specifying the compute target for model predictions.Added
MLEdgeModel.Configurationdata class for configuring the edge model creation process.Added
MLEdgeModel.labelsproperty for inspecting classification labels required by the model.Added
MLEdgeModel.aspectModeproperty for inspecting the aspect mode required in image data consumed by the model.Added
MLEdgeModel.audioFormatproperty for inspecting the audio format required in audio data consumed by the model.Added support for model encryption, protecting your valuable intellectual property.
Added support for pinning
MLArrayFeatureinstances withfixedstatements.Added support for pinning
MLImageFeatureinstances withfixedstatements.Added
MLArrayFeatureconstructor from anMLCloudFeaturefor making predictions with predictor endpoints.Added
MLImageFeatureconstructor from anMLCloudFeaturefor making predictions with predictor endpoints.Added
MLTextFeatureconstructor from anMLCloudFeaturefor making predictions with predictor endpoints.Added
MLArrayFeature.CopyTo(MLArrayFeature)method for copying image data from one image feature to another.Added
MLImageFeature.CopyTo(MLImageFeature)method for copying image data from one image feature to another.Added implicit conversion from
floattoMLFeature.Added implicit conversion from
inttoMLFeature.Added implicit conversion from
booltoMLFeature.Added implicit conversion from
int[]toMLFeature.Updated
MLImageFeatureclass to besealedthus preventing inheritance.Updated
float[]implicit conversion toMLArrayFeatureto have a 1D shape instead of anullshape.Refactored
MLModelData.ComputeTargetenumeration toMLEdgeModel.ComputeTarget.Refactored
MLModelData.Normalizationenumeration toMLEdgeModel.Normalization.Refactored
MLModelData.AudioFormatenumeration toMLEdgeModel.AudioFormat.Deprecated
MLImageFeature.RegionOfInterestmethod. UseMLImageFeature.CopyTomethod instead.Deprecated
MLModelData.ComputeTarget.CPUOnlyenumeration member. UseComputeTarget.CPUinstead.Removed
MLEdgeModelconstructor. UseMLEdgeModel.Createmethod instead.Removed
MLModelData.Deserializemethod. UseMLEdgeModel.Createmethod instead.Removed
MLModelData.FromHubmethod. UseMLEdgeModel.Createmethod instead.Removed
MLModelData.FromFilemethod. UseMLEdgeModel.Createmethod instead.Removed
MLModelData.tagproperty.Removed
MLModelData.computeTargetproperty. UseMLEdgeModel.Configuration.computeTargetproperty instead.Removed
MLModelData.computeDeviceproperty. UseMLEdgeModel.Configuration.computeDeviceproperty instead.Removed
MLModelData.labelsproperty. UseMLEdgeModel.labelsproperty instead.Removed
MLModelData.normalizationproperty. UseMLEdgeModel.normalizationproperty instead.Removed
MLModelData.audioFormatproperty. UseMLEdgeModel.audioFormatproperty instead.Removed
MLModelData.ComputeTargetenumeration.Removed
MLArrayFeature.CopyTo(T[])method overload.Removed
MLArrayFeature.CopyTo(NativeArray<T>)method overload.Removed
MLArrayFeature.CopyTo(T*)method overload.Removed
MLImageFeature.CopyTo(T[])method overload.Removed
MLImageFeature.CopyTo(NativeArray<T>)method overload.Removed
MLImageFeature.CopyTo(T*)method overload.NatML now requires iOS 14+.
1.0.19
Added
MLEdgeModelpublic constructor and moved the class to the top-levelNatMLnamespace.Fixed app storage size increasing every time that
MLModelData.Deserializewas invoked on iOS.Deprecated
MLModelData.Deserializemethod. UseMLEdgeModelconstructor instead.
1.0.18
NatML now defaults to accelerating predictions on Windows by using the GPU. This results in much better performance and lower CPU usage for many models.
Added
MLModelData.computeTargetproperty for specifying the compute target used for prediction.Added
MLModelData.computeDeviceproperty for specifying the compute device used for prediction.Added
MLImageFeature.CopyTooverloads that accepted pixel buffers in managed and unmanaged memory.Fixed
MLImageFeatureproducing incorrect prediction results on WebGL.Fixed rare crash when calling
MLModelData.Deserializeon low-end Android devices.
1.0.17
Upgraded to Hub 1.0.12.
1.0.16
Refactored
MLDepthFeature.TransformPointmethod toViewportToWorldPoint.Removed
MLImageFeature.CopyTooverloads that accepted pixel buffers. UseTexture2Doverload instead.Removed
MLImageFeature.ToTexturemethod. UseMLImageFeature.CopyTomethod instead.
1.0.15
Added initial support for WebGL! NatML can now be used in the browser.
Improved
MLImageFeaturetexture constructor to avoid copying pixel buffers when possible.Improved performance of
MLImageFeature.NonMaxSuppressionfor large number of candidate boxes.Changed
MLEdgeFeature.dataTypeproperty type fromSystem.TypetoNatML.DataType.
1.0.13
Added support for rotated ROI in
MLImageFeature.RegionOfInterestmethod.Added
MLModelData.FromFilemethod to load ML model data from model files.Added
MLImageFeature.TransformPointmethod for transforming detection points from feature space to image space.Added
MLDepthFeature.TransformPointmethod for projecting 2D points into 3D space using depth.Added
MLEdgeFeature.dataTypeproperty for inspecting the data type of Edge features.Added
MLAsyncPredictorclass for making predictions on a background thread.Added
MLPredictorExtensions.ToAsyncextension method for converting predictor to an async predictor.Improved prediction performance on Android devices with dedicated neural processing units.
Changed
MLEdgeFeatureclass toreadonly structto prevent GC pressure.Fixed
MLImageFeaturenot respectingAspectMode.AspectFitwhen making predictions.Fixed sporadic
NullReferenceExceptionwhenMLModelData.FromHubis called on some Android devices.Updated
MLDepthFeature.Samplemethod to accept aVector2point instead of individual coordinates.Removed
IMLCloudFeatureinterface as it is no longer supported by the NatML Hub API.Removed
MLCloudFeatureclass as it is no longer supported by the NatML Hub API.Removed
MLCloudModelclass as it is no longer supported by the NatML Hub API.Removed
IMLAsyncPredictorinterface.Removed
MLFeature.CloudTypeutility method as it is no longer supported by the NatML Hub API.Removed
MLArrayFeatureconstructor that accepted anMLCloudFeature.Removed
MLAudioFeatureconstructor that accepted anMLCloudFeature.Removed
MLImageFeatureconstructor that accepted anMLCloudFeature.Removed
MLImageFeatureconstructor that accepted an encoded imagebyte[].Removed
MLImageFeature.Contiguousmethod.Removed
MLTextFeatureconstructor that accepted anMLCloudFeature.Removed
MLEdgeFeature.ReleaseFeaturemethod as it has long been deprecated.
1.0.12
Upgraded to Hub 1.0.8.
1.0.11
Added
MLModelDataEmbedattribute for embedding model data at build time, making models immediately available in builds without downloads.Added
MLImageFeature.NonMaxSuppressionmethod for performing non-maximum suppression on detection proposals.Added
MLImageFeature.TransformRectmethod for transforming detection rectangles from feature space to image space.Added custom icon for identifying ML model files imported by NatML.
Migrated
MLPredictorExtensions.ToAsyncextension method andMLAsyncPredictorclass to NatMLX.Removed
MLPredictorExtensions.RectifyAspectmethod. UseMLImageFeature.TransformRectmethod instead.Removed
MLPredictorExtensions.NonMaxSuppressionmethod. UseMLImageFeature.NonMaxSuppressionmethod instead.Refactored top-level namespace from
NatSuite.MLtoNatMLfor parity with our other API's.
1.0.10
Improved prediction performance on Windows systems with dedicated GPU's.
Added
MLArrayFeatureconstructors that acceptNativeArray<T>native arrays to minimize memory copies.Added setter accessors to
MLArrayFeatureindexers allowing for writing values to feature data.Added
MLAudioFeature.Contiguousmethod for decoding encoded audio feature into memory.Added support for creating greyscale image
MLEdgeFeaturefeatures fromMLImageFeaturefeatures.Added
MLImageFeature.RegionOfInterestmethod for extracting an ROI from an image.Added
MLImageFeature.Contiguousmethod for decoding encoded image feature into memory.Added
MLDepthFeature.widthconvenience property for getting width of depth features.Added
MLDepthFeature.heightconvenience property for getting height of depth features.Added
MLImageType.interleavedproperty for checking whether image feature is interleaved or planar.Added
IMLCloudFeatureinterface to create cloud ML features for making cloud predictions.Added "Clear Predictor Cache" menu item for clearing predictor cache in the editor.
Added
NatMLHub.Subscribemethod for making subscription requests to the NatML API.Fixed memory leak when using certain vision predictors like Robust Video Matting.
Refactored
MLHubModelclass toMLCloudModel.Refactored
MLHubFeatureclass toMLCloudFeature.Refactored
HubDataTypeclass toDataType.Deprecated
IMLHubFeatureinterface.Removed
MLAudioFeature.ReadToEndmethod. UseMLAudioFeature.Contiguousmethod instead.
1.0.9
Added exclusive support for running CoreML graphs on iOS and macOS.
Added exclusive support for running TensorFlow Lite graphs on Android.
Added support for working with CoreML
.mlmodelfiles in Unity projects.Added support for working with TensorFlow Lite
.tflitefiles in Unity projects.Added support for Apple Silicon on macOS.
Added
MLVideoFeatureclass for making ML predictions on video files.Added
MLVideoTypefeature type for inspecting video features.Added
MLDepthFeatureabstract class for working with predictors that use depth data.Added support for audio feature resampling in
MLAudioFeaturewithsampleRateandchannelCountfields.Added
MLEdgeFeaturetype for added type safety when authoring edge predictors.Added
MLImageFeatureconstructor which accepts aNativeArray<byte>pixel buffer.Added
MLImageFeature.widthconvenience property for getting width of image feature.Added
MLImageFeature.heightconvenience property for getting height of image feature.Added
MLImageFeature.CopyTomethods for copying pixel data from image feature.Added
MLAudioFeatureconstructor that accepts aNativeArray<float>to minimize memory copies.Added
MLAudioFeaturepath constructor for reading audio features from audio and video files.Added
MLAudioFeature.CopyTomethods for copying audio data from audio feature.Added
MLAudioFeature.FromStreamingAssetsmethod for creating an audio feature from an audio file in theStreamingAssetsfolder.Added
MLAudioFeature.ToAudioClipmethod for converting audio feature to anAudioClip.Added
MLAudioFeature.ReadToEndmethod to read audio data into memory for audio features backed by an audio file.Added
MLAudioType.FromFilemethod for inspecting the audio type of a video or audio file.Added
MLAudioType.FromAudioClipmethod for inspecting the audio type of an audio clip.Added
MLAudioType.FromVideoClipmethod for inspecting the audio type of a video clip.Added
MLAudioType.FromStreamingAssetsmethod for inspecting the audio type of a video file in theStreamingAssetsfolder.Added
MLImageTypeconstructor that accepts imagechannels.Fixed
MLImageFeaturetype incorrectly reporting 3 channels instead of 4.Fixed
MLImageFeaturedefault normalization standard deviation having0for alpha channel.Removed
IMLModelinterface as it has long been deprecated.Removed
IMLFeatureinterface as it has long been deprecated.
1.0.8
Fixed
Cannot deserialize graphexception when deserializing cached predictors.Fixed
MLModelDatabeing cached forDRAFTpredictors.
1.0.7
Added
MLArrayFeatureconstructor that accepts anMLHubFeaturefor working with Hub predictors.Added
MLAudioFeatureconstructor that accepts anMLHubFeaturefor working with Hub predictors.Added
MLImageFeatureconstructor that accepts anMLHubFeaturefor working with Hub predictors.Added
MLTextFeatureconstructor that accepts anMLHubFeaturefor working with Hub predictors.Fixed
DirectoryNotFoundExceptionwhen loading cachedMLModelDataon iOS.Removed prediction analytics reporting to NatML Hub, relieving network bandwidth pressure.
Removed
cacheflag inMLModelData.FromHubmethod.
1.0.6
Introduced Hub Predictors, which make predictions using server-side processing on NatML Hub.
Added
MLHubModelclass for authoring predictors that make cloud-based predictions using NatML Hub.Added
MLEdgeModelclass for authoring predictors that make edge (on-device) predictions.Added
IMLHubFeatureinterface for creating server-side features when making predictions with NatML Hub.Added
IMLEdgeFeatureinterface for creating native features when making edge (on-device) predictions.Added
MLTextTypefeature type for inspectingMLTextFeatureinstances.Added
MLModelData.tagproperty to identify the predictor tag from NatML Hub.Added
MLModel.metadatadictionary for inspecting model metadata.Added
MLArrayFeature.Squeezeto remove singleton dimensions from an array feature.Added
MLArrayFeature.Flattento flatten an array feature into one-dimensional array feature.Added
MLArrayFeature.ToArrayto convert an array feature into a flattened primitive array.Added
MLImageFeature.ToTextureto convert an image feature into aTexture2D.Added
MLImageType.FromTypestatic method for converting arbitrary feature types to image types.Added implicit conversion from
MLFeatureTypetoboolindicating if the type is non-null.Added implicit conversion from
MLTextFeaturetostring.Fixed
MLImageTypeimage resolution constructor assuming planar format instead of interleaved format.Moved
IMLPredictorinterface to the top-levelNatSuite.MLnamespace.Moved
IMLAsyncPredictorinterface to the top-levelNatSuite.MLnamespace.Deprecated
IMLModelinterface. Cast model toMLEdgeModelclass instead.Deprecated
IMLFeatureinterface. Cast feature toIMLEdgeFeatureinterface instead.Deprecated
MLPredictorExtensions.GetImageSizestatic method. UseMLImageType.FromTypeinstead.Removed
MLModelData.FromFilemethod. Use NatML Hub instead.Removed
MLModelData.FromStreamingAssetsmethod. Use NatML Hub instead.Removed
MLPredictorExtensions.SerializeAudiomethod.Removed
MLPredictorExtensions.SerializeImagemethod.Removed
MLModeldictionary indexers. UseMLModel.metadataproperty instead.
1.0.5
Changed
MLImageFeature.meanandstdtypes toVector4to support normalization for alpha channel.Fixed bitcode not being generated for iOS
NatML.framework.Removed metadata accessors from
IMLModelinterface. Cast toMLModelinstead.
1.0.4
Added
IMLAsyncPredictorinterface for making server-side ML predictions with NatML Hub.Added
MLArrayFeature<T>constructor which accepts a native array feature for easy interop.Added multi-indexing support to
MLArrayFeature<T>for post-processing native array features.Added
MLArrayType.elementCountproperty to get the total number of elements for an array type.Added
MLArrayFeature<T>.shapeproperty which returns the feature type's shape for convenience.Added
MLArrayFeature<T>.elementCountproperty which returns the feature type's element count for convenience.Added
MLArrayFeature<T>.CopyTomethod to copy feature data into an array.Added
MLArrayFeature<T>.Permutemethod to create a shallow array view with permuted dimensions.Added
MLArrayFeature<T>.Viewmethod to create a shallow array view with a different shape.Added
MLPredictorExtensions.NonMaxSuppressionmethod for working with detection models.Added
MLPredictorExtensions.GetImageSizemethod for making predictions with image features.Added
MLPredictorExtensions.SerializeAudiomethod for making Hub predictions with audio features.Added
MLPredictorExtensions.SerializeImagemethod for making Hub predictions with image features.Fixed
MLAsyncPredictorpredictions never completing if backing predictor encountered exception.
1.0.3
Greatly improved performance and memory pressure when performing multi-indexing with
MLArrayFeature<T>.Added
MLPredictorExtensions.RectifyAspectextension method for correcting detection rects from aspect-scaled images.Fixed crash when making predictions with recurrent models on previous state features.
Fixed crash when getting native array feature shape for
MLArrayFeature<T>.Fixed memory leak when making predictions with image features on iOS and macOS.
1.0.2
Added
MLModelData.audioFormatproperty for working with audio and speech ML models.Added
MLTextFeaturefor working with natural language processing models.Exposed
meanandstdarrays inMLModelData.Normalizationstruct for models that require arbitrary normalization.Removed generic
MLClassificationPredictorandMLDenseClassificationPredictorpredictors.Removed ability to specify class labels for local
.onnxfile in project. Use NatML Hub instead.
1.0.0
First release.
Last updated
Was this helpful?