This repository contains examples of Edge Impulse transformation blocks.
For more information on how to set up a transformation block, please head to Edge Impulse documentation, Custom blocks -> Transformation blocks
Name | Description | Mode | Programming language | Public docker image (optional) | |
---|---|---|---|---|---|
Hello Edge | print hello +name on the transformation job logs |
Standalone | Bash | edgeimpulse/ei-transform_hello-edge:latest | |
Utils - Access data | Utility example to explain how to access data | Standalone | Data item | File | Python | edgeimpulse/ei-transform_utils-access-data:latest | |
Fetch Kaggle Dataset | Import a dataset hosted on Kaggle to your bucket | Standalone | Python | edgeimpulse/ei_transform_fetch-kaggle-dataset:latest | |
Create graphs (Standalone) | Generate a helper graph from sensor CSV | Standalone | Python | edgeimpulse/ei-transform_create-graphs-standalone | |
Create graphs (in-file) | Generate a helper graph from sensor CSV | File | Python | edgeimpulse/ei-transform_create-graphs-standalone-in-file | |
Check file existance | Add ei_check metadata on file existance | Data item | Python | edgeimpulse/ei-transform_check-files-exist | |
Merge CSV | Merge CSV files on a given key | Data item | Python | edgeimpulse/ei-transform_merge-csv | |
Merge Audio and CSV | Merge audio file and time-series csv | Data item | Python | edgeimpulse/ei-transform_merge-audio-time-series-csv | |
Resample CSV | Upsample or downsample CSV files with a constant frequency | File | Python | edgeimpulse/ei-transform_resample-csv | |
Split CSV | Split CSV files into smaller CSV files defined by a split interval | File | Python | edgeimpulse/ei-transform_split-csv | |
Sync SCP Dataset | Fetch files using scp and sync with organization dataset | Standalone | Python | edgeimpulse/ei-transform_sync-scp-dataset |
To use the examples, a README.md instruction file will be provided inside the example repositories. Sometimes, a public docker image will also be provided to quickly test so you don't need to import it and clone the entire repository.
If you want to quickly test the transformation blocks, head to your Edge Impulse organizaton, go to Custom blocks->Transformation and click on + Add new transformation block:
Replace the Docker Container by the one provided in the example above, the operation type and the optional parameters (check the examples README.md instruction to set the parameters):
To modify the code and push the blocks to your organization, you will need to use Edge Impulse CLI.
- Clone this repository:
git clone https://github.com/edgeimpulse/transformation-blocks.git
- Navigate to the desired example:
cd transformation-blocks/hello-edge
- Create the transformation block:
edge-impulse-block init
- Push the transformation block to your organization:
edge-impulse-block push
We welcome contributions to this repository. Both improvements to our own transformation blocks, as well as new and well-tested transformation blocks for other use cases. Make sure to provide a public dataset - or subset of this dataset - so everyone can reproduce your workflow seamlessly.