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

Critical bug: View sampling incorrectly limits max_gap to min_gap #93

Open
Rvosuke opened this issue Feb 27, 2025 · 0 comments
Open

Critical bug: View sampling incorrectly limits max_gap to min_gap #93

Rvosuke opened this issue Feb 27, 2025 · 0 comments

Comments

@Rvosuke
Copy link

Rvosuke commented Feb 27, 2025

Thanks a lot for the wonderful code. But there is a critical bug in the view sampling logic that severely impacts the model's training effectiveness and generalization ability.

Location

  • File: src/dataset/view_sampler/view_sampler_bounded.py
  • Line: 62

Incorrect Code

max_gap = min(num_views - 1, min_gap)

Correct Code (as per the base library pixelsplat)

max_gap = min(num_views - 1, max_gap)

Issue

The purpose of this line is to cap max_gap to ensure it does not exceed the maximum possible gap between frames in the video (num_views - 1). However, due to a likely typo, min_gap is used instead of max_gap, causing max_gap to be incorrectly set to min_gap. This error restricts the frame gap during training to min_gap, preventing the model from being exposed to larger gaps.

As a result, the model is not trained on a diverse range of frame differences, such as those in the test set (where input frame differences range between 45 and 135). This leads to poor generalization performance on the test set.

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

1 participant