Skip to content

Commit e87dc67

Browse files
removed instructions from ontoloy and queue_mode from create_project (#1155)
2 parents 71413a7 + df4b34a commit e87dc67

File tree

10 files changed

+12
-31
lines changed

10 files changed

+12
-31
lines changed

examples/annotation_import/conversational.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,19 +432,19 @@
432432
" lb.Classification( \n",
433433
" class_type=lb.Classification.Type.TEXT,\n",
434434
" scope=lb.Classification.Scope.INDEX, \n",
435-
" instructions=\"text_convo\"), \n",
435+
" name=\"text_convo\"), \n",
436436
" lb.Classification( \n",
437437
" class_type=lb.Classification.Type.CHECKLIST, \n",
438438
" scope=lb.Classification.Scope.INDEX, \n",
439-
" instructions=\"checklist_convo\", \n",
439+
" name=\"checklist_convo\", \n",
440440
" options=[\n",
441441
" lb.Option(value=\"first_checklist_answer\"),\n",
442442
" lb.Option(value=\"second_checklist_answer\") \n",
443443
" ]\n",
444444
" ), \n",
445445
" lb.Classification( \n",
446446
" class_type=lb.Classification.Type.RADIO, \n",
447-
" instructions=\"radio_convo\", \n",
447+
" name=\"radio_convo\", \n",
448448
" scope=lb.Classification.Scope.INDEX, \n",
449449
" options=[\n",
450450
" lb.Option(value=\"first_radio_answer\"),\n",

examples/annotation_import/image.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,7 @@
764764
"# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n",
765765
"# Queue mode will be deprecated once dataset mode is deprecated\n",
766766
"project = client.create_project(name=\"image-demo-project\",\n",
767-
" media_type=lb.MediaType.Image,\n",
768-
" queue_mode=lb.QueueMode.Batch)\n",
767+
" media_type=lb.MediaType.Image)\n",
769768
"\n",
770769
"project.setup_editor(ontology)"
771770
],

examples/annotation_import/pdf.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@
8080
"source": [
8181
"import uuid\n",
8282
"import labelbox as lb\n",
83-
"import labelbox.types as lb_types\n",
84-
"from labelbox.schema.queue_mode import QueueMode"
83+
"import labelbox.types as lb_types\n"
8584
],
8685
"cell_type": "code",
8786
"outputs": [],
@@ -769,7 +768,6 @@
769768
"source": [
770769
"# Create a Labelbox project\n",
771770
"project = client.create_project(name=\"PDF_annotation_demo\", \n",
772-
" queue_mode=QueueMode.Batch,\n",
773771
" media_type=lb.MediaType.Document)\n",
774772
"project.setup_editor(ontology)"
775773
],

examples/annotation_import/tiled.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,6 @@
875875
"# Queue mode will be deprecated once dataset mode is deprecated\n",
876876
"\n",
877877
"project = client.create_project(name=\"Geospatial Project Demo\",\n",
878-
" queue_mode=lb.QueueMode.Batch,\n",
879878
" media_type=lb.MediaType.Geospatial_Tile)\n",
880879
"\n",
881880
"\n",

examples/basics/batches.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,7 @@
137137
{
138138
"metadata": {},
139139
"source": [
140-
"# Project defaults to batch mode with benchmark quality settings if the queue mode argument is not provided\n",
141-
"# Queue mode will be deprecated once dataset mode is deprecated \n",
142-
"\n",
143-
"# Create a batch project with benchmark quality control. Consensus is currentely not supported with Batches\n",
144140
"project = client.create_project( name=\"Demo-Batches-Project\", \n",
145-
" queue_mode=lb.QueueMode.Batch,\n",
146-
" auto_audit_percentage=1,\n",
147-
" auto_audit_number_of_labels=1,\n",
148141
" media_type=lb.MediaType.Image\n",
149142
" )\n",
150143
"print(\"Project Name:\", project.name ,\n",

examples/integrations/sam/meta_sam_labelbox.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@
397397
"# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n",
398398
"# Queue mode will be deprecated once dataset mode is deprecated\n",
399399
"project = client.create_project(name=\"auto-mask-classification-project\",\n",
400-
" media_type=lb.MediaType.Image,\n",
401-
" queue_mode=lb.QueueMode.Batch)\n",
400+
" media_type=lb.MediaType.Image\n",
401+
" )\n",
402402
"\n",
403403
"# Or get an existing project by ID (uncomment the below)\n",
404404
"\n",

examples/prediction_upload/conversational_predictions.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,19 @@
368368
" lb.Classification( \n",
369369
" class_type=lb.Classification.Type.TEXT,\n",
370370
" scope=lb.Classification.Scope.INDEX, \n",
371-
" instructions=\"text_convo\"), \n",
371+
" name=\"text_convo\"), \n",
372372
" lb.Classification( \n",
373373
" class_type=lb.Classification.Type.CHECKLIST, \n",
374374
" scope=lb.Classification.Scope.INDEX, \n",
375-
" instructions=\"checklist_convo\", \n",
375+
" name=\"checklist_convo\", \n",
376376
" options=[\n",
377377
" lb.Option(value=\"first_checklist_answer\"),\n",
378378
" lb.Option(value=\"second_checklist_answer\") \n",
379379
" ]\n",
380380
" ), \n",
381381
" lb.Classification( \n",
382382
" class_type=lb.Classification.Type.RADIO, \n",
383-
" instructions=\"radio_convo\", \n",
383+
" name=\"radio_convo\", \n",
384384
" scope=lb.Classification.Scope.INDEX, \n",
385385
" options=[\n",
386386
" lb.Option(value=\"first_radio_answer\"),\n",
@@ -783,4 +783,4 @@
783783
"execution_count": null
784784
}
785785
]
786-
}
786+
}

examples/prediction_upload/geospatial_predictions.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,9 +1041,6 @@
10411041
"source": [
10421042
"# Create a Labelbox project\n",
10431043
"project = client.create_project(name=\"geospatial_prediction_demo\", \n",
1044-
" queue_mode=lb.QueueMode.Batch,\n",
1045-
" auto_audit_percentage=1,\n",
1046-
" auto_audit_number_of_labels=1,\n",
10471044
" media_type=lb.MediaType.Geospatial_Tile)\n",
10481045
"project.setup_editor(ontology)"
10491046
],

examples/prediction_upload/html_predictions.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,6 @@
502502
"source": [
503503
"# Create a Labelbox project\n",
504504
"project = client.create_project(name=\"HTML prediction import demo\", \n",
505-
" queue_mode=lb.QueueMode.Batch,\n",
506-
" auto_audit_percentage=1,\n",
507-
" auto_audit_number_of_labels=1,\n",
508505
" media_type=lb.MediaType.Html)\n",
509506
"project.setup_editor(ontology)"
510507
],

examples/project_configuration/queue_management.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@
104104
"project = client.create_project(name=\"batch-test-project\",\n",
105105
" description=\"a description\",\n",
106106
" media_type=lb.MediaType.Image,\n",
107-
" # Setup quality settings (Benchmarks)\n",
108-
" auto_audit_number_of_labels=1,\n",
109-
" queue_mode=lb.QueueMode.Batch)\n",
107+
" )\n",
110108
"\n",
111109
"# For Consensus quality settings use : \n",
112110
"consensus_quality = {\n",

0 commit comments

Comments
 (0)