File “C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py”, line 479, in call
result = self.forward(*input, **kwargs)
TypeError: forward() takes 2 positional arguments but 33 were given
Could you post your training code so that we can have a look at it?
If that’s not possible, could you create a dummy reproducible example throwing the same error message?
Based on the error, it seems you are somehow unpacking the data while passing it to the model.
To fix your new error message, it seems you would need to add the batch dimension to your input, as currently you are passing it as [C, H, W].
Try something like data = data.unsqueeze(0) before passing it to the model.
The code you’ve posted does not show the code snippet where you pass the input to your model, so it’s still unclear to me, how that many arguments are being passed.