shariqfarooq123 / AdaBins

Official implementation of Adabins: Depth Estimation using adaptive bins
GNU General Public License v3.0
725 stars 156 forks source link

RuntimeError: Given groups=1, weight of size [256, 128, 1, 1], expected input[1, 98, 176, 144] to have 128 channels, but got 98 channels instead #74

Open 9796l opened 1 year ago

9796l commented 1 year ago

excuse me,i used datasets which are same with nyu,but when i train the dataset,the problem is RuntimeError: Given groups=1, weight of size [256, 128, 1, 1], expected input[1, 98, 176, 144] to have 128 channels, but got 98 channels instead.

PeteBai commented 1 year ago

I think it's because your image is too low resolution. I have encountered a similar issue and it is resolved after I resize (interpolated) the image to 640x480.