baegwangbin / MaGNet

[CVPR 2022 Oral] Multi-View Depth Estimation by Fusing Single-View Depth Probability with Multi-View Geometry
MIT License
210 stars 15 forks source link

Negative frame index/name #3

Open panji530 opened 2 years ago

panji530 commented 2 years ago

Hi,

Trying to test the multi-view model via

python test_MaGNet.py ./test_scripts/magnet/scannet.txt

but, got FileNotFoundError due to negative image index/name (-15.jpg). Anyone got the same error?

Btw, monocular model (python test_DNet.py ./test_scripts/dnet/scannet.txt) works fine.

baegwangbin commented 2 years ago

Hi,

In data/dataloader_scannet.py, there is a code that replaces the image that does not exist.

if os.path.exists(scene_dir + '/color/{}.jpg'.format(img_idx + i)):
    img_idx_list.append(img_idx + i)
else:
    img_idx_list.append(img_idx - i - np.sign(i) * int(self.frame_interval * 0.5))

May I ask if you changed any of the hyperparameters?

panji530 commented 2 years ago

No, I used the default hyper-parameters.

baegwangbin commented 2 years ago

I am sorry for the delayed response. I tested the same code, but it does not give me an error. Does the error happen for all the scenes? or does it happen for a particular scene?