3d brain tumor segmentation using autoencoder

i run the 3d brain tumor segmentation using autoencoder github code on colab and during model runing i got the error: /usr/local/lib/python3.10/dist-packages/keras/src/utils/generic_utils.py in validate_kwargs(kwargs, allowed_kwargs, error_message)
512 for kwarg in kwargs:
513 if kwarg not in allowed_kwargs:
→ 514 raise TypeError(error_message, kwarg)

TypeError: (‘Keyword argument not understood:’, ‘groups’) 515
516

TypeError: (‘Keyword argument not understood:’, ‘groups’)

1 Like

how to resolve these kind of error

1 Like

Could you please share the full code you are using and the library versions?

1 Like

Make sure to check the versions of libraries being used and there’s no typo in the argument name. Btw, it’s generally clearer to use different names for variables and arguments (input_shape=input_shape) to avoid confusion, unless you are forced to use the same name.

2 Likes

Hello @itsankit

Your error is stating that

Kwargs=keywords arguments used first for loop and then if loop under the for loop used a kwargs(keyword arguments) i.e. ‘groups’ which the programming could not understand!!! as it mentions if a keyword argument is not allowed then raise a Type error msg.

So make sure you are using the right keywords according to the GitHub code you are referring to.

I suppose this is codes are not part of DLS specialisation?? If not then kindly move the query to AI discussion or to the respective category of specialisation, course, week and assignment name.

For better assistance, we will require more information about the GitHub link you are using and if you are running the codes in your local computer environment.

Regards
DP