浏览代码

4096 batch

/asymm-envs
Andrew Cohen 4 年前
当前提交
31a5b2ee
共有 3 个文件被更改,包括 8 次插入8 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab
  2. 8
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs
  3. 4
      config/ppo/Tennis.yaml

4
Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab


VectorActionSize: 03000000
VectorActionDescriptions: []
VectorActionSpaceType: 1
m_Model: {fileID: 11400000, guid: 02efff6cde0914e34bcc06eac03de48a, type: 3}
m_Model: {fileID: 11400000, guid: efc1607ab4c1542689d1451983e7dc63, type: 3}
m_InferenceDevice: 0
m_BehaviorType: 0
m_BehaviorName: Tennis

VectorActionSize: 03000000
VectorActionDescriptions: []
VectorActionSpaceType: 1
m_Model: {fileID: 11400000, guid: 02efff6cde0914e34bcc06eac03de48a, type: 3}
m_Model: {fileID: 11400000, guid: efc1607ab4c1542689d1451983e7dc63, type: 3}
m_InferenceDevice: 0
m_BehaviorType: 0
m_BehaviorName: Tennis

8
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs


Quaternion deltaRotation = Quaternion.Euler(zAxis * rotateZ);
m_AgentRb.MoveRotation(m_AgentRb.rotation * deltaRotation);
if (invertX && transform.position.x - transform.parent.transform.position.x < -m_InvertMult * 3f ||
!invertX && transform.position.x - transform.parent.transform.position.x > -m_InvertMult * 3f)
if (invertX && transform.position.x - transform.parent.transform.position.x < -m_InvertMult ||
!invertX && transform.position.x - transform.parent.transform.position.x > -m_InvertMult )
transform.position = new Vector3(-m_InvertMult * 3f + transform.parent.transform.position.x,
transform.position = new Vector3(-m_InvertMult + transform.parent.transform.position.x,
transform.position.y,
transform.position.z);
}

//timePenalty -= m_Existential;
timePenalty -= m_Existential;
m_TextComponent.text = score.ToString();
}

4
config/ppo/Tennis.yaml


behaviors:
Tennis:
trainer: ppo
batch_size: 2048
buffer_size: 20480
batch_size: 4096
buffer_size: 40960
beta: 0.02
epsilon: 0.2
hidden_units: 512

正在加载...
取消
保存