|
7 | 7 | "source": [ |
8 | 8 | "# MAL With Annotation Types\n", |
9 | 9 | "* Image MAL with subclasses.\n", |
10 | | - "* This is the same task as the image mal tutorial but we are going to add a subclass for whether or not the person in the image is holding a bag." |
| 10 | + "* This is the same task as the image mal tutorial but we are going to use annnotation types" |
11 | 11 | ] |
12 | 12 | }, |
13 | 13 | { |
|
46 | 46 | "source": [ |
47 | 47 | "#Used this as a reference for the model\n", |
48 | 48 | "#https://colab.research.google.com/github/tensorflow/tpu/blob/master/models/official/mask_rcnn/mask_rcnn_demo.ipynb#scrollTo=6lCL-ZcwaJbA\n", |
49 | | - "from labelbox.schema.ontology import OntologyBuilder, Tool, Classification, Option\n", |
50 | | - "from labelbox import Client, LabelingFrontend\n", |
| 49 | + "import numpy as np\n", |
| 50 | + "from PIL import Image\n", |
| 51 | + "import requests\n", |
| 52 | + "import ndjson\n", |
| 53 | + "import uuid\n", |
| 54 | + "from io import BytesIO\n", |
| 55 | + "import os\n", |
| 56 | + "from getpass import getpass\n", |
| 57 | + "\n", |
| 58 | + "from labelbox import (\n", |
| 59 | + " Client, \n", |
| 60 | + " LabelingFrontend, \n", |
| 61 | + " OntologyBuilder, \n", |
| 62 | + " Tool, \n", |
| 63 | + " Classification, \n", |
| 64 | + " Option\n", |
| 65 | + ")\n", |
| 66 | + "\n", |
51 | 67 | "from labelbox.data.annotation_types import (\n", |
52 | 68 | " LabelList,\n", |
53 | 69 | " RasterData,\n", |
|
61 | 77 | " Label\n", |
62 | 78 | ")\n", |
63 | 79 | "from labelbox.data.serialization import NDJsonConverter\n", |
64 | | - "from image_model import predict, class_mappings, load_model\n", |
65 | | - "from typing import Dict, Any, Tuple, List\n", |
66 | | - "import numpy as np\n", |
67 | | - "from PIL import Image\n", |
68 | | - "import requests\n", |
69 | | - "import ndjson\n", |
70 | | - "import uuid\n", |
71 | | - "from io import BytesIO\n", |
72 | | - "import os\n", |
73 | | - "from getpass import getpass" |
| 80 | + "from image_model import predict, class_mappings, load_model" |
74 | 81 | ] |
75 | 82 | }, |
76 | 83 | { |
|
323 | 330 | "metadata": {}, |
324 | 331 | "outputs": [], |
325 | 332 | "source": [] |
| 333 | + }, |
| 334 | + { |
| 335 | + "cell_type": "code", |
| 336 | + "execution_count": null, |
| 337 | + "id": "prospective-grave", |
| 338 | + "metadata": {}, |
| 339 | + "outputs": [], |
| 340 | + "source": [] |
326 | 341 | } |
327 | 342 | ], |
328 | 343 | "metadata": { |
|
0 commit comments