Skip to content

Conversation

@r83575
Copy link
Collaborator

@r83575 r83575 commented Dec 1, 2025

I checked the 4 videos for my PR - Align C++ frame skipping probe logic with Python implementation #168.

And I notice that the thresholds in the GPU version are not tuned well,
When they were tuned it's was on 4 colorful videos and probably this Is the reason.
This PR fixes this issue.

const double MSE_THRESH = 20.0;
const double SSIM_THRESH = 0.998;
const double FLOW_THRESH = 0.5;
const double OPTICAL_FLOW_ACTIVE_THRESH = 0.5;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that you wrote them as constants, but please remove the initialization from the constructor or use these constants as the initial values there.

@r83575 r83575 force-pushed the fix-threshold-values branch from 7999625 to 05e3701 Compare December 1, 2025 13:52
@r83575 r83575 merged commit 05fa9db into main Dec 7, 2025
1 check failed
@r83575 r83575 self-assigned this Dec 7, 2025
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

Successfully merging this pull request may close these issues.

4 participants