result = self.forward(*input, **kwargs)
File “test.py”, line 141, in forward
x = self.stn(x)
File “test.py”, line 135, in stn
grid = F.affine_grid(theta, x.size())
File “/home/sohrab/anaconda3/lib/python3.5/site-packages/torch/nn/functional.py”, line 1527, in affine_grid
return AffineGridGenerator.apply(theta, size)
File “/home/sohrab/anaconda3/lib/python3.5/site-packages/torch/nn/_functions/vision.py”, line 98, in forward
grid = torch.bmm(base_grid.view(N, H * W, 3), theta.transpose(1, 2))
RuntimeError: invalid argument 2: equal number of batches expected, got 1, 49 at /home/sohrab/pytorch/aten/src/TH/generic/THTensorMath.c:1634
I am trying to input my data into the network but i keep getting this error, my dimensions of my images are (1,1,100,100)
im not sure what to do any help would be incredibly appreciated