Skip to content

Fix num_layers calculation in _get_obs_shape_single of OvercookedV2#177

Open
joonsong-lee wants to merge 2 commits intoFLAIROx:mainfrom
joonsong-lee:shape_error_fix
Open

Fix num_layers calculation in _get_obs_shape_single of OvercookedV2#177
joonsong-lee wants to merge 2 commits intoFLAIROx:mainfrom
joonsong-lee:shape_error_fix

Conversation

@joonsong-lee
Copy link
Copy Markdown

@joonsong-lee joonsong-lee commented Apr 9, 2026

The channel computing logic from original code is
num_layers = 18 + 4 * (num_ingredients + 2)
But, it should be
num_layers = 17 + N + 4 * (num_ingredients + 2)
since 17(Invariable objects[5 position and directions for each agents, wall, goal, pot, plate pile, recipe indicator, button, pot timer] + 4*(num_ingredients+2) objects[Inventory for each agents, recipe, grid] + N(ingredient pile)).

Updated calculation of num_layers to include a variable N for ingredient piles.
@joonsong-lee joonsong-lee changed the title Fix num_layers calculation in _get_obs_shape_single Fix num_layers calculation in _get_obs_shape_single of OvercookedV2 Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant