Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions examples/annotation_import/video.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "voluntary-minister",
"outputId": "5b41a2ab-e9e9-400c-e595-05bac9f2c57c"
"outputId": "0014d4ac-6b27-4aa8-96d9-08fe850024f8"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\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",
"\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",
"\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",
"\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
"\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",
"\u001b[?25h Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
]
}
],
Expand All @@ -94,7 +94,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {
"id": "committed-richards"
},
Expand Down Expand Up @@ -124,7 +124,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {
"id": "affecting-myanmar"
},
Expand Down Expand Up @@ -159,7 +159,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {
"id": "suburban-crowd"
},
Expand Down Expand Up @@ -208,7 +208,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {
"id": "NCkQ1pB6zBne"
},
Expand All @@ -234,7 +234,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {
"id": "8xF7QbwZ41Q5"
},
Expand Down Expand Up @@ -320,7 +320,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {
"id": "hm-zJTtE_APt"
},
Expand Down Expand Up @@ -365,7 +365,7 @@
"id": "N5ibW4frr5rw"
},
"id": "N5ibW4frr5rw",
"execution_count": 8,
"execution_count": 9,
"outputs": []
},
{
Expand Down Expand Up @@ -427,7 +427,7 @@
"id": "TU6PLazxZdWl"
},
"id": "TU6PLazxZdWl",
"execution_count": 9,
"execution_count": 10,
"outputs": []
},
{
Expand All @@ -452,30 +452,30 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "ysLRIWM3HGFv",
"outputId": "ef2fcf93-9b4b-478d-a500-3f89cb2c5529"
"outputId": "662ef670-488a-45ca-be79-78f12aeb57b0"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"clcj3stei2y2c07zx2qxmfa7t\n",
"cldj4sy3t1sq8071acsro5udf\n",
"<DataRow {\n",
" \"created_at\": \"2023-01-05 13:07:54+00:00\",\n",
" \"created_at\": \"2023-01-30 18:15:42+00:00\",\n",
" \"external_id\": null,\n",
" \"global_key\": \"8b1bc6e0-7c79-43c0-b8a0-b613d555c727\",\n",
" \"global_key\": \"da6c97bf-7b80-42e4-a8d5-f355a140991c\",\n",
" \"media_attributes\": {},\n",
" \"metadata\": [],\n",
" \"metadata_fields\": [],\n",
" \"row_data\": \"https://storage.googleapis.com/labelbox-datasets/video-sample-data/sample-video-2.mp4\",\n",
" \"uid\": \"clcj3stei2y2c07zx2qxmfa7t\",\n",
" \"updated_at\": \"2023-01-05 13:07:54+00:00\"\n",
" \"uid\": \"cldj4sy3t1sq8071acsro5udf\",\n",
" \"updated_at\": \"2023-01-30 18:15:42+00:00\"\n",
"}>\n"
]
}
Expand Down Expand Up @@ -506,7 +506,7 @@
"### Step 2: Create/select an ontology\n",
"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",
"\n",
"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",
"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",
"\n",
"\n",
"[Documentation for reference ](https://docs.labelbox.com/reference/import-text-annotations)"
Expand All @@ -515,7 +515,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {
"id": "ZCjNJBTSKONt"
},
Expand Down Expand Up @@ -595,7 +595,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"metadata": {
"id": "wPLSHXrQPfHh"
},
Expand Down Expand Up @@ -640,7 +640,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand Down Expand Up @@ -698,7 +698,7 @@
},
"source": [
"#### NDJSON annotations\n",
"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)."
"Here we create the complete `label_ndjson` payload of annotations. There is one annotation for each *reference to an annotation* that we created above."
],
"id": "ew0UVWtGZzTO"
},
Expand Down Expand Up @@ -735,7 +735,7 @@
"outputId": "5649b763-eea5-4c20-883e-4c372c91dddf"
},
"id": "4V7BXb-XfFCY",
"execution_count": 14,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
Expand All @@ -751,7 +751,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"metadata": {
"id": "qnFTqR6eZ3mE"
},
Expand Down Expand Up @@ -790,7 +790,7 @@
"outputId": "40071166-90a0-4f5d-b16e-1f5f02a0f378"
},
"id": "ZNQAjFculCTl",
"execution_count": 16,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand Down Expand Up @@ -893,7 +893,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand Down Expand Up @@ -937,7 +937,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand Down Expand Up @@ -981,7 +981,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": null,
"metadata": {
"id": "yPZaLM74LFhB"
},
Expand Down