Reimplemented code for "Toward Characteristic-Preserving Image-based Virtual Try-On Network"
MIT License
474
stars
182
forks
source link
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead. #30
Solution:
Change x = x.view(x.size(0), -1)
to
x = x.reshape(x.size(0), -1)