Traceback (most recent call last):
File “D:/zgy/GCC/GCC-SFCN-master/train.py”, line 204, in <module>
main()
File “D:/zgy/GCC/GCC-SFCN-master/train.py”, line 81, in main
validate(val_loader, net, epoch, restore_transform)
File “D:/zgy/GCC/GCC-SFCN-master/train.py”, line 163, in validate
loss = torch.mean(val_loss).numpy()
TypeError: mean(): argument ‘input’ (position 1) must be Tensor, not list
I have tried your method, but the above error.
And in my program “val_loss = []”.How can I modify?