Comments (8)
@kosoraYintai hi,问题定位到应该是在同一个程序里创建多个agent/model导致的。例如train过程创建了一个model和agent(假设layers的参数名是从0命名到9),然后同个程序里在test过程中又创建一遍model和agent的话(layers的参数名会从10命名到19),从而引起load_params参数找不到。
修改后的一个可跑版本:
https://aistudio.baidu.com/user/74287/72745/notebooks/72745.ipynb?redirects=1
from parl.
终于解决了,不过bias也要加参数名ParamAttr
from parl.
收到,我们这边先确认下是否是PARL引起的,如果不是的话我们会转交给AI Studio的同事跟进,感谢反馈。
from parl.
我认为这个更多是静态图引起的歧义,未来支持动态图之后将更少出现这种情况。
from parl.
这个可跑版本,相当于把train和test的过程绑在一起了,这样的话,只能将把train阶段产生的model/agent设置为的全局变量,以供后序的对拍和代码生成等功能使用,那么save/load函数就意义不大了;目前关闭页面后再load还是报错额,只能重新train一遍再test。是否有分离train与test过程的方法?(即:先train,train完save参数,再关闭项目或者关闭页面;然后重启项目或者刷新页面,直接load参数进行test)
from parl.
我理解你的疑惑。这个问题的来源是AI studio采用了类似Jupyter-notebook的方式来跑程序的,之前跑的程序是一直暂存在内存中(context),关闭页面并不代表关闭程序。
这个issue并不是PARL的相关bug导致的,我们即将关闭这个issue。
from parl.
或者可以显式地指定layers的参数名,从而创建多个agent时都是重用参数,例如下面:
from parl.
赞
from parl.
Related Issues (20)
- 运行lesson3的课件代码,无法显示平衡杆的图像效果 HOT 4
- PARL在MacOS系统上用pip安装的时候报错 HOT 2
- LESSON5中的DDPG,将PyCharm中提示未实现抽象函数的类都实现后,reward一直处于10左右
- 救命,安装需要的环境包的时候没有一个包安得上,换了ali的源也一样,ubuntu18.04
- pip安装parl时报错
- 电气研究生跨考控制之我真是小白!!! HOT 1
- import parl时RuntimeError HOT 2
- 询问gym库中OBS对象属性的问题
- 使用python train.py运行tutorials中的代码没有反应
- 渲染图像render=True时,代码报错,图像框一下子闪退 Windows10 HOT 1
- torch的选择问题? HOT 2
- DDPG mujoco error
- It seems `fluid` is absent from paddlepaddle after 2.5, causing issue with backend detection on Windows HOT 1
- Attributerror HOT 6
- pip安装问题 HOT 4
- 分发本地文件如何同步更新呢 HOT 1
- Remaining issues of CI HOT 1
- pettingzoo.utils.deprecated_module.DeprecatedEnv: simple_speaker_listener_v3 is now deprecated, use simple_speaker_listener_v4 instead
- WRN No deep learning framework was found, but it's ok for parallel computation. HOT 1
- ValueError: optimizer got an empty parameter list HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parl.