Accounting
get_images_in_labeling_jobs_of_specific_batch(all_labeling_jobs, batch_id)
¶
Get the number of images in labeling jobs of a specific batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
all_labeling_jobs
|
List[dict]
|
All labeling jobs. |
required |
batch_id
|
str
|
ID of the batch. |
required |
Returns:
Type | Description |
---|---|
int
|
The number of images in labeling jobs of the batch. |
Source code in inference/core/active_learning/accounting.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
get_matching_labeling_batch(all_labeling_batches, batch_name)
¶
Get the matching labeling batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
all_labeling_batches
|
List[dict]
|
All labeling batches. |
required |
batch_name
|
str
|
Name of the batch. |
required |
Returns:
Type | Description |
---|---|
Optional[dict]
|
The matching labeling batch if found, None otherwise. |
Source code in inference/core/active_learning/accounting.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
image_can_be_submitted_to_batch(batch_name, workspace_id, dataset_id, max_batch_images, api_key)
¶
Check if an image can be submitted to a batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
batch_name
|
str
|
Name of the batch. |
required |
workspace_id
|
WorkspaceID
|
ID of the workspace. |
required |
dataset_id
|
DatasetID
|
ID of the dataset. |
required |
max_batch_images
|
Optional[int]
|
Maximum number of images allowed in the batch. |
required |
api_key
|
str
|
API key to use for the request. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if the image can be submitted to the batch, False otherwise. |
Source code in inference/core/active_learning/accounting.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|