浏览代码

fix 16 envs soccer

/comms-grad
Andrew Cohen 4 年前
当前提交
55e928cf
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs
  2. 2
      ml-agents/mlagents/trainers/ppo/optimizer_torch.py

4
Project/Assets/ML-Agents/Examples/Soccer/Scripts/AgentSoccer.cs


if (m_BehaviorParameters.TeamId == (int)Team.Blue)
{
team = Team.Blue;
m_Transform = new Vector3(transform.position.x - 3f, .5f, transform.position.z);
m_Transform = new Vector3(transform.position.x - 3f, transform.position.y, transform.position.z);
m_Transform = new Vector3(transform.position.x + 3f, .5f, transform.position.z);
m_Transform = new Vector3(transform.position.x + 3f, transform.position.y, transform.position.z);
}
if (position == Position.Goalie)
{

2
ml-agents/mlagents/trainers/ppo/optimizer_torch.py


memories=memories,
seq_len=self.policy.sequence_length,
)
obs[-1] = comms[1]
obs[-1] = comms[0]
log_probs, entropy, values = self.policy.evaluate_actions(
obs,

正在加载...
取消
保存