docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct CompressionSpec

    A description of the compression used for observations.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.MLAgents.Sensors
    Assembly: solution.dll
    Syntax
    public struct CompressionSpec
    Remarks

    Most ISensor implementations can't take advantage of compression, and should return CompressionSpec.Default() from their ISensor.GetCompressionSpec() methods. Visual observations, or mulitdimensional categorical observations (for example, image segmentation or the piece types in a match-3 game board) can use PNG compression reduce the amount of data transferred between Unity and the trainer.

    Constructors

    Name Description
    CompressionSpec(SensorCompressionType, int[])

    Return a CompressionSpec indicating possible compression.

    Properties

    Name Description
    CompressedChannelMapping

    The mapping of the channels in compressed data to the actual channel after decompression.

    SensorCompressionType

    The compression type that the sensor will use for its observations.

    Methods

    Name Description
    Default()

    Return a CompressionSpec indicating no compression. This is recommended for most sensors.

    In This Article
    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