Closed MingkangXiong closed 4 years ago
https://github.com/ClementPinard/SfmLearner-Pytorch/blob/8b8398433709b8aa77e021caea64ab48207c8ef5/run_inference.py#L66
It should be tensor_img = ((tensor_img/255 - 0.5)/0.5).to(device)
tensor_img = ((tensor_img/255 - 0.5)/0.5).to(device)
You are right, thanks for pointing it out
https://github.com/ClementPinard/SfmLearner-Pytorch/blob/8b8398433709b8aa77e021caea64ab48207c8ef5/run_inference.py#L66
It should be
tensor_img = ((tensor_img/255 - 0.5)/0.5).to(device)