latent_sokoban.render¶
latent_sokoban.render
¶
Pure-numpy renderer producing 64x64 RGB uint8 observations.
The default theme is what the shared training set uses. random_theme() produces visually perturbed themes for Split B (visual generalization): different floor/wall colours, sprite tints, checker patterns and pixel noise, while keeping the underlying state fully recoverable.
random_theme
¶
Sample a Split-B style visual perturbation of the default theme.
Source code in latent_sokoban/render.py
render
¶
Render a state as a (64, 64, 3) uint8 image.
With state=None the level's initial configuration is rendered. Goal observations use state=env.goal_state() and show_player=False. Noise (if the theme has any) is drawn from rng; pass a seeded rng for deterministic evaluation.
Source code in latent_sokoban/render.py
render_goal
¶
Goal observation: all boxes on goals, player hidden.