hi, @akib62 I got this error when I am testing the model from a separate file called test.py. As I didn’t find a solution I have changed the methodology to do the testing. I don’t have a solution to this I’m sorry
The unet and train.py is working fine. But at the time of test.py, it is showing the error (question title and description) is the same for me.
In my understanding, when, we are running test.pyhere and any images going through the pre-trained unet modelhere which requires n_channels!
But from the test.py we are not passing any arguments like n_channels because it is already defined! Most probably for that reason, the error is showing.
Hi @akib62 How you are running the test.py? what arguments you are passing is the same one im getting init() missing 1 required positional argument: ‘hparams’ this error now