Class ModelLoader | Barracuda | 1.0.4
docs.unity3d.com
    Show / Hide Table of Contents

    Class ModelLoader

    Inheritance
    Object
    ModelLoader
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public static class ModelLoader

    Methods

    Load(Byte[], Boolean, Boolean)

    Return an object oriented representation (aka: Model) of a neural network from a byte[] array. By default details are not logged to the console, set verbose to true to see loading details.

    Declaration
    public static Model Load(byte[] stream, bool verbose = false, bool skipWeights = false)
    Parameters
    Type Name Description
    Byte[] stream
    Boolean verbose
    Boolean skipWeights
    Returns
    Type Description
    Model

    Load(String, Boolean, Boolean)

    Return an object oriented representation (aka: Model) of a neural network from a .bc file. By default details are not logged to the console, set verbose to true to see loading details.

    Declaration
    public static Model Load(string filepath, bool verbose = false, bool skipWeights = false)
    Parameters
    Type Name Description
    String filepath
    Boolean verbose
    Boolean skipWeights
    Returns
    Type Description
    Model

    Load(NNModel, Boolean, Boolean)

    Return an object oriented representation (aka: Model) of a neural network from a binary representation of type NNModel. By default details are not logged to the console, set verbose to true to see loading details.

    Declaration
    public static Model Load(NNModel model, bool verbose = false, bool skipWeights = false)
    Parameters
    Type Name Description
    NNModel model
    Boolean verbose
    Boolean skipWeights
    Returns
    Type Description
    Model

    LoadFromStreamingAssets(String, Boolean, Boolean)

    Return an object oriented representation (aka: Model) of a neural network from a .bc file from the the streaming asset folder. By default details are not logged to the console, set verbose to true to see loading details.

    Declaration
    public static Model LoadFromStreamingAssets(string filename, bool verbose = false, bool skipWeights = false)
    Parameters
    Type Name Description
    String filename
    Boolean verbose
    Boolean skipWeights
    Returns
    Type Description
    Model
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023