当前位置:网站首页>Cannot re register id: pommeffacompetition-v0 problem solving

Cannot re register id: pommeffacompetition-v0 problem solving

2022-06-22 21:49:00 Guanlongxin

Problem description

stay pommerman Environment , When you expect to modify the base environment , because env The environment name has been registered in Zhongben and an error will be reported .
 Insert picture description here

Cause analysis :

  • Trace the source of the error and find the following code :
     Insert picture description here

Solution :

  • Comment out the above code , And add two lines of code :
print("Remove {} from registry".format(id))  #  This trip is OK without adding 
del registry.env_specs[id]

 Insert picture description here

So for the environment of repeated registration , The registered environment will be deleted first and the new environment will be registered to register in .

Reference material

Cannot re-register id: MultiagentSimple-v0 Problem solving

原网站

版权声明
本文为[Guanlongxin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221953355958.html

随机推荐