66
77from lib .app .exceptions import AppException
88from lib .core .exceptions import AppValidationException
9+ from lib .app .mixp .decorators import Trackable
910
1011from .export_from_sa_conversions import export_from_sa
1112from .import_to_sa_conversions import import_to_sa
@@ -133,7 +134,7 @@ def _passes_converter_sanity(args, direction):
133134 )
134135
135136
136- # @Trackable
137+ @Trackable
137138def export_annotation (
138139 input_dir ,
139140 output_dir ,
@@ -219,7 +220,7 @@ def export_annotation(
219220 export_from_sa (args )
220221
221222
222- # @Trackable
223+ @Trackable
223224def import_annotation (
224225 input_dir ,
225226 output_dir ,
@@ -403,7 +404,7 @@ def import_annotation(
403404 import_to_sa (args )
404405
405406
406- # @Trackable
407+ @Trackable
407408def convert_project_type (input_dir , output_dir ):
408409 """ Converts SuperAnnotate 'Vector' project type to 'Pixel' or reverse.
409410
@@ -423,7 +424,7 @@ def convert_project_type(input_dir, output_dir):
423424 sa_convert_project_type (input_dir , output_dir )
424425
425426
426- # @Trackable
427+ @Trackable
427428def coco_split_dataset (
428429 coco_json_path , image_dir , output_dir , dataset_list_name , ratio_list
429430):
@@ -474,7 +475,7 @@ def coco_split_dataset(
474475 split_coco (coco_json_path , image_dir , output_dir , dataset_list_name , ratio_list )
475476
476477
477- # @Trackable
478+ @Trackable
478479def convert_json_version (input_dir , output_dir , version = 2 ):
479480 """
480481 Converts SuperAnnotate JSON versions. Newest JSON version is 2.
0 commit comments