Skip to content

Commit

Permalink
Merge pull request #1002 from Unity-Technologies/hotfix-0.4b
Browse files Browse the repository at this point in the history
Hotfix 0.4.0b
  • Loading branch information
awjuliani authored Jul 24, 2018
2 parents d37bfb6 + 9b478c6 commit 1ead1cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/Learning-Environment-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ If you would like to contribute environments, please see our
* -0.0025 for every step.
* +1.0 if the block touches the goal.
* Brains: One brain with the following observation/action space.
* Vector Observation space: (Continuous) 15 variables corresponding to position and velocities of agent, block, and goal.
* Vector Observation space: (Continuous) 70 variables corresponding to 14 ray-casts each detecting one of three possible objects (wall, goal, or block).
* Vector Action space: (Continuous) Size of 2, corresponding to movement in X and Z directions.
* Visual Observations (Optional): One first-person camera. Use `VisualPushBlock` scene.
* Reset Parameters: None.
Expand Down
3 changes: 2 additions & 1 deletion python/unityagents/rpc_communicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@


class UnityToExternalServicerImplementation(UnityToExternalServicer):
parent_conn, child_conn = Pipe()
def __init__(self):
self.parent_conn, self.child_conn = Pipe()

def Initialize(self, request, context):
self.child_conn.send(request)
Expand Down
5 changes: 2 additions & 3 deletions unity-environment/Assets/ML-Agents/Scripts/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,9 @@ public abstract class Agent : MonoBehaviour
void OnEnable()
{
textureArray = new Texture2D[agentParameters.agentCameras.Count];
for (int i = 0; i < brain.brainParameters.cameraResolutions.Length; i++)
for (int i = 0; i < agentParameters.agentCameras.Count; i++)
{
textureArray[i] = new Texture2D(brain.brainParameters.cameraResolutions[i].width,
brain.brainParameters.cameraResolutions[i].height, TextureFormat.RGB24, false);
textureArray[i] = new Texture2D(1, 1, TextureFormat.RGB24, false);
}
id = gameObject.GetInstanceID();
Academy academy = Object.FindObjectOfType<Academy>() as Academy;
Expand Down

0 comments on commit 1ead1cc

Please sign in to comment.