ClementPinard / SfmLearner-Pytorch

Pytorch version of SfmLearner from Tinghui Zhou et al.
MIT License
1.01k stars 224 forks source link

A bug in run_inference.py #73

Closed MingkangXiong closed 4 years ago

MingkangXiong commented 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)

ClementPinard commented 4 years ago

You are right, thanks for pointing it out