An error occurred when I ran the SPN.py file in the libs folder. Error is as follows:
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
torch.Size([1, 3, 256, 256])
Traceback (most recent call last):
File "SPN.py", line 155, in
output = spn(x,rgb)
File "/home/cgl/miniconda3/envs/SPN/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "SPN.py", line 138, in forward
out1 = self.left_right(X,G[0],G[1],G[2])
File "/home/cgl/miniconda3/envs/SPN/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "SPN.py", line 17, in forward
sum_abs = G1.abs() + G2.abs() + G3.abs()
RuntimeError: CUDA error: out of memory