xy-guo / GwcNet

Group-wise Correlation Stereo Network, CVPR 2019
MIT License
322 stars 60 forks source link

尊敬的郭老师,我在用KITTI15.sh时,出现RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. #30

Open binghui10086 opened 2 years ago

binghui10086 commented 2 years ago

image 尊敬的郭老师,我在跑kitti15进行训练时,出现如图所示的报错,不太懂该怎么修改,希望您百忙之中抽空看一下,pytorch用的是1.8版本的

CHXAdmin commented 1 year ago

use this code: image_outputs["errormap"] = [disp_error_image_func.apply(disp_est, disp_gt) for disp_est in disp_ests]