Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

my dataset,why? #45

Open
skysunsun opened this issue Apr 28, 2019 · 1 comment
Open

my dataset,why? #45

skysunsun opened this issue Apr 28, 2019 · 1 comment

Comments

@skysunsun
Copy link

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 15 and 16 in dimension 2 at c:\a\w\1\s\tmp_conda_3.7_110206\conda\conda-bld\pytorch_1550401474361\work\aten\src\thc\generic/THCTensorMath.cu:83

@robertofratello
Copy link

robertofratello commented Jul 26, 2019

you probably have an uneven-ish image size that freaks up downsampling/upsampling functions. Just crop the bigger tensor to have 15 as dimension 2 and it would be ok I think.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants