TypeError: __init__() got an unexpected keyword argument 'seed'

Hi why I have this error?
worker_info.dataset.setup_augmentor(worker_id, worker_seed)
File “/content/drive/MyDrive/hover_net-master/dataloader/train_loader.py”, line 68, in setup_augmentor
self.augmentor = self.__get_augmentation(self.mode, seed)
File “/content/drive/MyDrive/hover_net-master/dataloader/train_loader.py”, line 134, in __get_augmentation
seed=rng,
TypeError: init() got an unexpected keyword argument ‘seed’

if mode == “train”:

        shape_augs = [

            # * order = ``0`` -> ``cv2.INTER_NEAREST``

            # * order = ``1`` -> ``cv2.INTER_LINEAR``

            # * order = ``2`` -> ``cv2.INTER_CUBIC``

            # * order = ``3`` -> ``cv2.INTER_CUBIC``

            # * order = ``4`` -> ``cv2.INTER_CUBIC``

            # ! for pannuke v0, no rotation or translation, just flip to avoid mirror padding

            #iaa.seed(rng)

            imgaug.augmenters.geometric.Affine(

                # scale images to 80-120% of their size, individually per axis

                scale={"x": (0.8, 1.2), "y": (0.8, 1.2)},

                # translate by -A to +A percent (per axis)

                translate_percent={"x": (-0.01, 0.01), "y": (-0.01, 0.01)},

                shear=(-5, 5),  # shear by -5 to +5 degrees

                rotate=(-179, 179),  # rotate by -179 to +179 degrees

                order=0,  # use nearest neighbour

                backend="cv2",  # opencv for fast processing

                seed=rng,

            ),

I’m not deeply familiar with imgaug, but based on the 0.4 release notes it seems that the arguments were renamed:

  • Reworked the standard parameters shared by all augmenters. random_state was renamed to seed, e.g. Affine(..., seed=1) is now valid. The parameter deterministic is now deprecated.

so I guess you might use an older release.

That’s right
Thank you so much