I update my torch version from 1.3.1 to 1.4.0. But the trainloader created in prior version isn’t working in v1.4.0.
TypeError: rotate() got an unexpected keyword argument ‘fillcolor’
The above mentioned is the error. I visited the file functional.py line no - 729.
The last argument used fillcolor although in the function rotate its fill. I tried to make the changes but it didnt work.
Thanks for your reply. The PIL version is 5.1.0. Also the return in the rotate function on my system is different than the one in the link you mentioned.
For me its: return img.rotate(angle, resample, expand, center, fillcolor=fill)
Just now I uninstalled torch 1.4.0 and reinstalled it, but its the same.