-
Notifications
You must be signed in to change notification settings - Fork 137
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
Understanding performance test #41
Comments
Exactly right
Actually in our
The output of CoreML inference is heatmaps (not points), so we should convert it into points. Including converting into points with
This is a kind of smoothing method in signal processing. So..
Yes
For considering the camera video's fps. I set the fps of camera under 60. So the real fps shouldn't be under 60. And I wanted to check the real fps.
Oh, you also saw the original code! At that time, I had three thinks.
I hope you helpful. |
Thank you for the answer :-) Regarding the FPS: I’d like to understand the relation between ‘Total Time’ and ‘FPS’ described in the tables here. Taking cpm/11-pro as an example, the total runtime is 23 msec (~43 fps) but the FPS for that setting is 15. You mentioned that you limited the camera to 60 FPS, so why don’t you get an FPS of 43 = min(43, 60) in this case? |
Hello. Thanks for the amazing repository!
I built the project and it works great.
I am trying to understand the performance test.
I would be glad if you can elaborate about what was measured.
Looking at
Measure.swift
:startTime
is the moment that the image is received. It is apixelBuffer
, (640x480) image.endInferenceTime
is the moment when the inference was stopped, receiving a(14, 96, 96)
heatmap from the CPM model.beforeStartTime
is the start time of the previous frame. Why do we measure it?If so I understand what is:
inferenceTime: endInferenceTime - startTime
- frompixelBuffer
, (640x480) image to(14, 96, 96)
heatmap .executionTime: endTime - startTime
- frompixelBuffer
, (640x480), including post-process (convertToPredictedPoints
, and moving average filter. BTW - what is this filter?)But I don't understand what is
fps: Int(1/(startTime - beforeStartTime)))
- why is thebeforeStartTime
relevant?To summarize, my questions are:
inferenceTime
andexecutionTime
?fps
calculated withbeforeStartTime
?gaussian_filter
in the original CPM code?Thank you very much.
The text was updated successfully, but these errors were encountered: