🗒️Step 1: Integrating Lens AI Python Profiler
Last updated
Last updated
Lens AI Python Profiler profiles the data during the training phase. Currently Lens AI support Vision image data, support for other datatypes will be added in the next releases. please refere to product roadmap here:
Python Profiler library support tensorflow based training, pytorch will be supported in the future releases.
Import the profiler library it support the following metrics right now
Brightness
Sharpness
Noise
Channel Pixels Mean
Channel Pixesl Distribution
Once the metrics are computed save the metrics using the KLL sketches in the binary format.
At this stage the baselines metrics for the training data are computed.
This generates the .bin file.
It is possible to sample the or notify when the realtime data is away from the center of distribution. to do this we need to compute the base line thrsholds .
The following method allows to compute the thresholds from the bins
These Thresholds can be set in the Lens AI Cpp Profiler on the edge device config file.
For detailed implementation refer: https://colab.research.google.com/drive/1dRinwpZwvpsts2TDoT3xQg6xfJnupfXm?usp=sharing