Closed wanna-fly closed 4 years ago
you need install matplotlib
I have also meet this problem, as I follow your guidance ,I solve this problem, thanks a lot.
Seems that this problem is related to pytorch version. They changed 'epoch = self.optimizer.get_last_epoch() + 1' to 'epoch = self.optimizer.get_last_epoch()' from test() in their commits on Aug 21, 2019 to support PyTorch 1.2.0. This is why this error occur.
Fabulous! Thanks!
When I tried to train the EDSR model using default settings in this code, an error about function plt.plot occurred.
I think code of line 106 in /src/loss/initpy
axis = np.linspace(1, epoch, epoch)
should be modified intoaxis = np.linspace(0, epoch+1, epoch+1)
as well as the 108th line of code in /src/utility. And it does work for me.