#3066·nnUNet

TypeError: nnUNetTrainer.__init__() takes from 5 to 6 positional arguments but 7 were given

Author: ngvananh2508Created Sep 11, 2026Updated Sep 11, 2026
Labelsquestion

I customized the learning rate and weight decay of SGD like this:

Image

When I ran training, it happend the issue as the tittle:

Image

Could you please help me to solve this issue? The version of nnUNetv2 is 2.8.1.

Thank you very much.