google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.63k stars 694 forks source link

Vision Inference FLOPs #586

Open di-jabil opened 5 years ago

di-jabil commented 5 years ago

Hi Folks,

I am looking for ways to measure FLOPs of the inference operation and the get_objects operation. Such as line 52-58 of the object detection example result = inference.run(image_center) objects = object_detection.get_objects(result, args.threshold, offset) https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/examples/vision/object_detection.py

Could you please advise? Thank you.