an unexpected keyword argument
aidarikako opened this issue · 3 comments
I ran the train.py,but got a error.'TypeError: init() got an unexpected keyword argument 'align_corners''.It occured at globalNet.py,line 56.
I don't know how to fix it,can you help me?thank you
This project is now supporting PyTorch version >= 0.4.1. If your version is lower than that (PyTorch 0.3.1 for example), there is no align_corners
parameter for upsample operation. And you need to do other adjustments to use this code.
I guess updating PyTorch version could be more convenient.
This project is now supporting PyTorch version >= 0.4.1. If your version is lower than that (PyTorch 0.3.1 for example), there is no
align_corners
parameter for upsample operation. And you need to do other adjustments to use this code.
I guess updating PyTorch version could be more convenient.
Thank you for your help.I find that my PyTorch version=0.3.1.I'll upgrade it and try again.
Seems you have solved the problem. I'll close this issue. If you still have any problem on it, feel free to reopen it.