当前位置:网站首页>[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
边栏推荐
- Day_02 传智健康项目-预约管理-检查项管理
- SSM project construction
- Design scheme of Small PLC based on t5l1
- Day_ 05 smart communication health project - appointment management - appointment settings
- [database backup] complete the backup of MySQL database through scheduled tasks
- Illuminate\Support\Collection 去重 unique 列表去重
- mysql读已提交和可重复度区别
- 图解 Google V8 # 18 :异步编程(一):V8是如何实现微任务的?
- Leetcode topic resolution remove nth node from end of list
- (1)基础学习——vim编辑器常用快捷操作命令
猜你喜欢

程序员的真实想法 | 每日趣闻

又到半年总结时,IT人只想躺平

mysql读已提交和可重复度区别

Visual studio debugging tips

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

How to query fields separated by commas in MySQL as query criteria - find_ in_ Set() function

Day_07 传智健康项目-Freemarker

Day_ 12 smart health project jasperreports
![[cocos2d-x] erasable layer:erasablelayer](/img/6e/1ee750854dfbe6a0260ca12a4a5680.png)
[cocos2d-x] erasable layer:erasablelayer
百度URL參數之LINK?URL參數加密解密研究(代碼實例)
随机推荐
百度URL参数之LINK?URL参数加密解密研究(代码实例)
The central network and Information Technology Commission issued the National Informatization Plan for the 14th five year plan, and the network security market entered a period of rapid growth
mysql以逗号分隔的字段作为查询条件怎么查——find_in_set()函数
Ant Usage Summary (III): batch packaging apk
[open source project] excel export Lua configuration table tool
Day_08 传智健康项目-移动端开发-体检预约
mongodb项目中可能出现的坑
【Leetcode】431. Encode N-ary Tree to Binary Tree(困难)
微软面试题:打印折纸的折痕
c#数据库报错问题大家帮我看看吧
Xray linkage crawlergo automatic scanning pit climbing record
[cocos2d-x] screenshot sharing function
Given a node of a binary tree, return the successor node of the node
给定二叉树的某个节点,返回该节点的后继节点
Wechat tried out the 1065 working system, and was forced to leave work at 18:00; It is said that Apple will no longer develop off screen fingerprint identification; Amd chief independent GPU architect
Day_05 传智健康项目-预约管理-预约设置
Visual studio debugging tips
射频内容学习
Detailed explanation of redis persistence, master-slave and sentry architecture
sklearn sklearn中的模型调参利器 gridSearchCV(网格搜索)