Unity
  • NatML for Unity
  • Preliminaries
    • Getting Started
    • Requirements
  • Workflows
    • Core Concepts
    • Fetching Models
    • Using Predictors
  • Authoring
    • Creating Predictors
    • Distributing Predictors
  • API Reference
    • IMLPredictor
    • MLModel
      • MLEdgeModel
        • Configuration
      • MLCloudModel
    • MLFeature
      • MLArrayFeature
      • MLImageFeature
      • MLStringFeature
      • MLAudioFeature
      • MLVideoFeature
      • MLDepthFeature
      • MLXRCpuDepthFeature
    • MLFeatureType
      • MLArrayType
      • MLAudioType
      • MLImageType
      • MLVideoType
      • MLStringType
    • MLPredictorExtensions
  • Integrations
    • Media Devices
    • Augmented Reality
    • Video Recording
  • Insiders
    • Changelog
    • Open Source
    • GitHub
    • Discord
    • Blog
Powered by GitBook
On this page
  • 1.1.8
  • 1.1.7
  • 1.1.6
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.19
  • 1.0.18
  • 1.0.17
  • 1.0.16
  • 1.0.15
  • 1.0.13
  • 1.0.12
  • 1.0.11
  • 1.0.10
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.0

Was this helpful?

  1. Insiders

Changelog

Tracking Changes

1.1.8

  • Fixed GraphFormat error when creating models.

  • Fixed build errors when building for WebGL.

  • NatML now requires Unity 2022.3+.

1.1.7

  • Fixed JsonException when creating some models (#58).

  • Fixed crash when building on Unity Cloud Build with macOS worker (#56).

1.1.6

  • Fixed DllNotFoundException when building on Linux (#54).

  • Fixed Illegal byte sequence encountered in the input error when building on macOS and Windows (#55).

  • Refactored PredictionSession class to EndpointPrediction.

  • Refactored NatML.PredictionSessions field to EndpointPredictions.

  • Removed MLAudioFeature.FromStreamingAssets method. Use MLUnityExtensions.StreamingAssetsToAbsolutePath to get a path and create an audio feature.

  • Deprecated PredictorSession class.

  • Deprecated NatML.PredictorSessions field.

1.1.5

  • Added support for Safari 16.4, bringing NatML to 88% of browsers.

  • Added MLArrayFeature.CopyTo method overload that accepts a Texture2D.

  • Added MLEdgeModel.Create method overload that accepts a NatMLClient instance in place of an accessKey.

  • Added MLCloudModel.Create method overload that accepts a NatMLClient instance in place of an accessKey.

  • Added Feature.dictValue field for working with dictionary features.

  • Refactored Dtype.List enumeration member to Dtype.List.

  • Refactored Dtype.Dictionary enumeration member to Dtype.Dict.

  • Removed MLCloudModel.Predict method overload that accepts a Dictionary<string, MLFeature>.

  • Removed MLImageFeature.RegionOfInterest method.

1.1.4

  • Added NatML.API namespace for accessing the full NatML web API from .NET.

  • Removed MLEdgeModel.AudioFormat struct. Use NatML.API.Types.AudioFormat class instead.

  • Removed MLEdgeModel.Normalization struct. Use NatML.API.Types.Normalization class instead.

  • Removed MLImageFeature.AspectMode enumeration. Use NatML.API.Types.AspectMode enumeration instead.

  • Removed MLAudioType.FromAudioClip utility method.

  • Removed MLAudioType.FromVideoClip utility method.

  • Removed MLVideoType.FromVideoClip utility method.

1.1.3

1.1.2

  • Added support for CoreML models that consume pixel buffers (CVPixelBufferRef) instead of multi-arrays.

1.1.1

  • Added model embedding support for encrypted models.

1.1.0

  • Added support for model encryption, protecting your valuable intellectual property.

  • Added support for pinning MLImageFeature instances with fixed statements.

  • Added MLImageFeature constructor from an MLCloudFeature for making predictions with predictor endpoints.

  • Added MLTextFeature constructor from an MLCloudFeature for making predictions with predictor endpoints.

  • Added MLImageFeature.CopyTo(MLImageFeature) method for copying image data from one image feature to another.

  • Deprecated MLImageFeature.RegionOfInterest method. Use MLImageFeature.CopyTo method instead.

  • Removed MLModelData.tag property.

  • Removed MLModelData.ComputeTarget enumeration.

  • 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

  • Fixed app storage size increasing every time that MLModelData.Deserialize was invoked on iOS.

  • Deprecated MLModelData.Deserialize method. Use MLEdgeModel constructor 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.computeTarget property for specifying the compute target used for prediction.

  • Added MLModelData.computeDevice property for specifying the compute device used for prediction.

  • Fixed rare crash when calling MLModelData.Deserialize on low-end Android devices.

1.0.17

  • Upgraded to Hub 1.0.12.

1.0.16

  • Removed MLImageFeature.CopyTo overloads that accepted pixel buffers. Use Texture2D overload instead.

1.0.15

  • Added initial support for WebGL! NatML can now be used in the browser.

  • Improved MLImageFeature texture constructor to avoid copying pixel buffers when possible.

  • Improved performance of MLImageFeature.NonMaxSuppression for large number of candidate boxes.

  • Changed MLEdgeFeature.dataType property type from System.Type to NatML.DataType.

1.0.13

  • Added MLModelData.FromFile method to load ML model data from model files.

  • Added MLEdgeFeature.dataType property for inspecting the data type of Edge features.

  • Improved prediction performance on Android devices with dedicated neural processing units.

  • Changed MLEdgeFeature class to readonly struct to prevent GC pressure.

  • Fixed sporadic NullReferenceException when MLModelData.FromHub is called on some Android devices.

  • Removed IMLCloudFeature interface as it is no longer supported by the NatML Hub API.

  • Removed MLCloudFeature class as it is no longer supported by the NatML Hub API.

  • Removed MLCloudModel class as it is no longer supported by the NatML Hub API.

  • Removed IMLAsyncPredictor interface.

  • Removed MLFeature.CloudType utility method as it is no longer supported by the NatML Hub API.

  • Removed MLArrayFeature constructor that accepted an MLCloudFeature.

  • Removed MLAudioFeature constructor that accepted an MLCloudFeature.

  • Removed MLImageFeature constructor that accepted an MLCloudFeature.

  • Removed MLImageFeature constructor that accepted an encoded image byte[].

  • Removed MLImageFeature.Contiguous method.

  • Removed MLTextFeature constructor that accepted an MLCloudFeature.

  • Removed MLEdgeFeature.ReleaseFeature method as it has long been deprecated.

1.0.12

  • Upgraded to Hub 1.0.8.

1.0.11

  • Added MLModelDataEmbed attribute for embedding model data at build time, making models immediately available in builds without downloads.

  • Added custom icon for identifying ML model files imported by NatML.

  • Removed MLPredictorExtensions.RectifyAspect method. Use MLImageFeature.TransformRect method instead.

  • Removed MLPredictorExtensions.NonMaxSuppression method. Use MLImageFeature.NonMaxSuppression method instead.

  • Refactored top-level namespace from NatSuite.ML to NatML for parity with our other API's.

1.0.10

  • Improved prediction performance on Windows systems with dedicated GPU's.

  • Added MLAudioFeature.Contiguous method for decoding encoded audio feature into memory.

  • Added MLImageFeature.Contiguous method for decoding encoded image feature into memory.

  • Added IMLCloudFeature interface to create cloud ML features for making cloud predictions.

  • Added "Clear Predictor Cache" menu item for clearing predictor cache in the editor.

  • Added NatMLHub.Subscribe method for making subscription requests to the NatML API.

  • Fixed memory leak when using certain vision predictors like Robust Video Matting.

  • Refactored MLHubModel class to MLCloudModel.

  • Refactored MLHubFeature class to MLCloudFeature.

  • Refactored HubDataType class to DataType.

  • Deprecated IMLHubFeature interface.

  • Removed MLAudioFeature.ReadToEnd method. Use MLAudioFeature.Contiguous method 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 .mlmodel files in Unity projects.

  • Added support for working with TensorFlow Lite .tflite files in Unity projects.

  • Added support for Apple Silicon on macOS.

  • Added MLEdgeFeature type for added type safety when authoring edge predictors.

  • Added MLAudioFeature path constructor for reading audio features from audio and video files.

  • Added MLAudioFeature.CopyTo methods for copying audio data from audio feature.

  • Added MLAudioFeature.FromStreamingAssets method for creating an audio feature from an audio file in the StreamingAssets folder.

  • Added MLAudioFeature.ToAudioClip method for converting audio feature to an AudioClip.

  • Added MLAudioFeature.ReadToEnd method to read audio data into memory for audio features backed by an audio file.

  • Removed IMLModel interface as it has long been deprecated.

  • Removed IMLFeature interface as it has long been deprecated.

1.0.8

  • Fixed Cannot deserialize graph exception when deserializing cached predictors.

  • Fixed MLModelData being cached for DRAFT predictors.

1.0.7

  • Fixed DirectoryNotFoundException when loading cached MLModelData on iOS.

  • Removed prediction analytics reporting to NatML Hub, relieving network bandwidth pressure.

  • Removed cache flag in MLModelData.FromHub method.

1.0.6

  • Added MLHubModel class for authoring predictors that make cloud-based predictions using NatML Hub.

  • Added IMLHubFeature interface for creating server-side features when making predictions with NatML Hub.

  • Added IMLEdgeFeature interface for creating native features when making edge (on-device) predictions.

  • Added MLArrayFeature.Squeeze to remove singleton dimensions from an array feature.

  • Added MLArrayFeature.Flatten to flatten an array feature into one-dimensional array feature.

  • Moved IMLAsyncPredictor interface to the top-level NatSuite.ML namespace.

  • Deprecated IMLFeature interface. Cast feature to IMLEdgeFeature interface instead.

  • Removed MLPredictorExtensions.SerializeAudio method.

  • Removed MLPredictorExtensions.SerializeImage method.

1.0.5

  • Fixed bitcode not being generated for iOS NatML.framework.

1.0.4

  • Added IMLAsyncPredictor interface for making server-side ML predictions with NatML Hub.

  • Added MLArrayFeature<T>.Permute method to create a shallow array view with permuted dimensions.

  • Added MLArrayFeature<T>.View method to create a shallow array view with a different shape.

  • Added MLPredictorExtensions.GetImageSize method for making predictions with image features.

  • Added MLPredictorExtensions.SerializeAudio method for making Hub predictions with audio features.

  • Added MLPredictorExtensions.SerializeImage method for making Hub predictions with image features.

  • Fixed MLAsyncPredictor predictions never completing if backing predictor encountered exception.

1.0.3

  • Fixed crash when making predictions with recurrent models on previous state features.

  • Fixed memory leak when making predictions with image features on iOS and macOS.

1.0.2

  • Added MLModelData.audioFormat property for working with audio and speech ML models.

  • Exposed mean and std arrays in MLModelData.Normalization struct for models that require arbitrary normalization.

  • Removed generic MLClassificationPredictor and MLDenseClassificationPredictor predictors.

  • Removed ability to specify class labels for local .onnx file in project. Use NatML Hub instead.

1.0.0

  • First release.

PreviousVideo RecordingNextOpen Source

Last updated 1 year ago

Was this helpful?

Fixed method blocking for a long time on Android and Windows (#49).

Fixed method 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 ().

Refactored MLDepthFeature.ViewportToWorldPoint method to .

Added support for making edge predictions on the GPU on Android with .

Fixed sporadically crashing on Android.

Fixed ignoring configuration argument when model is fetched from NatML Hub.

Fixed accumulating massive amounts of memory on iOS and macOS.

Refactored MLTextFeature class to .

Refactored MLTextType class to .

Refactored MLModelDataEmbed attribute to .

Added class for making predictions with predictor endpoints.

Added methods for creating an edge model from a predictor tag or an MLModelData instance.

Added enumeration for specifying the compute target for model predictions.

Added data class for configuring the edge model creation process.

Added property for inspecting classification labels required by the model.

Added property for inspecting the aspect mode required in image data consumed by the model.

Added property for inspecting the audio format required in audio data consumed by the model.

Added support for pinning instances with fixed statements.

Added constructor from an MLCloudFeature for making predictions with predictor endpoints.

Added method for copying image data from one image feature to another.

Added implicit conversion from float to .

Added implicit conversion from int to .

Added implicit conversion from bool to .

Added implicit conversion from int[] to .

Updated class to be sealed thus preventing inheritance.

Updated float[] implicit conversion to to have a 1D shape instead of a null shape.

Refactored MLModelData.ComputeTarget enumeration to .

Refactored MLModelData.Normalization enumeration to .

Refactored MLModelData.AudioFormat enumeration to .

Deprecated MLModelData.ComputeTarget.CPUOnly enumeration member. Use instead.

Removed MLEdgeModel constructor. Use method instead.

Removed MLModelData.Deserialize method. Use method instead.

Removed MLModelData.FromHub method. Use method instead.

Removed MLModelData.FromFile method. Use method instead.

Removed MLModelData.computeTarget property. Use property instead.

Removed MLModelData.computeDevice property. Use property instead.

Removed MLModelData.labels property. Use property instead.

Removed MLModelData.normalization property. Use property instead.

Removed MLModelData.audioFormat property. Use property instead.

Added public constructor and moved the class to the top-level NatML namespace.

Added overloads that accepted pixel buffers in managed and unmanaged memory.

Fixed producing incorrect prediction results on WebGL.

Refactored MLDepthFeature.TransformPoint method to .

Removed MLImageFeature.ToTexture method. Use method instead.

Added support for rotated ROI in method.

Added method for transforming detection points from feature space to image space.

Added method for projecting 2D points into 3D space using depth.

Added class for making predictions on a background thread.

Added extension method for converting predictor to an async predictor.

Fixed not respecting when making predictions.

Updated method to accept a Vector2 point instead of individual coordinates.

Added method for performing non-maximum suppression on detection proposals.

Added method for transforming detection rectangles from feature space to image space.

Migrated extension method and class to NatMLX.

Added constructors that accept native arrays to minimize memory copies.

Added setter accessors to indexers allowing for writing values to feature data.

Added support for creating greyscale image MLEdgeFeature features from features.

Added method for extracting an ROI from an image.

Added convenience property for getting width of depth features.

Added convenience property for getting height of depth features.

Added property for checking whether image feature is interleaved or planar.

Added class for making ML predictions on video files.

Added feature type for inspecting video features.

Added abstract class for working with predictors that use depth data.

Added support for audio feature resampling in with and fields.

Added constructor which accepts a pixel buffer.

Added convenience property for getting width of image feature.

Added convenience property for getting height of image feature.

Added methods for copying pixel data from image feature.

Added constructor that accepts a to minimize memory copies.

Added method for inspecting the audio type of a video or audio file.

Added method for inspecting the audio type of an audio clip.

Added method for inspecting the audio type of a video clip.

Added method for inspecting the audio type of a video file in the StreamingAssets folder.

Added constructor that accepts image channels.

Fixed type incorrectly reporting 3 channels instead of 4.

Fixed default normalization standard deviation having 0 for alpha channel.

Added constructor that accepts an MLHubFeature for working with Hub predictors.

Added constructor that accepts an MLHubFeature for working with Hub predictors.

Added constructor that accepts an MLHubFeature for working with Hub predictors.

Added constructor that accepts an MLHubFeature for working with Hub predictors.

Introduced Hub Predictors, which make predictions using server-side processing on .

Added class for authoring predictors that make edge (on-device) predictions.

Added feature type for inspecting instances.

Added MLModelData.tag property to identify the predictor tag from .

Added dictionary for inspecting model metadata.

Added to convert an array feature into a flattened primitive array.

Added to convert an image feature into a .

Added static method for converting arbitrary feature types to image types.

Added implicit conversion from to bool indicating if the type is non-null.

Added implicit conversion from to string.

Fixed image resolution constructor assuming planar format instead of interleaved format.

Moved interface to the top-level NatSuite.ML namespace.

Deprecated IMLModel interface. Cast model to class instead.

Deprecated MLPredictorExtensions.GetImageSize static method. Use instead.

Removed MLModelData.FromFile method. Use instead.

Removed MLModelData.FromStreamingAssets method. Use instead.

Removed dictionary indexers. Use property instead.

Changed and types to to support normalization for alpha channel.

Removed metadata accessors from IMLModel interface. Cast to instead.

Added constructor which accepts a native array feature for easy interop.

Added multi-indexing support to for post-processing native array features.

Added property to get the total number of elements for an array type.

Added property which returns the feature type's shape for convenience.

Added property which returns the feature type's element count for convenience.

Added method to copy feature data into an array.

Added method for working with detection models.

Greatly improved performance and memory pressure when performing multi-indexing with .

Added extension method for correcting detection rects from aspect-scaled images.

Fixed crash when getting native array feature shape for .

Added for working with natural language processing models.

#49
MLStringFeature
MLStringType
MLCloudModel
MLEdgeModel.Configuration
MLFeature
MLFeature
MLFeature
MLFeature
MLImageFeature
MLArrayFeature
MLEdgeModel
MLImageFeature
MLVideoFeature
MLVideoType
MLDepthFeature
NatML Hub
MLEdgeModel
MLTextType
MLTextFeature
NatML Hub
MLFeatureType
MLTextFeature
MLImageType
IMLPredictor
MLEdgeModel
NatML Hub
NatML Hub
MLModel
MLArrayFeature<T>
MLArrayFeature<T>
MLTextFeature
MLImageFeature
NativeArray<T>
MLAudioFeature
NativeArray<byte>
NativeArray<float>
Texture2D
MLModel
Vector4
MLImageFeature.CopyTo
MLImageFeature.CopyTo
MLImageFeature.RegionOfInterest
MLImageFeature.TransformPoint
AspectMode.AspectFit
MLImageFeature.NonMaxSuppression
MLImageFeature.TransformRect
MLImageFeature
MLImageFeature.RegionOfInterest
MLImageFeature
MLImageFeature.width
MLImageFeature.height
MLImageFeature.CopyTo
MLImageFeature
MLImageFeature
MLImageFeature
MLImageFeature.ToTexture
MLImageFeature.mean
std
MLAsyncPredictor
MLAsyncPredictor
MLPredictorExtensions.ToAsync
MLPredictorExtensions.ToAsync
MLAsyncPredictor
MLPredictorExtensions.NonMaxSuppression
MLPredictorExtensions.RectifyAspect
MLArrayFeature
MLArrayFeature
MLArrayFeature.CopyTo(MLArrayFeature)
MLArrayFeature
MLArrayFeature
MLArrayFeature
MLArrayFeature.ToArray
MLArrayFeature<T>
MLArrayFeature<T>
MLArrayFeature<T>.shape
MLArrayFeature<T>.elementCount
MLArrayFeature<T>.CopyTo
MLEdgeModel.ComputeTarget.GPU
MLEdgeModel.ComputeTarget
MLEdgeModel.ComputeTarget
ComputeTarget.CPU
MLEdgeModel.Configuration.computeTarget
MLEdgeModel.Configuration.computeDevice
MLImageType.interleaved
MLImageType
MLImageType.FromType
MLImageType.FromType
sampleRate
channelCount
MLAudioFeature
MLAudioFeature
MLModel.metadata
MLModel.metadata
MLArrayType.elementCount
Unproject
ViewportToWorldPoint
MLDepthFeature.TransformPoint
MLDepthFeature.Sample
MLDepthFeature.width
MLDepthFeature.height
MLTextFeature
MLEdgeModel.Create
MLEdgeModel.Create
MLEdgeModel.Predict
MLEdgeModel.Create
MLEdgeModel.Embed
MLEdgeModel.Create
MLEdgeModel.labels
MLEdgeModel.aspectMode
MLEdgeModel.audioFormat
MLEdgeModel.Normalization
MLEdgeModel.AudioFormat
MLEdgeModel.Create
MLEdgeModel.Create
MLEdgeModel.Create
MLEdgeModel.Create
MLEdgeModel.labels
MLEdgeModel.normalization
MLEdgeModel.audioFormat
MLAudioType.FromFile
MLAudioType.FromAudioClip
MLAudioType.FromVideoClip
MLAudioType.FromStreamingAssets