docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GenerativeAIBackend

    Inheritance
    object
    GenerativeAIBackend
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Muse.Common
    Assembly: solution.dll
    Syntax
    public class GenerativeAIBackend

    Fields

    Name Description
    k_ServiceBaseURL
    k_TextToImageServiceBaseURL

    Properties

    Name Description
    AccessToken

    Methods

    Name Description
    ControlNetGenerate(string, string, string, ImageVariationSettingsRequest, Action<TextToImageResponse, string>)
    DownloadArtifact<TArtifactType>(Artifact<TArtifactType>, Action<object, string>)

    Download texture image from the Cloud

    GenerateInpainting(string, string, Texture2D, MaskType, TextToImageRequest, Action<TextToImageResponse, string>)
    GetArtifactStatus<TArtifactType>(Artifact<TArtifactType>, ArtifactProgressCallback, bool)

    Starts polling for the status of artifact generation. Will return the status through the supplied callback. This is not cancellable as many chained web requests can be generated by polling until copleted. TODO: Don't do that.

    RequestStyleTrain(string, string, string[], Action<StyleTrainResponse, string>)

    Train a style using a set of textures

    RequestStyleTrainStatus(string, Action<StyleTrainStatusResponse, string>)
    SendJSONRequest(string, object, Action<object, string>)
    SendRequest(UnityWebRequest, Action<object, string>)
    VariateImage(string, string, string, ImageVariationSettingsRequest, Action<TextToImageResponse, string>)

    Initiate Image variation generation on Cloud. It only allocates texture ids and actual generation occurs in background. Use RequestStatus to query progress and DownloadImage to download intermediate or final result.

    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