JeffWang987 / MVSTER

[ECCV 2022] MVSTER: Epipolar Transformer for Efficient Multi-View Stereo
MIT License
183 stars 13 forks source link

ValueError: cannot select an axis to squeeze out which has size not equal to one #17

Closed hakeemray closed 1 year ago

hakeemray commented 1 year ago

Thanks for your code.When I used the newly trained model in test_mvs.py, I encountered the following error:Traceback (most recent call last): File "F:/MVSTER-main/test_mvs4.py", line 495, in save_depth(testlist) File "F:/MVSTER-main/test_mvs4.py", line 165, in save_depth time_this_scene, sample_this_scene = save_scene_depth([scene]) File "F:/MVSTER-main/test_mvs4.py", line 264, in save_scene_depth range(1, 5)] File "F:/MVSTER-main/test_mvs4.py", line 263, in confidence_list = [outputs['stage{}'.format(i)]['photometric_confidence'].squeeze(0) for i in ValueError: cannot select an axis to squeeze out which has size not equal to one,Have you encountered the same problem and how did you solve it