MaGNet icon indicating copy to clipboard operation
MaGNet copied to clipboard

Negative frame index/name

Open panji530 opened this issue 3 years ago • 3 comments

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.

panji530 avatar May 25 '22 18:05 panji530

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?

baegwangbin avatar May 26 '22 10:05 baegwangbin

No, I used the default hyper-parameters.

panji530 avatar May 27 '22 17:05 panji530

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?

baegwangbin avatar Jun 14 '22 22:06 baegwangbin