Skip to main content

Neural Network Model Preloading

NSDK's awareness features rely on neural network models to know how to draw each pixel in an AR environment. Because these models are not included with NSDK, the SDK must download them the first time an awareness feature starts, resulting in long load times that can negatively impact the user experience. To prevent this download delay, NSDK provides the Model Preloading feature, allowing applications to download the model beforehand and reduce startup latency when using awareness features. (There will still be some latency because of the time that model initialization takes, just not as much as downloading the full model.)

Applications can either register an existing local model file or request that NSDK download one.

Known Limitations

  • Model decryption still occurs when the feature starts, so some latency is still expected when starting awareness features.
  • NSDK resets to the default model file definitions at startup, and custom local model file registrations from previous sessions are not retained. To use a local model file downloaded by the application, the application must register the file(s) with RegisterModel at the start of each AR session.

More Information

See How to Use Neural Network Model Preloading for details on using this feature in your NSDK project.