Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to close render using python API?

Discussion in 'ML-Agents' started by jayico, Jan 25, 2022.

  1. jayico

    jayico

    Joined:
    Oct 21, 2021
    Posts:
    6
    I created a unity environment and trying to train using python API. In order to speed up, I'd like to close the render unity environment, but haven't found any methods in python API.
     
  2. ChillX

    ChillX

    Joined:
    Jun 16, 2016
    Posts:
    145
    Run this
    mlagents-learn --help


    --no-graphics Whether to run the Unity executable in no-graphics
    mode (i.e. without initializing the graphics driver.
    Use this only if your agents don't use visual
    observations. (default: False)


    Note: Requires compiled executable of the Unity Environment