svip-lab / PlaneDepth

[CVPR2023] This is an official implementation for "PlaneDepth: Self-supervised Depth Estimation via Orthogonal Planes".
Other
102 stars 5 forks source link

OutPut Size Cant be 1242*375 #8

Closed wangjiyuan9 closed 1 year ago

wangjiyuan9 commented 1 year ago

Dear Author: I am currently using the PlaneDepth model for image depth prediction. However, I am encountering issues while trying to predict the depth of an image to the resolution of 1242x375(It is the orgin resloution of kitti dataset. And I mean in the eva.sh, I use --width 1242 --height 375) Traceback (most recent call last): File xx/PlaneDepth/out_depth.py", line 181, in <module> evaluate(options.parse()) File "xx/PlaneDepth/out_depth.py", line 136, in evaluate output = depth_decoder(encoder(input_color), grids) File "xx/PlaneDepth/networks/depth_decoder.py", line 136, in forward x = torch.cat(x, 1) RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 48 but got size 47 for tensor number 1 in the list.

Dwawayu commented 1 year ago

Hi! Our U-Net needs height and width of input to be a multiple of 32.