ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Support Headless Rendering

Open duongnb09 opened this issue 3 years ago • 4 comments
trafficstars

Hi,

I have seen multiple topics asking about the headless rendering capability with Unity. Here are a few of them: https://github.com/Unity-Technologies/ml-agents/issues/2185, https://github.com/Unity-Technologies/ml-agents/issues/3261, https://github.com/Unity-Technologies/ml-agents/issues/1050. Some folks mentioned in those threads that Unity has been working on it since 2019. Do we know if the feature is ready to use now in 2022? I know Unity Simulation Pro supports headless rendering with multiple GPUs which seems like the Unity team has already figured out how to make it work.

duongnb09 avatar Jun 30 '22 04:06 duongnb09

+1 !! I desperately need to figure how to do this for my project 😇🙏🏽

leo2r avatar Jun 30 '22 07:06 leo2r

+1

johndevor avatar Jul 01 '22 17:07 johndevor

You can do headless rendering with pyvirtualdisplay, integrating it in MLA would be nice, but it's not too hard to make it work yourself

RedTachyon avatar Jul 02 '22 14:07 RedTachyon

@RedTachyon Thanks for the info! But pyvirtualdisplay doesn't support GPU/Hardware Acceleration which means it will be very slow and the rendering quality sometime wouldn't be good enough.

duongnb09 avatar Jul 02 '22 17:07 duongnb09