|
30 | 30 | "output_type": "stream",
|
31 | 31 | "name": "stdout",
|
32 | 32 | "text": [
|
33 |
| - "Thu Jun 1 17:47:12 2023 \n", |
34 |
| - "+-----------------------------------------------------------------------------+\n", |
35 |
| - "| NVIDIA-SMI 525.85.12 Driver Version: 525.85.12 CUDA Version: 12.0 |\n", |
36 |
| - "|-------------------------------+----------------------+----------------------+\n", |
37 |
| - "| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\n", |
38 |
| - "| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |\n", |
39 |
| - "| | | MIG M. |\n", |
40 |
| - "|===============================+======================+======================|\n", |
41 |
| - "| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n", |
42 |
| - "| N/A 75C P8 12W / 70W | 0MiB / 15360MiB | 0% Default |\n", |
43 |
| - "| | | N/A |\n", |
44 |
| - "+-------------------------------+----------------------+----------------------+\n", |
45 |
| - " \n", |
46 |
| - "+-----------------------------------------------------------------------------+\n", |
47 |
| - "| Processes: |\n", |
48 |
| - "| GPU GI CI PID Type Process name GPU Memory |\n", |
49 |
| - "| ID ID Usage |\n", |
50 |
| - "|=============================================================================|\n", |
51 |
| - "| No running processes found |\n", |
52 |
| - "+-----------------------------------------------------------------------------+\n" |
| 33 | + "/bin/bash: nvidia-smi: command not found\n" |
53 | 34 | ]
|
54 | 35 | }
|
55 | 36 | ],
|
|
381 | 362 | "output_type": "stream",
|
382 | 363 | "name": "stdout",
|
383 | 364 | "text": [
|
384 |
| - "\u001b[?25l \u001b[90m\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u001b[0m \u001b[32m0.0/209.1 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u001b[0m \u001b[32m209.1/209.1 kB\u001b[0m \u001b[31m17.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 365 | + "\u001b[?25l \u001b[90m\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u001b[0m \u001b[32m0.0/209.1 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u001b[0m \u001b[32m209.1/209.1 kB\u001b[0m \u001b[31m6.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
385 | 366 | "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
|
386 |
| - "\u001b[2K \u001b[90m\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u001b[0m \u001b[32m7.7/7.7 MB\u001b[0m \u001b[31m70.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 367 | + "\u001b[2K \u001b[90m\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u001b[0m \u001b[32m7.7/7.7 MB\u001b[0m \u001b[31m75.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
387 | 368 | "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
|
388 | 369 | " Building wheel for backports-datetime-fromisoformat (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
|
389 | 370 | " Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
|
|
411 | 392 | "# https://docs.labelbox.com/reference/create-api-key\n",
|
412 | 393 | "# Then, fill it in here\n",
|
413 | 394 | "\n",
|
414 |
| - "API_KEY = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjbDc1Znp0dmszbmljMDd6bjR1Mm1mN3ZrIiwib3JnYW5pemF0aW9uSWQiOiJjbDc1Znp0djkzbmliMDd6bmJndnYwMGw4IiwiYXBpS2V5SWQiOiJjbGg4dXFrcmIwYnVvMDd6OTFtNmE1M2NxIiwic2VjcmV0IjoiZTY0NWE1MGI5MGNjZWUwNmM2Mzc3NmQ1YTE4MmIwZWUiLCJpYXQiOjE2ODMxODgxMDMsImV4cCI6MjMxNDM0MDEwM30.6nm9lzUONVXFKBxVGJZ7a50_j4l3HSjO9wvs8MP3C6I\"\n", |
| 395 | + "API_KEY = \"\"\n", |
415 | 396 | "client = lb.Client(API_KEY)"
|
416 | 397 | ],
|
417 | 398 | "cell_type": "code",
|
|
725 | 706 | "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n",
|
726 | 707 | "# Queue mode will be deprecated once dataset mode is deprecated\n",
|
727 | 708 | "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", |
| 709 | + " media_type=lb.MediaType.Video)\n", |
730 | 710 | "\n",
|
731 | 711 | "# Or get an existing project by ID (uncomment the below)\n",
|
732 | 712 | "\n",
|
|
744 | 724 | "source": [
|
745 | 725 | "# Create a new batch of data for the project you specified above\n",
|
746 | 726 | "\n",
|
747 |
| - "data_row_ids = client.get_data_row_ids_for_global_keys([global_key])['results']\n", |
| 727 | + "# Uncomment if you are using `data_rows` parameter below\n", |
| 728 | + "# data_row_ids = client.get_data_row_ids_for_global_keys([global_key])['results']\n", |
748 | 729 | "\n",
|
749 | 730 | "batch = project.create_batch(\n",
|
750 | 731 | " \"yolo-sam-video-masks-project\", # each batch in a project must have a unique name\n",
|
751 |
| - " data_rows=data_row_ids,\n", |
752 | 732 | " \n",
|
753 | 733 | " # 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", |
| 734 | + " global_keys=[global_key],\n", |
| 735 | + "\n", |
| 736 | + " # you can also specify data_rows instead of global_keys\n", |
| 737 | + " #data_rows=data_row_ids,\n", |
755 | 738 | " \n",
|
756 | 739 | " priority=1 # priority between 1(highest) - 5(lowest)\n",
|
757 | 740 | ")\n",
|
|
0 commit comments