|
34 | 34 | from lib.app.interface.types import ClassesJson |
35 | 35 | from lib.app.interface.types import NotEmptyStr |
36 | 36 | from lib.app.interface.types import Status |
| 37 | +from lib.app.interface.types import AnnotationType |
37 | 38 | from lib.app.interface.types import validate_arguments |
38 | 39 | from lib.app.mixp.decorators import Trackable |
39 | 40 | from lib.app.serializers import BaseSerializers |
@@ -2742,7 +2743,7 @@ def benchmark( |
2742 | 2743 | folder_names: List[str], |
2743 | 2744 | export_root: Optional[Union[str, Path]] = None, |
2744 | 2745 | image_list=None, |
2745 | | - annot_type="bbox", |
| 2746 | + annot_type=Optional[AnnotationType], |
2746 | 2747 | show_plots=False, |
2747 | 2748 | ): |
2748 | 2749 | """Computes benchmark score for each instance of given images that are present both gt_project_name project and projects in folder_names list: |
@@ -2804,7 +2805,7 @@ def consensus( |
2804 | 2805 | folder_names: NotEmptyStr, |
2805 | 2806 | export_root: Optional[Union[NotEmptyStr, Path]] = None, |
2806 | 2807 | image_list: Optional[List[NotEmptyStr]] = None, |
2807 | | - annot_type: Optional[NotEmptyStr] = "bbox", |
| 2808 | + annot_type: Optional[AnnotationType] = "bbox", |
2808 | 2809 | show_plots: Optional[StrictBool] = False, |
2809 | 2810 | ): |
2810 | 2811 | """Computes consensus score for each instance of given images that are present in at least 2 of the given projects: |
@@ -3322,7 +3323,7 @@ def upload_image_to_project( |
3322 | 3323 | project: NotEmptyStr, |
3323 | 3324 | img, |
3324 | 3325 | image_name: Optional[NotEmptyStr] = None, |
3325 | | - annotation_status: Optional[NotEmptyStr] = "NotStarted", |
| 3326 | + annotation_status: Optional[Status] = "NotStarted", |
3326 | 3327 | from_s3_bucket=None, |
3327 | 3328 | image_quality_in_editor: Optional[NotEmptyStr] = None, |
3328 | 3329 | ): |
@@ -3412,7 +3413,7 @@ def search_models( |
3412 | 3413 | def upload_images_to_project( |
3413 | 3414 | project: NotEmptyStr, |
3414 | 3415 | img_paths: List[NotEmptyStr], |
3415 | | - annotation_status: Optional[NotEmptyStr] = "NotStarted", |
| 3416 | + annotation_status: Optional[Status] = "NotStarted", |
3416 | 3417 | from_s3_bucket=None, |
3417 | 3418 | image_quality_in_editor: Optional[NotEmptyStr] = None, |
3418 | 3419 | ): |
|
0 commit comments