Skip to content

Commit 1ead1cc

Browse files
authored
Merge pull request #1002 from Unity-Technologies/hotfix-0.4b
Hotfix 0.4.0b
2 parents d37bfb6 + 9b478c6 commit 1ead1cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/Learning-Environment-Examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ If you would like to contribute environments, please see our
9999
* -0.0025 for every step.
100100
* +1.0 if the block touches the goal.
101101
* Brains: One brain with the following observation/action space.
102-
* Vector Observation space: (Continuous) 15 variables corresponding to position and velocities of agent, block, and goal.
102+
* Vector Observation space: (Continuous) 70 variables corresponding to 14 ray-casts each detecting one of three possible objects (wall, goal, or block).
103103
* Vector Action space: (Continuous) Size of 2, corresponding to movement in X and Z directions.
104104
* Visual Observations (Optional): One first-person camera. Use `VisualPushBlock` scene.
105105
* Reset Parameters: None.

python/unityagents/rpc_communicator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616

1717
class UnityToExternalServicerImplementation(UnityToExternalServicer):
18-
parent_conn, child_conn = Pipe()
18+
def __init__(self):
19+
self.parent_conn, self.child_conn = Pipe()
1920

2021
def Initialize(self, request, context):
2122
self.child_conn.send(request)

unity-environment/Assets/ML-Agents/Scripts/Agent.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,9 @@ public abstract class Agent : MonoBehaviour
257257
void OnEnable()
258258
{
259259
textureArray = new Texture2D[agentParameters.agentCameras.Count];
260-
for (int i = 0; i < brain.brainParameters.cameraResolutions.Length; i++)
260+
for (int i = 0; i < agentParameters.agentCameras.Count; i++)
261261
{
262-
textureArray[i] = new Texture2D(brain.brainParameters.cameraResolutions[i].width,
263-
brain.brainParameters.cameraResolutions[i].height, TextureFormat.RGB24, false);
262+
textureArray[i] = new Texture2D(1, 1, TextureFormat.RGB24, false);
264263
}
265264
id = gameObject.GetInstanceID();
266265
Academy academy = Object.FindObjectOfType<Academy>() as Academy;

0 commit comments

Comments
 (0)