Torch - 0.4.1
scikit-image - 0.13.1
Python - 3.5.2
Traceback (most recent call last):
File "main.py", line 79, in <module>
main(args)
File "main.py", line 31, in main
solver.test_TPN()
File "/home/mohsin/Text2Colors/solver.py", line 404, in test_TPN
i)
File "/home/mohsin/.local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 477, in __call__
result = self.forward(*input, **kwargs)
File "/home/mohsin/Text2Colors/model/TPN.py", line 86, in forward
gru_input = torch.cat((last_palette, context.squeeze(1)), 1)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 11 and 32 in dimension 0 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:87
When running
python3 main.py --mode test_TPN, I get the following error using the above mentioned configurations: