Skip to content

Directly upload (and update) samples with multiple labels to the ingestion API

Notifications You must be signed in to change notification settings

edgeimpulse/example-multi-label-ingestion-via-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uploading / updating multi-label samples using the Edge Impulse API

This repo contains examples on how to use the Edge Impulse APIs to upload and update multi-label timeseries data.

  1. Load an Edge Impulse API Key:

    export EI_PROJECT_API_KEY=ei_e124...
    

    Note: Multi-label is not supported on Community projects.

  2. To upload a sample with multiple labels you need to provide a structured labels file alongside your data. This is an additional file that contains the labels for all files you upload. In this repo these are updown.3.json (data) and structured_labels.labels (labels file). You can upload them via:

    sh upload.sh
    
  3. To update the sample with the API:

    sh update-sample.sh --project-id <pid> --sample-id <sid>
    

    Replace <pid> with the project ID, and <sid> with the sample ID (both returned by upload.sh)

Example results

After uploading the sample:

After upload

After updating the sample:

After upload

About

Directly upload (and update) samples with multiple labels to the ingestion API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages