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

What is definition of ms and fps ? #366

Closed
1 task done
rumjie opened this issue Aug 28, 2023 · 2 comments
Closed
1 task done

What is definition of ms and fps ? #366

rumjie opened this issue Aug 28, 2023 · 2 comments
Labels
question A HUB question that does not involve a bug

Comments

@rumjie
Copy link

rumjie commented Aug 28, 2023

Search before asking

Question

Hi, I am trying ultralytics hub app with my phone.
On real-time detection on camera, I can find ms and fps values and I would like to ask what this is exactly meaning.

I can guess ms is for inference time for each images and fps is how many frames the model can infer at a second.

However, with my phone, inference time for a image is 12~13 ms and fps is almost fixed with 30.
With simple calculation 12 ms/frame is about 83 fps which is quite different with the value showed on display. Could you explain why this difference occurs?

Additional

No response

@rumjie rumjie added the question A HUB question that does not involve a bug label Aug 28, 2023
@github-actions
Copy link

👋 Hello @rumjie, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

@UltralyticsAssistant
Copy link
Member

@rumjie hi there,

You're correct in your understanding. "ms" refers to milliseconds, indicating the inference time for each image. "fps" stands for frames per second, showing how many frames the model can process in a second.

The discrepancy you're noticing between the calculated fps (from ms/frame) and the displayed fps might be due to the additional operations that are performed apart from the model's inference. These additional operations can include image capturing, pre-processing, post-processing, displaying results on the screen, etc., all of which contribute to the total time taken for each frame but aren't included in the inference time (ms). The displayed fps takes into account the total time for all these operations for each frame.

So, even though your specific inference is taking around 12~13 ms, the total process per frame could require enough additional time to approximate to 30 frames per second. That's why you see the fps value around 30 on your phone's display.

Thank you for your question! If you have any more queries, don't hesitate to ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A HUB question that does not involve a bug
Projects
None yet
Development

No branches or pull requests

3 participants