New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码调试问题 #10
Comments
Please do not include the 'obs_agent_id' and 'obs_last_action' into the input. You should refer to default.yaml and set these two options to false. |
I think you might get the wrong version of SMAC. Please check whether you get the original version of Starcraft2.py.. Besides, the output of arranged_obs.size() should be [1,5,55]. The first dimension is for the batchsize and the second dimension is for the agent number. While in your output, this number is 3. In my mind, size [1,3,30] looks like the pattern for battle scenario 3m. You should check whether you have set this map name in your configuration file. |
Thank you for your quick answer. At my side the input size actually is [1,3,30] |
@ouyangshixiong you can try to set the args in launch.json as this |
Thank you. The issue is fixed for me now. |
我尝试debug您的代码。
1.VSCode配置(无法配置README.md 里面要求的参数:with env_args.map_name=5m_vs_6m):
2.使用CPU运行
3.发现basic_controller.py的方法_build_inputs_transformer有数组尺寸错误问题:
显然,arranged_obs摊平的尺寸为90。
下面这行代码试图把它的尺寸修改为(-1,11,5)
reshaped_obs = arranged_obs.view(-1, 1 + (self.args.enemy_num - 1) + self.args.ally_num, self.args.token_dim)
这显然是不行的,麻烦您抽空帮忙解答。截图如下
The text was updated successfully, but these errors were encountered: