Skip to content

Commit 05425b4

Browse files
author
Ruo-Ping Dong
authored
Update visual stacking doc (#5391)
1 parent a3b6167 commit 05425b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/Learning-Environment-Design-Agents.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,6 @@ The steps for enabling stacking depends on how you generate observations:
370370
Generally, this should happen in the `CreateSensor()` method of your
371371
`SensorComponent`.
372372

373-
Note that stacking currently only supports for vector observations; stacking
374-
for visual observations is not supported.
375-
376373
#### Vector Observation Summary & Best Practices
377374

378375
- Vector Observations should include all variables relevant for allowing the
@@ -432,6 +429,10 @@ have a unique name so that they can be sorted deterministically (the name must
432429
be unique for that Agent, but multiple Agents can have a Sensor Component with
433430
the same name).
434431

432+
Visual observations also support stacking, by specifying `Observation Stacks`
433+
to a value greater than 1. The visual observations from the last `stackSize-1`
434+
steps will be stacked on the last dimension (channel dimension).
435+
435436
When using `RenderTexture` visual observations, a handy feature for debugging is
436437
adding a `Canvas`, then adding a `Raw Image` with it's texture set to the
437438
Agent's `RenderTexture`. This will render the agent observation on the game

0 commit comments

Comments
 (0)