I am using azure VM for ml-agents, it works fine when I doing normal observations.
But when I added visual observations in my agent, I got the Environment Connection Timeout.
I have the same problem (Environment Connection Timeout). I’m trying to use mlagents-learn to perform training on a server (i.e. headless) build of the Visual Pyramids task with visual observations. It’d be great to get some guidance on how to set up Xvfb!
Hi,
We do not officially support running ml-agents headless on Linux.
The issue you pointed (mlagents + xvfb · Issue #1786 · Unity-Technologies/ml-agents · GitHub) to contains instructions on how to install xvfb on Ubuntu 18.04. First, you need to make sure you have the correct version of Ubuntu as different versions of Ubuntu require different versions of xvfb. Make sure you did not get any error during the installation of xvfb.
You then need to run mlagents-learn with xvfb. To do so, you need to call “xvfb-run mlagents-learn” to run the mlagents command with xvfb.