|
96 | 96 | "import labelbox.data.annotation_types as lb_types\n",
|
97 | 97 | "import labelbox.schema.queue_mode as lb_queue_mode\n",
|
98 | 98 | "\n",
|
99 |
| - "from labelbox.data.serialization.ndjson.converter import NDJsonConverter\n", |
100 | 99 | "from labelbox.data.annotation_types.data.tiled_image import TiledBounds, TiledImageData, TileLayer, EPSG, EPSGTransformer\n",
|
101 | 100 | "\n"
|
102 | 101 | ],
|
|
565 | 564 | "cell_type": "code",
|
566 | 565 | "outputs": [
|
567 | 566 | {
|
568 |
| - "output_type": "stream", |
569 | 567 | "name": "stdout",
|
| 568 | + "output_type": "stream", |
570 | 569 | "text": [
|
571 | 570 | "None\n"
|
572 | 571 | ]
|
|
738 | 737 | "cell_type": "code",
|
739 | 738 | "outputs": [
|
740 | 739 | {
|
741 |
| - "output_type": "stream", |
742 | 740 | "name": "stdout",
|
| 741 | + "output_type": "stream", |
743 | 742 | "text": [
|
744 | 743 | "Batch: <Batch {\n",
|
745 | 744 | " \"consensus_settings_json\": \"{\\\"numberOfLabels\\\":1,\\\"coveragePercentage\\\":0}\",\n",
|
|
837 | 836 | "cell_type": "code",
|
838 | 837 | "outputs": [
|
839 | 838 | {
|
840 |
| - "output_type": "stream", |
841 | 839 | "name": "stderr",
|
| 840 | + "output_type": "stream", |
842 | 841 | "text": [
|
843 | 842 | "WARNING:labelbox.data.annotation_types.data.tiled_image:Unexpected tile size (512, 512, 3).\n",
|
844 | 843 | "WARNING:labelbox.data.annotation_types.data.tiled_image:Unexpected tile size (512, 512, 3).\n"
|
|
871 | 870 | " checklist_annotation,\n",
|
872 | 871 | " polygon_annotation_two\n",
|
873 | 872 | " ]\n",
|
874 |
| - ")\n", |
875 |
| - "# Convert our label from a Labelbox class object to the underlying NDJSON format required for upload \n", |
876 |
| - "label_ndjson = list(NDJsonConverter.serialize([label]))\n", |
877 |
| - "label_ndjson" |
| 873 | + ")" |
878 | 874 | ],
|
879 | 875 | "cell_type": "code",
|
880 | 876 | "outputs": [
|
881 | 877 | {
|
882 |
| - "output_type": "execute_result", |
883 | 878 | "data": {
|
884 | 879 | "text/plain": [
|
885 | 880 | "[{'uuid': '61ad497c-85bd-4f3c-a32e-4cb368844a22',\n",
|
|
972 | 967 | " {'x': -122.31703039689702, 'y': 37.87397804081582}]}]"
|
973 | 968 | ]
|
974 | 969 | },
|
| 970 | + "execution_count": 66, |
975 | 971 | "metadata": {},
|
976 |
| - "execution_count": 66 |
| 972 | + "output_type": "execute_result" |
977 | 973 | }
|
978 | 974 | ],
|
979 | 975 | "execution_count": null
|
|
1024 | 1020 | "cell_type": "code",
|
1025 | 1021 | "outputs": [
|
1026 | 1022 | {
|
1027 |
| - "output_type": "execute_result", |
1028 | 1023 | "data": {
|
1029 | 1024 | "text/plain": [
|
1030 | 1025 | "[{'name': 'point_geo',\n",
|
|
1124 | 1119 | " 'dataRow': {'id': 'cldxm4s5906rw074nfm5kgtrl'}}]"
|
1125 | 1120 | ]
|
1126 | 1121 | },
|
| 1122 | + "execution_count": 68, |
1127 | 1123 | "metadata": {},
|
1128 |
| - "execution_count": 68 |
| 1124 | + "output_type": "execute_result" |
1129 | 1125 | }
|
1130 | 1126 | ],
|
1131 | 1127 | "execution_count": null
|
|
1163 | 1159 | "cell_type": "code",
|
1164 | 1160 | "outputs": [
|
1165 | 1161 | {
|
1166 |
| - "output_type": "stream", |
1167 | 1162 | "name": "stdout",
|
| 1163 | + "output_type": "stream", |
1168 | 1164 | "text": [
|
1169 | 1165 | "Errors: []\n",
|
1170 | 1166 | " \n"
|
|
1197 | 1193 | "cell_type": "code",
|
1198 | 1194 | "outputs": [
|
1199 | 1195 | {
|
1200 |
| - "output_type": "stream", |
1201 | 1196 | "name": "stdout",
|
| 1197 | + "output_type": "stream", |
1202 | 1198 | "text": [
|
1203 | 1199 | "Errors: []\n"
|
1204 | 1200 | ]
|
|
0 commit comments