Skip to content

Commit

Permalink
feat(overcooked): more viz JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiges committed Jun 29, 2024
1 parent 0182667 commit 5920c21
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 146 deletions.
4 changes: 2 additions & 2 deletions jaxmarl/viz/grid_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def downsample(img, factor):
img = img.reshape(
[img.shape[0] // factor, factor, img.shape[1] // factor, factor, 3]
)
img = img.mean(axis=3)
img = img.mean(axis=1)
img = img.mean(axis=3, dtype=jnp.uint8)
img = img.mean(axis=1, dtype=jnp.uint8)

return img

Expand Down
Loading

0 comments on commit 5920c21

Please sign in to comment.