Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Bug Running ml-agents with visual observations on headless server with xvfb-run causes repeated frames

Discussion in 'ML-Agents' started by Tommythegamemaker, Oct 19, 2022.

  1. Tommythegamemaker


    Jun 21, 2020
    When I run my experiment locally it works perfectly and I am available to get a smooth movie of what my agent sees, but when I run it on a headless server with xvfb-run, the visual observations get repeated for 6-8 frames so that the movie that I generate is frozen for 6-8 frames at a time.

    I know this is somewhat a vague description and it is with a custom environment so I won't provide reproduction steps but I was just wondering if anyone had ever encountered this bug or might have some idea what might be causing it.

    The xvfb command I am using is `xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' python -batchmode`

    ( is where I initialize the environment, collect the observations from the environment and turn them into a movie)