Skip to main content

Integration between V7 Darwin and Voxel51

Project description

darwin_fiftyone

Provides an integration between Voxel51 and V7 Darwin. This enables Voxel51 users to send subsets of their datasets to Darwin for annotation and review. The annotated data can then be imported back into Voxel51.

This integration is currently in beta.

Install

  1. Install the library
pip install darwin-fiftyone 
  1. Configure voxel51 to use it
cat ~/.fiftyone/annotation_config.json
{
  "backends": {
    "darwin": {
      "config_cls": "darwin_fiftyone.DarwinBackendConfig",
      "api_key": "d8mLUXQ.**********************"
    }
  }
}

Note: Replace the api_key placeholder with a valid API key generated from Darwin.

Development setup

  1. Install the library and development dependencies
# Install all dependencies including development tools
pip install -r requirements.txt

# Install the package in editable mode
pip install -e .
  1. Configure voxel51 to use it
cat ~/.fiftyone/annotation_config.json
{
  "backends": {
    "darwin": {
      "config_cls": "darwin_fiftyone.DarwinBackendConfig",
      "api_key": "d8mLUXQ.**********************"
    }
  }
}

Note: Replace the api_key placeholder with a valid API key generated from Darwin.

  1. (Optional) Install the V7 plugin in V51 to push/pull data to V7 directly from V51.
fiftyone plugins download \
    https://github.com/voxel51/fiftyone-plugins \
    --plugin-names @voxel51/annotation

Example Usage

Several notebooks can be found here

API

In addition to the standard arguments provided by dataset.annotate(), we also support:

  • backend=darwin, Indicates that the Darwin backend is being used.
  • atts, Specifies attribute subannotations to be added in the labelling job
  • dataset_slug, Specifies the name of the dataset to use or create on Darwin.
  • external_storage, Specifies the sluggified name of the Darwin external storage and indicates that all files should be treated as external storage

Testing

Set up your environment with FiftyOne and Darwin integration settings. To find your team slug check the Darwin documentation on dataset identifiers which has a section called "Finding Team Slugs:"

You'll also need an API Key

export FIFTYONE_ANNOTATION_BACKENDS=*,darwin
export FIFTYONE_DARWIN_CONFIG_CLS=darwin_fiftyone.DarwinBackendConfig
export FIFTYONE_DARWIN_API_KEY=******.*********
export FIFTYONE_DARWIN_TEAM_SLUG=your-team-slug-here

NB. E2E tests run in the IRL env and on a specific team with a specific external storage configuration. See env.example

Supported Annotation Types

The integration currently supports bounding boxes, polygons (closed polylines), keypoints, and tags (classification). It also supports attributes, text, instance ids, and properties subtypes.

Future development work will focus on the addition of annotation and subannotation types. Do reach out if you have suggestions.

TODO

  • Support for read only external data storage
  • Support for mask and keypoint skeleton types

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darwin_fiftyone-2.1.2.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

darwin_fiftyone-2.1.2-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file darwin_fiftyone-2.1.2.tar.gz.

File metadata

  • Download URL: darwin_fiftyone-2.1.2.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for darwin_fiftyone-2.1.2.tar.gz
Algorithm Hash digest
SHA256 2419915cb5061af82ff07c58833cff6eb9cd7675ee1d62a953dc8da5634af2e8
MD5 76f3a423efb6109113d9c8a6f29f9393
BLAKE2b-256 7bf4d6ccdcc0a8cb24410ebfbdf6bba129be34ebfaf0377c73f82cdb73720518

See more details on using hashes here.

Provenance

The following attestation bundles were made for darwin_fiftyone-2.1.2.tar.gz:

Publisher: python-publish.yml on v7labs/darwin-fiftyone

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file darwin_fiftyone-2.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for darwin_fiftyone-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d1a944554836114aab0f5790b58233b32081714689a74de395017abdbbd7b3f
MD5 05b7e880853bee43a99a1c510080d9e8
BLAKE2b-256 916a66dd9c9a3fdec90c532d9896d2d3c87c36d0f8497d8449e37a974e986a6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for darwin_fiftyone-2.1.2-py3-none-any.whl:

Publisher: python-publish.yml on v7labs/darwin-fiftyone

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page