You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loss = loss_fn(pred, gt[:,:,:,:])
File "/home/deepenai/SandeepMenon/venv-e3d/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/deepenai/SandeepMenon/venv-e3d/lib/python3.6/site-packages/torch/nn/modules/loss.py", line 962, in forward
ignore_index=self.ignore_index, reduction=self.reduction)
File "/home/deepenai/SandeepMenon/venv-e3d/lib/python3.6/site-packages/torch/nn/functional.py", line 2468, in cross_entropy
return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
File "/home/deepenai/SandeepMenon/venv-e3d/lib/python3.6/site-packages/torch/nn/functional.py", line 2266, in nll_loss
ret = torch._C._nn.nll_loss2d(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: 1only batches of spatial targets supported (3D tensors) but got targets of size: : [4, 2, 96, 128]
The text was updated successfully, but these errors were encountered:
The target and output tensors for the objectmast task is [batch_size, 2, 96, 128]
This fails in the loss calculation with CrossEntropy
VPGNet-Pytorch/trainval1.py
Line 67 in 250ae3e
With the error
The text was updated successfully, but these errors were encountered: