Skip to content

Commit e066ba6

Browse files
Jay H PatelJay H Patel
authored andcommitted
formatting done
1 parent 6da7505 commit e066ba6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/integrations/sam/meta_sam_labelbox_video.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,7 @@
725725
"# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n",
726726
"# Queue mode will be deprecated once dataset mode is deprecated\n",
727727
"project = client.create_project(name=\"yolo-sam-video-masks-project\",\n",
728-
" media_type=lb.MediaType.Video,\n",
729-
" queue_mode=lb.QueueMode.Batch)\n",
728+
" media_type=lb.MediaType.Video)\n",
730729
"\n",
731730
"# Or get an existing project by ID (uncomment the below)\n",
732731
"\n",
@@ -744,14 +743,17 @@
744743
"source": [
745744
"# Create a new batch of data for the project you specified above\n",
746745
"\n",
747-
"data_row_ids = client.get_data_row_ids_for_global_keys([global_key])['results']\n",
746+
"# Uncomment if you are using `data_rows` parameter below\n",
747+
"# data_row_ids = client.get_data_row_ids_for_global_keys([global_key])['results']\n",
748748
"\n",
749749
"batch = project.create_batch(\n",
750750
" \"yolo-sam-video-masks-project\", # each batch in a project must have a unique name\n",
751-
" data_rows=data_row_ids,\n",
752751
" \n",
753752
" # you can also specify global_keys instead of data_rows\n",
754-
" #global_keys=[global_key], # paginated collection of data row objects, list of data row ids or global keys\n",
753+
" global_keys=[global_key],\n",
754+
"\n",
755+
" # you can also specify data_rows instead of global_keys\n",
756+
" #data_rows=data_row_ids,\n",
755757
" \n",
756758
" priority=1 # priority between 1(highest) - 5(lowest)\n",
757759
")\n",

0 commit comments

Comments
 (0)