Batch Assignment

Overview

The Batch Assignment Plugin automatically assigns assets to batches based on configurable rules such as batch size, assignment strategy, and naming conventions. It enables users to efficiently organize large datasets into manageable groups, streamlining workflows for labeling, review, and processing stages.

Cover

Batch Assignment

Cover

Custom Batch Assignment

Plugin Functionality

The Batch Assignment Plugin processes project assets and assigns them to batches according to the provided configuration.

  • Creates batches and assigns assets to batches automatically based on the provided configuration.

  • Sorts assets using the specified field before assignment to ensure deterministic and reproducible batch structures across multiple runs.

  • Generates batch names dynamically using the configured prefix, separator, and indexing logic, allowing flexible and standardized naming conventions.

  • Preserves existing batch assignments and appends newly generated batch names when enabled, allowing incremental updates without losing prior groupings.

  • Enables efficient organization and management of large datasets by structuring assets into clearly defined and scalable batches.

The plugin will process all assets in your project.

Currently, there is no way to only select specific assets as targets for the plugin.

This functionality helps maintain structured and scalable batch organization, especially for large annotation projects.

Example Configurations

Configuration-1: Sequential Assignment

Before Execution:

After Execution:

Configuration-2: Sequential Assignment with a Different Batch Size

Before Execution:

After Execution:

Configuration-3: Keep Existing Batches

Before Execution:

After Execution:

Configuration-4: Random Assignment

Before Execution:

After Execution:

Configuration-5: Divide batches into sub-batches

Before Execution:

After Execution:

Supported Data Types

  • Compatible with all data types available in AngoHub.

Supported Annotation Tools

  • Compatible with all annotation tools available in AngoHub.

Plugin Configuration

You may vary a number of settings related to your export from the Config JSON field. Each option is detailed below:

  • "keep_existing_batches": Determines whether existing batch assignments are preserved when assigning new batches. When set to true, the new batch is appended to the asset’s current batch list. When set to false, the existing batch assignment is overwritten and only the new batch is kept.

    • Example:

      • "keep_existing_batches": true

      • "keep_existing_batches": false

  • "assignment_type": Determines how assets are distributed into batches.

    • Options:

      • "sequential"

      • "random"

    • Example:

      • "assignment_type": "sequential"

  • "batch_size": Specifies the number of assets to include in each batch.

    • Example:

      • "batch_size": 100

  • "sort_assets": Defines the sorting method to apply before batching.

    • Options:

      • "default"

      • "external_id"

      • "asset_id"

      • "batch"

    • Example:

      • "sort_assets": "external_id"

  • "batch_name_prefix": Sets a prefix to include at the beginning of each batch name.

    • Example:

      • "batch_name_prefix": "Batch"

  • "batch_name_separator": Defines the character or symbol used to separate the batch name prefix and number.

    • Example:

      • "batch_name_separator": "-"

  • "batch_name_add_zeros": Determines whether batch numbers should include leading zeros for consistent naming.

    • Example:

      • "batch_name_add_zeros": true

      • "batch_name_add_zeros": false

Last updated