docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ModelLoader

    Provides methods for loading models.

    Inheritance
    object
    ModelLoader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Sentis
    Assembly: Unity.Sentis.dll
    Syntax
    public static class ModelLoader

    Methods

    Load(Stream)

    Loads a model that has been serialized to a stream.

    Declaration
    public static Model Load(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream to load the serialized model from.

    Returns
    Type Description
    Model

    The loaded Model.

    Load(string)

    Loads a model that has been serialized to disk.

    Declaration
    public static Model Load(string path)
    Parameters
    Type Name Description
    string path

    The path of the binary serialized model

    Returns
    Type Description
    Model

    The loaded Model

    Load(ModelAsset)

    Converts a binary ModelAsset representation of a neural network to an object-oriented Model representation.

    Declaration
    public static Model Load(ModelAsset modelAsset)
    Parameters
    Type Name Description
    ModelAsset modelAsset

    The binary ModelAsset model

    Returns
    Type Description
    Model

    The loaded Model

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)