khdlr / augmax

Efficiently Composable Data Augmentation on the GPU with Jax

Home Page:https://augmax.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Syntax Error

guozhaosengzs opened this issue · comments

commented

Small issue, front page of GitHub, on
Augmenting an entire batch of images on the GPU page,

sub_rngs = jax.random.split(rng, images.shape[0])
transformed_images = jax.jit(jax.vmap(transform))(sub_rng, images)

The last sub_rng should be changed to sub_rngs .
Thanks!

Nice catch, thanks for reporting this! :) Fixed with 48e9a99