Skip to content

Conversation

@mihow
Copy link
Collaborator

@mihow mihow commented Aug 14, 2023

Summary

Label Studio is an external platform for creating labeled datasets. We have a self-hosted copy that will be tightly integrated with the data coming in and out of the AMI platform. This PR makes specific AMI images, metadata & configuration available for Label Studio to use in annotation tasks.

  • Add endpoints for ingesting source images, detections & occurrences to LabelStudio as tasks for the object detection, binary classification and species classification "Tasks"
  • General hook POST endpoint https://api.dev.insectai.org/api/v2/labelstudio/hooks/all/
  • Add hook for updating the species choices in LabelStudio based on the taxonomy configured in the AMI platform
  • Add hook for updating the labeling interface for tasks in Label Studio when a project is saved, based on an XML template fragment in Django
  • Add models & admin for taxonomy
  • Add method to import a hierarchical taxonomy
  • Add API endpoints for retrieving & querying the taxonomy

Project tasks in Label Studio

image image

New endpoints for task data & configuration

image image

Taxonomy models & management

image image

Labeling interface management & update hook

image image image image

TODO

  • Add tests, somehow
  • Add hooks for creating tasks in sequential projects (after objects are labeled, create species classification tasks for those objects, etc)
  • Remove unused code

@netlify
Copy link

netlify bot commented Aug 14, 2023

Deploy Preview for ami-web canceled.

Name Link
🔨 Latest commit cb9ab14
🔍 Latest deploy log https://app.netlify.com/sites/ami-web/deploys/64dab654fe6763000870a34e

@netlify
Copy link

netlify bot commented Aug 14, 2023

Deploy Preview for ami-storybook canceled.

Name Link
🔨 Latest commit cb9ab14
🔍 Latest deploy log https://app.netlify.com/sites/ami-storybook/deploys/64dab654f5310c0008405a11

@mihow mihow changed the title LabelStudio integration & taxonomy models Label Studio integration & taxonomy models Aug 14, 2023
@mihow mihow merged commit 035b6bb into main Aug 14, 2023
@mihow mihow deleted the labelstudio branch August 14, 2023 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants