Comments (8)
我没有遇到过这个问题,要你不debug一下,给我发一下在报错的时候具体的数据是什么,可能是batch里的u的形式不对
from marl-algorithms.
我在Linux和Windows上都运行过,Linux会出现这个问题,和 #44 一样,但是Windows没遇到过这个问题
from marl-algorithms.
我在Linux和Windows上都运行过,Linux会出现这个问题,和 #44 一样,但是Windows没遇到过这个问题
好的, 我来debug一下问题
from marl-algorithms.
我没有遇到过这个问题,要你不debug一下,给我发一下在报错的时候具体的数据是什么,可能是batch里的u的形式不对
我在reinforce.py
的 learn()函数里面的报错的那一行 batch[key] = torch.tensor(batch[key], dtype=torch.long)
打上了断点
debug模式下 batch
的内容, 如下面图片所示
展开 batch 里面的 u
, type显示为 numpy.object_
, 如下图片所示
from marl-algorithms.
你这个问题应该是训练一段时间出现把?应该是 roolout.py里,66行,actions.append(action),等到epsilon很小时,每次选择的动作是神经网络得到的,导致action是一个tensor了,不是一个int型,然后在train的时候类型转换出错。我一会把这个bug改一下,你也可以自己改你的代码,在actions.append(action)之前把action改成int型就好了
from marl-algorithms.
我已经更新了代码,另外由于rollout.py有两个generate_episode()函数,所以两个函数都需要改一下,你试一下修改后会不会出现这个问题
from marl-algorithms.
我已经更新了代码,另外由于rollout.py有两个generate_episode()函数,所以两个函数都需要改一下,你试一下修改后会不会出现这个问题
修改后我的成功了, 谢谢作者您的耐心解答, 抱歉占用了您的很多时间, 以后如果有我能帮到作者你的, 我一定会报答作者您.
from marl-algorithms.
你这个问题应该是训练一段时间出现把?应该是 roolout.py里,66行,actions.append(action),等到epsilon很小时,每次选择的动作是神经网络得到的,导致action是一个tensor了,不是一个int型,然后在train的时候类型转换出错。我一会把这个bug改一下,你也可以自己改你的代码,在actions.append(action)之前把action改成int型就好了
对, 我这个问题是 训练一段时间后出现的
from marl-algorithms.
Related Issues (20)
- 关于参数reuse_network HOT 3
- 关于COMA critic网络输入 HOT 3
- 关于g2anet中hard_weights的问题 HOT 1
- 可以使用其他的环境跑这里面的算法吗? HOT 1
- 自定义的环境能使用这里面的算法跑吗? HOT 1
- custom data traing HOT 1
- 策略函数中的eval_hidden和target_hidden如何理解 HOT 2
- None
- 关于qtran_base.py中_get_individual_q的一个小问题 HOT 2
- 关于qtran的问题 HOT 1
- Translate code comments to English
- Quick Start 会报错,请问是什么问题。 HOT 2
- 关于GA-Common和GA-AC的问题 HOT 1
- 关于evaluate的胜率
- 关于attention的训练依据的问题 HOT 1
- 关于在别的环境应用qmix出现episodes rewards dropout的问题 HOT 2
- 关于训练得到的模型的问题 HOT 1
- 关于get_action_weights的问题 HOT 1
- 关于涉及环境参数的一些疑问 HOT 1
- 关于QMIX的Trick:Eligibility traces 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 marl-algorithms.