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
Traceback (most recent call last):
File "test.py", line 39, in
model.test()
File "/media/roman/storage/Pose-Transfer/models/PATN.py", line 120, in test
self.fake_p2 = self.netG(G_input)
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/roman/storage/Pose-Transfer/models/model_variants.py", line 166, in forward
return nn.parallel.data_parallel(self.model, input, self.gpu_ids)
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 204, in data_parallel
return module(*inputs[0], **module_kwargs[0])
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/roman/storage/Pose-Transfer/models/model_variants.py", line 149, in forward
x1, x2, _ = model(x1, x2)
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/roman/storage/Pose-Transfer/models/model_variants.py", line 64, in forward
x1_out = x1_out * att
RuntimeError: The size of tensor a (64) must match the size of tensor b (16) at non-singleton dimension 3
The text was updated successfully, but these errors were encountered:
Image input is of the shape w=176,h=256, but unable to perform inference. getting the same error as above.
RuntimeError: The size of tensor a (64) must match the size of tensor b (44) at non-singleton dimension 3
python test.py --dataroot ./dataset --name fashion_PATN --model PATN --phase test --dataset_mode keypoint --norm instance --batchSize 1 --resize_or_crop no --gpu_ids 0 --BP_input_nc 18 --no_flip --which_model_netG PATN --checkpoints_dir ./checkpoints/DeepFashion/ --pairLst ./dataset/pair.csv --which_epoch latest --results_dir ./results --display_id 0
Traceback (most recent call last):
File "test.py", line 39, in
model.test()
File "/media/roman/storage/Pose-Transfer/models/PATN.py", line 120, in test
self.fake_p2 = self.netG(G_input)
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/roman/storage/Pose-Transfer/models/model_variants.py", line 166, in forward
return nn.parallel.data_parallel(self.model, input, self.gpu_ids)
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 204, in data_parallel
return module(*inputs[0], **module_kwargs[0])
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/roman/storage/Pose-Transfer/models/model_variants.py", line 149, in forward
x1, x2, _ = model(x1, x2)
File "/home/roman/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/roman/storage/Pose-Transfer/models/model_variants.py", line 64, in forward
x1_out = x1_out * att
RuntimeError: The size of tensor a (64) must match the size of tensor b (16) at non-singleton dimension 3
The text was updated successfully, but these errors were encountered: