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

Does the execution time includes image pre-processing? #3

Open
atrah22 opened this issue Oct 16, 2017 · 4 comments
Open

Does the execution time includes image pre-processing? #3

atrah22 opened this issue Oct 16, 2017 · 4 comments

Comments

@atrah22
Copy link

atrah22 commented Oct 16, 2017

Hi,

Does the execution time includes the image pre-processing time to input to first layer + inception-v3 model execution time + post processing time?

For example, tensorflow benchmark model shows the execution time of only the CNN model execution without and pre image processing or post processing. I was looking for such execution time benchmarking.

@hollance
Copy link
Owner

In this app, the execution time also includes the time needed to schedule the Vision request (which in turn calls Core ML), the preprocessing, the neural network, the post-processing of the results, and running the UI update on the main thread.

@atrah22
Copy link
Author

atrah22 commented Oct 18, 2017

Thankyou for the quick response.
Is it possible to measure the execution time of the "neural network" only from the 1st input layer layer to the last layer ?

@hollance
Copy link
Owner

Add this line:

    let elapsed = CACurrentMediaTime() - startTimes.remove(at: 0)

to requestDidComplete() to get the best possible estimate.

@RaulSa
Copy link

RaulSa commented Feb 25, 2018

You can have a view of the time executed by CoreML using Instruments App

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

3 participants