Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative frame index/name #3

Open
panji530 opened this issue May 25, 2022 · 3 comments
Open

Negative frame index/name #3

panji530 opened this issue May 25, 2022 · 3 comments

Comments

@panji530
Copy link

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
Copy link
Owner

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
Copy link
Author

No, I used the default hyper-parameters.

@baegwangbin
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants