Macros
The following list gives information about the most important #define
macros found in model-parameters/model_metadata.h. Note that not all macros are listed--just the ones you'll probably care about.
Source: Can be found in model-parameters/model_metadata.h if you deploy your impulse as a C++ library.
Important! model_metadata.h is automatically generated by the Edge Impulse Studio. You should not modify it.
Here's the provided information converted into a Markdown table with the H2 header on the left and the description on the right:
Macro | Description |
---|---|
| Number of inputs (words) to the machine learning model block. Should match the number of outputs of the preprocessing (DSP) block. For example, if the DSP block outputs a 320x320 image with 1 word for each color (RGB), then |
| Number of sample frames expected by the DSP block. For example, if your window size is set to 2000 ms with a 100 Hz sampling rate, |
| Number of numerical samples in each frame. For example, if you are using a 3-axis accelerometer, |
| Total number of values expected by the DSP block input. It is equal to |
| Image data will be resized so that the width matches this amount, using the Resize mode method set in the Edge Impulse Studio. Set to 0 for non-image data. |
| Image data will be resized so that the height matches this amount, using the Resize mode method set in the Edge Impulse Studio. Set to 0 for non-image data. |
| Number of image frames used as input to an impulse. Set to 1 for image classification and object detection tasks. Set to 0 for non-image data. |
| Number of milliseconds between sampling the sensor. For non-image data, this is equal to |
| Number of labels in |
| Set to 1 if there is an anomaly block in the impulse, 0 otherwise. |
| Sampling frequency of the sensor(s). For non-image data, this is equal to |
| Set to 1 if model-parameters/model_variables.h is present in the library, 0 otherwise. |
| Set to 1 if the impulse is configured for object detection, 0 otherwise. |
| If |
| If |
| If |
| The inferencing engine to be used. This can have the following values. Default is
|
| Number of slices to gather per window. For example, if you want See this guide to learn more about continuous sampling. You can see an example here that shows how to set the number of slices per window to something other than 4 prior to including the Edge Impulse C++ SDK library. |
| Number of samples in a slice. Equal to |
| This can be defined and set to 1 by the user if using full TensorFlow Lite. Note that setting this to 1 while |
Last updated