|
67 | 67 | }, |
68 | 68 | { |
69 | 69 | "cell_type": "code", |
70 | | - "execution_count": 1, |
| 70 | + "execution_count": 2, |
71 | 71 | "metadata": { |
72 | 72 | "colab": { |
73 | 73 | "base_uri": "https://localhost:8080/" |
74 | 74 | }, |
75 | 75 | "id": "voluntary-minister", |
76 | | - "outputId": "5b41a2ab-e9e9-400c-e595-05bac9f2c57c" |
| 76 | + "outputId": "0014d4ac-6b27-4aa8-96d9-08fe850024f8" |
77 | 77 | }, |
78 | 78 | "outputs": [ |
79 | 79 | { |
80 | 80 | "output_type": "stream", |
81 | 81 | "name": "stdout", |
82 | 82 | "text": [ |
83 | | - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m185.5/185.5 KB\u001b[0m \u001b[31m6.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
84 | | - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m26.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 83 | + "\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/185.5 KB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[91m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[91m╸\u001b[0m \u001b[32m184.3/185.5 KB\u001b[0m \u001b[31m11.1 MB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m185.5/185.5 KB\u001b[0m \u001b[31m4.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
85 | 84 | "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n", |
86 | | - " Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n" |
| 85 | + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m46.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 86 | + "\u001b[?25h Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n" |
87 | 87 | ] |
88 | 88 | } |
89 | 89 | ], |
|
94 | 94 | }, |
95 | 95 | { |
96 | 96 | "cell_type": "code", |
97 | | - "execution_count": 2, |
| 97 | + "execution_count": 3, |
98 | 98 | "metadata": { |
99 | 99 | "id": "committed-richards" |
100 | 100 | }, |
|
124 | 124 | }, |
125 | 125 | { |
126 | 126 | "cell_type": "code", |
127 | | - "execution_count": 3, |
| 127 | + "execution_count": 4, |
128 | 128 | "metadata": { |
129 | 129 | "id": "affecting-myanmar" |
130 | 130 | }, |
|
159 | 159 | }, |
160 | 160 | { |
161 | 161 | "cell_type": "code", |
162 | | - "execution_count": 4, |
| 162 | + "execution_count": 5, |
163 | 163 | "metadata": { |
164 | 164 | "id": "suburban-crowd" |
165 | 165 | }, |
|
208 | 208 | }, |
209 | 209 | { |
210 | 210 | "cell_type": "code", |
211 | | - "execution_count": 5, |
| 211 | + "execution_count": 6, |
212 | 212 | "metadata": { |
213 | 213 | "id": "NCkQ1pB6zBne" |
214 | 214 | }, |
|
234 | 234 | }, |
235 | 235 | { |
236 | 236 | "cell_type": "code", |
237 | | - "execution_count": 6, |
| 237 | + "execution_count": 7, |
238 | 238 | "metadata": { |
239 | 239 | "id": "8xF7QbwZ41Q5" |
240 | 240 | }, |
|
320 | 320 | }, |
321 | 321 | { |
322 | 322 | "cell_type": "code", |
323 | | - "execution_count": 7, |
| 323 | + "execution_count": 8, |
324 | 324 | "metadata": { |
325 | 325 | "id": "hm-zJTtE_APt" |
326 | 326 | }, |
|
365 | 365 | "id": "N5ibW4frr5rw" |
366 | 366 | }, |
367 | 367 | "id": "N5ibW4frr5rw", |
368 | | - "execution_count": 8, |
| 368 | + "execution_count": 9, |
369 | 369 | "outputs": [] |
370 | 370 | }, |
371 | 371 | { |
|
427 | 427 | "id": "TU6PLazxZdWl" |
428 | 428 | }, |
429 | 429 | "id": "TU6PLazxZdWl", |
430 | | - "execution_count": 9, |
| 430 | + "execution_count": 10, |
431 | 431 | "outputs": [] |
432 | 432 | }, |
433 | 433 | { |
|
452 | 452 | }, |
453 | 453 | { |
454 | 454 | "cell_type": "code", |
455 | | - "execution_count": 10, |
| 455 | + "execution_count": 11, |
456 | 456 | "metadata": { |
457 | 457 | "colab": { |
458 | 458 | "base_uri": "https://localhost:8080/" |
459 | 459 | }, |
460 | 460 | "id": "ysLRIWM3HGFv", |
461 | | - "outputId": "ef2fcf93-9b4b-478d-a500-3f89cb2c5529" |
| 461 | + "outputId": "662ef670-488a-45ca-be79-78f12aeb57b0" |
462 | 462 | }, |
463 | 463 | "outputs": [ |
464 | 464 | { |
465 | 465 | "output_type": "stream", |
466 | 466 | "name": "stdout", |
467 | 467 | "text": [ |
468 | | - "clcj3stei2y2c07zx2qxmfa7t\n", |
| 468 | + "cldj4sy3t1sq8071acsro5udf\n", |
469 | 469 | "<DataRow {\n", |
470 | | - " \"created_at\": \"2023-01-05 13:07:54+00:00\",\n", |
| 470 | + " \"created_at\": \"2023-01-30 18:15:42+00:00\",\n", |
471 | 471 | " \"external_id\": null,\n", |
472 | | - " \"global_key\": \"8b1bc6e0-7c79-43c0-b8a0-b613d555c727\",\n", |
| 472 | + " \"global_key\": \"da6c97bf-7b80-42e4-a8d5-f355a140991c\",\n", |
473 | 473 | " \"media_attributes\": {},\n", |
474 | 474 | " \"metadata\": [],\n", |
475 | 475 | " \"metadata_fields\": [],\n", |
476 | 476 | " \"row_data\": \"https://storage.googleapis.com/labelbox-datasets/video-sample-data/sample-video-2.mp4\",\n", |
477 | | - " \"uid\": \"clcj3stei2y2c07zx2qxmfa7t\",\n", |
478 | | - " \"updated_at\": \"2023-01-05 13:07:54+00:00\"\n", |
| 477 | + " \"uid\": \"cldj4sy3t1sq8071acsro5udf\",\n", |
| 478 | + " \"updated_at\": \"2023-01-30 18:15:42+00:00\"\n", |
479 | 479 | "}>\n" |
480 | 480 | ] |
481 | 481 | } |
|
506 | 506 | "### Step 2: Create/select an ontology\n", |
507 | 507 | "Your project should have the correct ontology setup with all the tools and classifications supported for your annotations, and the tool names and classification instructions should match the `name`/`instructions` fields in your annotations to ensure the correct feature schemas are matched.\n", |
508 | 508 | "\n", |
509 | | - "For example, when we create the bounding box annotation [above](https://colab.research.google.com/drive/1S3HBa10jwfFFNB71Uid-crUDdhfEGnXh#scrollTo=suburban-crowd&line=10&uniqifier=1), we provided the `name` as `bbox_video`. Now, when we setup our ontology, we must ensure that the name of my bounding box tool is also `bbox_video`. The same alignment must hold true for the other tools and classifications we create in our ontology.\n", |
| 509 | + "For example, when we create the bounding box annotation above, we provided the `name` as `bbox_video`. Now, when we setup our ontology, we must ensure that the name of my bounding box tool is also `bbox_video`. The same alignment must hold true for the other tools and classifications we create in our ontology.\n", |
510 | 510 | "\n", |
511 | 511 | "\n", |
512 | 512 | "[Documentation for reference ](https://docs.labelbox.com/reference/import-text-annotations)" |
|
515 | 515 | }, |
516 | 516 | { |
517 | 517 | "cell_type": "code", |
518 | | - "execution_count": 11, |
| 518 | + "execution_count": null, |
519 | 519 | "metadata": { |
520 | 520 | "id": "ZCjNJBTSKONt" |
521 | 521 | }, |
|
595 | 595 | }, |
596 | 596 | { |
597 | 597 | "cell_type": "code", |
598 | | - "execution_count": 12, |
| 598 | + "execution_count": null, |
599 | 599 | "metadata": { |
600 | 600 | "id": "wPLSHXrQPfHh" |
601 | 601 | }, |
|
640 | 640 | }, |
641 | 641 | { |
642 | 642 | "cell_type": "code", |
643 | | - "execution_count": 13, |
| 643 | + "execution_count": null, |
644 | 644 | "metadata": { |
645 | 645 | "colab": { |
646 | 646 | "base_uri": "https://localhost:8080/" |
|
698 | 698 | }, |
699 | 699 | "source": [ |
700 | 700 | "#### NDJSON annotations\n", |
701 | | - "Here we create the complete `label_ndjson` payload of annotations. There is one annotation for each *reference to an annotation* that we created [above](https://colab.research.google.com/drive/1S3HBa10jwfFFNB71Uid-crUDdhfEGnXh#scrollTo=kLT9P-WYk4Nr&line=1&uniqifier=1)." |
| 701 | + "Here we create the complete `label_ndjson` payload of annotations. There is one annotation for each *reference to an annotation* that we created above." |
702 | 702 | ], |
703 | 703 | "id": "ew0UVWtGZzTO" |
704 | 704 | }, |
|
735 | 735 | "outputId": "5649b763-eea5-4c20-883e-4c372c91dddf" |
736 | 736 | }, |
737 | 737 | "id": "4V7BXb-XfFCY", |
738 | | - "execution_count": 14, |
| 738 | + "execution_count": null, |
739 | 739 | "outputs": [ |
740 | 740 | { |
741 | 741 | "output_type": "stream", |
|
751 | 751 | }, |
752 | 752 | { |
753 | 753 | "cell_type": "code", |
754 | | - "execution_count": 15, |
| 754 | + "execution_count": null, |
755 | 755 | "metadata": { |
756 | 756 | "id": "qnFTqR6eZ3mE" |
757 | 757 | }, |
|
790 | 790 | "outputId": "40071166-90a0-4f5d-b16e-1f5f02a0f378" |
791 | 791 | }, |
792 | 792 | "id": "ZNQAjFculCTl", |
793 | | - "execution_count": 16, |
| 793 | + "execution_count": null, |
794 | 794 | "outputs": [ |
795 | 795 | { |
796 | 796 | "output_type": "execute_result", |
|
893 | 893 | }, |
894 | 894 | { |
895 | 895 | "cell_type": "code", |
896 | | - "execution_count": 17, |
| 896 | + "execution_count": null, |
897 | 897 | "metadata": { |
898 | 898 | "colab": { |
899 | 899 | "base_uri": "https://localhost:8080/" |
|
937 | 937 | }, |
938 | 938 | { |
939 | 939 | "cell_type": "code", |
940 | | - "execution_count": 18, |
| 940 | + "execution_count": null, |
941 | 941 | "metadata": { |
942 | 942 | "colab": { |
943 | 943 | "base_uri": "https://localhost:8080/" |
|
981 | 981 | }, |
982 | 982 | { |
983 | 983 | "cell_type": "code", |
984 | | - "execution_count": 19, |
| 984 | + "execution_count": null, |
985 | 985 | "metadata": { |
986 | 986 | "id": "yPZaLM74LFhB" |
987 | 987 | }, |
|
0 commit comments