strokenet
strokenet copied to clipboard
Dimension cannot match
Hi, I tried to run train.py but got this error.
Traceback (most recent call last):
File "/home/shuwen/projects/strokenet/train.py", line 184, in
It seems that MSE(images, approx) returns a shape (batch_size, 1, 256, 256) and penalty returns a shape (batch_size, 15, 3).
When I removed the arguments here MSE = torch.nn.MSELoss(reduce=False, size_average=False).to(device) and changed it to MSE = torch.nn.MSELoss().to(device), the output is just a dot. Any idea how to fix it?