浏览代码

cp

/docs-update
Hunter-Unity 5 年前
当前提交
a3f7b980
共有 4 个文件被更改,包括 49 次插入2 次删除
  1. 36
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStatic.unity
  2. 11
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
  3. 2
      config/ppo/WalkerDynamic.yaml
  4. 2
      config/ppo/WalkerStatic.yaml

36
Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStatic.unity


propertyPath: m_Name
value: WalkerPair (2)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x
value: -500

propertyPath: m_Name
value: WalkerPair (1)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x
value: -500

propertyPath: m_Name
value: WalkerPair (4)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x
value: -500

propertyPath: m_Name
value: WalkerPair (7)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x
value: -500

propertyPath: m_Name
value: WalkerPair (3)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x
value: -500

- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_Name
value: WalkerPair (8)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x

propertyPath: m_Name
value: WalkerPair (6)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x
value: -500

- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_Name
value: WalkerPair (5)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x

- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_Name
value: WalkerPair (9)
objectReference: {fileID: 0}
- target: {fileID: 1707482909815496, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4878380427462518, guid: 94dced9d2186d4a76b970fb18ef6d7a6, type: 3}
propertyPath: m_LocalPosition.x

11
Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs


directionIndicator.rotation = m_WalkDirLookRot;
}
public int fuTimer = 0;
public float fudeltatime = 0;
public float deltatime = 0;
void Update()
{
deltatime = Time.deltaTime;
}
fuTimer++;
fudeltatime = Time.fixedDeltaTime;
if (detectTargets)
{
foreach (var bodyPart in m_JdController.bodyPartsDict.Values)

2
config/ppo/WalkerDynamic.yaml


trainer: ppo
batch_size: 2048
beta: 0.005
buffer_size: 163840 #20480
buffer_size: 40960
epsilon: 0.2
hidden_units: 512
lambd: 0.95

2
config/ppo/WalkerStatic.yaml


trainer: ppo
batch_size: 2048
beta: 0.005
buffer_size: 20480
buffer_size: 40960
epsilon: 0.2
hidden_units: 512
lambd: 0.95

正在加载...
取消
保存