Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#342·pix2pixHD

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 819 but got size 832 for tensor number 1 in the list

Author: pILLOW-1Created Aug 23, 2024Updated Aug 23, 2024

During training, i got the error "RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 819 but got size 832 for tensor number 1 in the list" at line 145 in pix2pixHD_model.py, which is "input_concat = torch.cat((input_label, test_image.detach()), dim=1)". I didn't modify any part of the code. I can't figure why.

Source: NVIDIA/pix2pixHD

View original on GitHubView discussion on GitHub