Context-Enhanced-Stereo-Transformer icon indicating copy to clipboard operation
Context-Enhanced-Stereo-Transformer copied to clipboard

RuntimeError: stack expects each tensor to be equal size, but got [3, 390, 771] at entry 0 and [3, 371, 880] at entry 1

Open CHXAdmin opened this issue 2 years ago • 1 comments

batch size = 2 will cause this ,when batch size =1 ,it can run

CHXAdmin avatar Nov 15 '22 11:11 CHXAdmin

Thanks for your question! If you use different shape images in one batch, you should resize them to the same shape before input to the model

guoweiyu avatar Nov 16 '22 01:11 guoweiyu