当前位置:网站首页>[resolved] "the unity environment took too long to respond. make sure that: \n“
[resolved] "the unity environment took too long to respond. make sure that: \n“
2022-06-23 06:29:00 【Bungehurst】
Running environment
- Anaconda 4.12.0
- Python 3.6.13
- Pytorch 1.10.2
- Ray 1.10.0
- mlagents 0.28.0
- mpi4py 3.0.3
Problem description
When running multi process parallel training ,Unity There will be an error as follows , The program is stuck at this time
"The Unity environment took too long to respond. Make sure that :\n"
mlagents_envs.exception.UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
The environment does not need user interaction to launch
The Agents' Behavior Parameters > Behavior Type is set to "Default" The environment and the Python interface have compatible versions. If you're running on a headless server without graphics support, turn off display by either passing --no-graphics option or build your Unity executable as server build.
The suspicion may be caused by not closing the graphics .
Solution
modify unity3d_env.py file , Directory in :anaconda3/envs/<env_name>/lib/python3.6/site-packages/ray/rllib/env/wrappers/unity3d_env.py.
def __init__(self,
file_name: str = None,
port: Optional[int] = None,
seed: int = 0,
no_graphics: bool = True,
timeout_wait: int = 500,
episode_horizon: int = 1000):
- modify
no_graphicsbyno_graphics: bool = True, Turn off drawing output - modify
timeout_wait, Appropriately increase the timeout waiting time
边栏推荐
- [vivado] xilinxcedstore introduction
- Detailed explanation of redis persistence, master-slave and sentry architecture
- Day_ 01 smart communication health project - project overview and environmental construction
- Learning Tai Chi Maker - esp8226 (11) distribution network with WiFi manager Library
- Leetcode topic resolution remove nth node from end of list
- 熟练利用切片操作
- [database backup] complete the backup of MySQL database through scheduled tasks
- A review: neural oscillation and brain stimulation in Alzheimer's disease
- Fraction to recursing decimal
- Day_ 10 smart health project - permission control, graphic report
猜你喜欢

Runc symbolic link mount and container escape vulnerability alert (cve-2021-30465)

Learning Tai Chi Maker - esp8226 (11) distribution network with WiFi manager Library

Day_02 传智健康项目-预约管理-检查项管理

Day_06 传智健康项目-移动端开发-体检预约

Index - MySQL

Day_ 09 smart health project - mobile terminal development - Mobile quick login and permission control

【Vivado那些事儿】XilinxCEDStore介绍

Layer 2技术方案进展情况

100-300 cases of single chip microcomputer program (detailed explanation of notes)

十一、纺织面料下架功能的实现
随机推荐
给定二叉树的某个节点,返回该节点的后继节点
Gplearn appears assignment destination is read only
Progress of layer 2 technical scheme
How to add libraries for Arduino ide installation
Day_02 传智健康项目-预约管理-检查项管理
索引——MySQL
CPU的功能和基本结构
【Leetcode】431. Encode N-ary Tree to Binary Tree(困难)
Day_ 08 smart health project - mobile terminal development - physical examination appointment
熟练利用切片操作
什么是PDCA循环?如何整合 PDCA 循环和 OKR
Day_04 传智健康项目-预约管理-套餐管理
程序员的真实想法 | 每日趣闻
Day_ 10 smart health project - permission control, graphic report
mongodb项目中可能出现的坑
百度URL參數之LINK?URL參數加密解密研究(代碼實例)
SSM project construction
Day_ 04 smart health project - appointment management - package management
Day_ 12 smart health project jasperreports
坐标 转化