Skip to content

add 5 FPS with 10% threshold - #13690

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:relax-fps-test
Jan 19, 2025
Merged

Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:relax-fps-test

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Jan 19, 2025 •

Copy link
Copy Markdown
Collaborator

Some D400 devices support 5 FPS color stream.
The KPI is higher than 5 % as the sensor actually output ~4.7 FPS

@Nir-Az
Nir-Az requested review from OhadMeir and maloel January 19, 2025 12:05


delta_Hz = 1
tested_fps = [6, 15, 30, 60, 90]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you try running the nightly and verify there are no timeouts?

I believe we don't have models that support both 5 and 6 FPS but this test is long and we should verify no extra time is needed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

WIP will update

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Passed - LRS_libci_pipeline-9992

fps = measure_fps(cs, cp, time_to_test_fps[i])
log.i("Requested fps: {:.1f} [Hz], actual fps: {:.1f} [Hz]. Time to first frame {:.6f}".format(requested_fps, fps, first_frame_seconds))
delta_Hz = requested_fps * 0.05 # Validation KPI is 5%
delta_Hz = requested_fps * (0.10 if requested_fps == 5 else 0.05) # Validation KPI is 5% for all non 5 FPS rate

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fine but maybe we need an array fps_threshold or even fps_delta_hz?
Up to you...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I thought about it and decided to go on this path, if we will have more than 1 exception we will create an array, currently it's the only exception

@OhadMeir

Copy link
Copy Markdown
Contributor

Do we need to align fps-permutation test? Currently delta is 15% https://github.com/IntelRealSense/librealsense/blob/development/unit-tests/live/frames/fps_helper.py#L19

@Nir-Az

Nir-Az commented Jan 19, 2025

Copy link
Copy Markdown
Collaborator Author

Do we need to align fps-permutation test? Currently delta is 15% https://github.com/IntelRealSense/librealsense/blob/development/unit-tests/live/frames/fps_helper.py#L19

Since this is a 15% threshold I am not sure.
Let's see it helps and fps test and see if permutation also fail on color 5 FPS

@Nir-Az
Nir-Az merged commit 818cc87 into realsenseai:development Jan 19, 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.

3 participants