@@ -43,7 +43,7 @@ def export_to_table(
43
43
flattened_labels_dict = labelbase .downloader .export_and_flatten_labels (
44
44
client = self .lb_client , project = project ,
45
45
include_metadata = include_metadata , include_performance = include_performance , include_agreement = include_agreement ,
46
- verbose = verbose , mask_method = mask_method , divider = divider
46
+ mask_method = mask_method , verbose = verbose , divider = divider
47
47
)
48
48
49
49
table = pd .DataFrame .from_dict (flattened_labels_dict )
@@ -55,7 +55,7 @@ def export_to_table(
55
55
56
56
def create_data_rows_from_table (
57
57
self , table :pd .core .frame .DataFrame , dataset_id :str = "" , project_id :str = "" , priority :int = 5 ,
58
- upload_method :str = "" , skip_duplicates :bool = False , verbose : bool = False , mask_method :str = "png" , divider = "///" ):
58
+ upload_method :str = "" , skip_duplicates :bool = False , mask_method :str = "png" , verbose : bool = False , divider = "///" ):
59
59
""" Creates Labelbox data rows given a Pandas table and a Labelbox Dataset
60
60
Args:
61
61
table : Required (pandas.core.frame.DataFrame) - Pandas DataFrame
@@ -66,11 +66,11 @@ def create_data_rows_from_table(
66
66
skip_duplicates : Optional (bool) - Determines how to handle if a global key to-be-uploaded is already in use
67
67
If True, will skip duplicate global_keys and not upload them
68
68
If False, will generate a unique global_key with a suffix {divider} + "1", "2" and so on
69
- verbose : Optional (bool) - If True, prints details about code execution; if False, prints minimal information
70
69
mask_method : Optional (str) - Specifies your input mask data format
71
70
- "url" means your mask is an accessible URL (must provide color)
72
71
- "array" means your mask is a numpy array (must provide color)
73
- - "png" means your mask value is a png-string
72
+ - "png" means your mask value is a png-string
73
+ verbose : Optional (bool) - If True, prints details about code execution; if False, prints minimal information
74
74
divider : Optional (str) - String delimiter for schema name keys and suffix added to duplocate global keys
75
75
"""
76
76
# Create a metadata_index, attachment_index, and annotation_index
@@ -119,7 +119,7 @@ def create_data_rows_from_table(
119
119
dataset_id_col = dataset_id_col , dataset_id = dataset_id ,
120
120
project_id_col = project_id_col , project_id = project_id ,
121
121
metadata_index = metadata_index , attachment_index = attachment_index , annotation_index = annotation_index ,
122
- upload_method = upload_method , divider = divider , mask_method = mask_method , verbose = verbose
122
+ upload_method = upload_method , mask_method = mask_method , divider = divider , verbose = verbose
123
123
)
124
124
125
125
# Upload your data rows to Labelbox - update upload_dict if global keys are modified during upload
0 commit comments