XiandaGuo / OpenStereo

OpenStereo: A Comprehensive Benchmark for Stereo Matching and Strong Baseline
473 stars 51 forks source link

Infering on different data #139

Closed danielvais closed 1 month ago

danielvais commented 2 months ago

Hi, I'm trying to use the code to get a disparity map on my own images (they are stereo). I've successfully run the infer.py module on KITTI stereo images, but when I use my own images I encounter an error: RuntimeError: The size of tensor a (60) must match the size of tensor b (59) at non-singleton dimension 3 (this happens in the psmnet_cost_proccessor.py module) Any ideas my this doesnt work on any stereo images?

XiandaGuo commented 1 month ago

Which model are you using for inference? Some models require the input size to be a multiple of 16.