|
50 | 50 | }, |
51 | 51 | { |
52 | 52 | "cell_type": "code", |
53 | | - "execution_count": null, |
| 53 | + "execution_count": 1, |
54 | 54 | "metadata": { |
55 | | - "id": "wRIdzkYf7T18" |
| 55 | + "id": "wRIdzkYf7T18", |
| 56 | + "colab": { |
| 57 | + "base_uri": "https://localhost:8080/" |
| 58 | + }, |
| 59 | + "outputId": "13ee42f0-4206-493f-f402-ac7c84916e5e" |
56 | 60 | }, |
57 | | - "outputs": [], |
| 61 | + "outputs": [ |
| 62 | + { |
| 63 | + "output_type": "stream", |
| 64 | + "name": "stdout", |
| 65 | + "text": [ |
| 66 | + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m189.2/189.2 KB\u001b[0m \u001b[31m3.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 67 | + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m52.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 68 | + "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n", |
| 69 | + " Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n" |
| 70 | + ] |
| 71 | + } |
| 72 | + ], |
58 | 73 | "source": [ |
59 | 74 | "# labelbox\n", |
60 | 75 | "!pip3 install -q labelbox[data]\n", |
|
75 | 90 | }, |
76 | 91 | { |
77 | 92 | "cell_type": "code", |
78 | | - "execution_count": null, |
| 93 | + "execution_count": 2, |
79 | 94 | "metadata": { |
80 | 95 | "colab": { |
81 | 96 | "base_uri": "https://localhost:8080/" |
82 | 97 | }, |
83 | 98 | "id": "9k82ueIu8Dy1", |
84 | | - "outputId": "cc728790-fc62-4d8d-a3e7-94739ffec809" |
| 99 | + "outputId": "5323157e-872b-4bf2-a65c-0fa9662cdbe8" |
85 | 100 | }, |
86 | 101 | "outputs": [ |
87 | 102 | { |
|
90 | 105 | "text": [ |
91 | 106 | " Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n", |
92 | 107 | " Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n", |
93 | | - " Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n" |
| 108 | + " Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n", |
| 109 | + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.8/62.8 KB\u001b[0m \u001b[31m2.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 110 | + "\u001b[?25h Building wheel for advlib (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n" |
94 | 111 | ] |
95 | 112 | } |
96 | 113 | ], |
|
136 | 153 | }, |
137 | 154 | { |
138 | 155 | "cell_type": "code", |
139 | | - "execution_count": null, |
| 156 | + "execution_count": 32, |
140 | 157 | "metadata": { |
141 | 158 | "id": "tOIyo5pC7PTz" |
142 | 159 | }, |
|
161 | 178 | }, |
162 | 179 | { |
163 | 180 | "cell_type": "code", |
164 | | - "execution_count": null, |
| 181 | + "execution_count": 33, |
165 | 182 | "metadata": { |
166 | 183 | "id": "iJFGf0w7swnW" |
167 | 184 | }, |
|
193 | 210 | }, |
194 | 211 | { |
195 | 212 | "cell_type": "code", |
196 | | - "execution_count": null, |
| 213 | + "execution_count": 35, |
197 | 214 | "metadata": { |
198 | 215 | "id": "u0ZgybLK67n0", |
199 | 216 | "colab": { |
200 | 217 | "base_uri": "https://localhost:8080/" |
201 | 218 | }, |
202 | | - "outputId": "d644f81a-014e-4de9-913a-74211972e9b2" |
| 219 | + "outputId": "7e1991a0-8e0a-4e63-e8d8-dfdcf095a625" |
203 | 220 | }, |
204 | 221 | "outputs": [ |
205 | 222 | { |
206 | 223 | "output_type": "stream", |
207 | 224 | "name": "stdout", |
208 | 225 | "text": [ |
209 | | - "Nb of custom embedding vectors in sanity_check_payload: 1000\n", |
210 | | - "sanity_check_payload: " |
211 | | - ] |
212 | | - }, |
213 | | - { |
214 | | - "output_type": "stream", |
215 | | - "name": "stderr", |
216 | | - "text": [ |
217 | | - "IOPub data rate exceeded.\n", |
218 | | - "The notebook server will temporarily stop sending output\n", |
219 | | - "to the client in order to avoid crashing it.\n", |
220 | | - "To change this limit, set the config variable\n", |
221 | | - "`--NotebookApp.iopub_data_rate_limit`.\n", |
222 | | - "\n", |
223 | | - "Current values:\n", |
224 | | - "NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec)\n", |
225 | | - "NotebookApp.rate_limit_window=3.0 (secs)\n", |
226 | | - "\n" |
| 226 | + "Nb of custom embedding vectors in sanity_check_payload: 1000\n" |
227 | 227 | ] |
228 | 228 | } |
229 | 229 | ], |
|
251 | 251 | }, |
252 | 252 | { |
253 | 253 | "cell_type": "code", |
254 | | - "execution_count": null, |
| 254 | + "execution_count": 46, |
255 | 255 | "metadata": { |
256 | 256 | "colab": { |
257 | 257 | "base_uri": "https://localhost:8080/" |
258 | 258 | }, |
259 | 259 | "id": "YQeCS_U98BD2", |
260 | | - "outputId": "178dc3be-6e89-4df8-ec3d-2fa6dacc0be0" |
| 260 | + "outputId": "cdeb0bc7-9ea1-4864-88ff-122f6dab8af4" |
261 | 261 | }, |
262 | 262 | "outputs": [ |
263 | 263 | { |
|
266 | 266 | "text": [ |
267 | 267 | "00000000-0000-0000-0000-000000000000 - Image Embedding (CLIP ViT-B/32) - dims: 512 \n", |
268 | 268 | "00000000-0000-0000-0000-000000000001 - Text embedding (All-MPNet-base-v2) - dims: 768 \n", |
269 | | - "521eadfe-f8e9-4135-9ead-fef8e9713546 - my_custom_embedding_2048_dimensions - dims: 2048 \n", |
270 | | - "a03948c1-151a-4a1a-b948-c1151a6a1a1d - ResNet50_2048_dimensions - dims: 2048 \n", |
271 | | - "baf8856a-e5f7-4781-b885-6ae5f7b78192 - my_custom_embedding - dims: 8 \n" |
| 269 | + "45cafc7a-5314-462a-8afc-7a5314062a3b - my_custom_embedding_2048_dimensions - dims: 2048 \n", |
| 270 | + "7d3a6118-589d-4b6c-ba61-18589dbb6ccf - ResNet50_2048_dimensions - dims: 2048 \n" |
272 | 271 | ] |
273 | 272 | } |
274 | 273 | ], |
|
279 | 278 | }, |
280 | 279 | { |
281 | 280 | "cell_type": "code", |
282 | | - "execution_count": null, |
| 281 | + "execution_count": 47, |
283 | 282 | "metadata": { |
284 | 283 | "colab": { |
285 | 284 | "base_uri": "https://localhost:8080/" |
286 | 285 | }, |
287 | 286 | "id": "spyHzkLP67dI", |
288 | | - "outputId": "21b6fda1-7a38-4bd5-d244-dfc90b8a5090" |
| 287 | + "outputId": "8a046562-5eb1-4fb1-8f23-6958f8b58e1f" |
289 | 288 | }, |
290 | 289 | "outputs": [ |
291 | 290 | { |
292 | 291 | "output_type": "stream", |
293 | 292 | "name": "stdout", |
294 | 293 | "text": [ |
295 | | - "Embedding type created id=521eadfe-f8e9-4135-9ead-fef8e9713546\n" |
| 294 | + "Embedding type created id=da5d4b0f-e440-4e2e-9d4b-0fe4400e2e8d\n" |
296 | 295 | ] |
297 | 296 | } |
298 | 297 | ], |
299 | 298 | "source": [ |
300 | 299 | "# # Create a new custom embedding\n", |
301 | | - "!advtool embeddings create my_custom_embedding_2048_dimensions 2048\n", |
| 300 | + "!advtool embeddings create my_custom_embedding_2048_dimensions_v2 2048\n", |
302 | 301 | "# will return the ID of the newly created embedding, e.g. 0ddc5d5c-0963-41ad-9c5d-5c0963a1ad98" |
303 | 302 | ] |
304 | 303 | }, |
305 | 304 | { |
306 | 305 | "cell_type": "code", |
307 | 306 | "source": [ |
308 | 307 | "# # Delete a custom embedding\n", |
309 | | - "# !advtool embeddings delete 521eadfe-f8e9-4135-9ead-fef8e9713546" |
| 308 | + "# !advtool embeddings delete 2e122b85-7def-44fb-922b-857defe4fb8a" |
310 | 309 | ], |
311 | 310 | "metadata": { |
312 | 311 | "id": "MafxKyncxyvR" |
|
325 | 324 | }, |
326 | 325 | { |
327 | 326 | "cell_type": "code", |
328 | | - "execution_count": null, |
| 327 | + "execution_count": 49, |
329 | 328 | "metadata": { |
330 | 329 | "colab": { |
331 | 330 | "base_uri": "https://localhost:8080/" |
332 | 331 | }, |
333 | 332 | "id": "twDd5XNM67Zo", |
334 | | - "outputId": "a7715fe7-3fc3-43d0-8316-bbc45a7dee60" |
| 333 | + "outputId": "cb4573de-5417-449b-b560-9f99cfe6eda4" |
335 | 334 | }, |
336 | 335 | "outputs": [ |
337 | 336 | { |
|
345 | 344 | } |
346 | 345 | ], |
347 | 346 | "source": [ |
348 | | - "# Upload the payload to Labelbox\n", |
349 | | - "!advtool embeddings import 521eadfe-f8e9-4135-9ead-fef8e9713546 ./payload.ndjson" |
| 347 | + "# Upload the payload to Labelbox \n", |
| 348 | + "!advtool embeddings import da5d4b0f-e440-4e2e-9d4b-0fe4400e2e8d ./payload.ndjson" |
350 | 349 | ] |
351 | 350 | }, |
352 | 351 | { |
353 | 352 | "cell_type": "code", |
354 | | - "execution_count": null, |
| 353 | + "execution_count": 63, |
355 | 354 | "metadata": { |
356 | 355 | "colab": { |
357 | 356 | "base_uri": "https://localhost:8080/" |
358 | 357 | }, |
359 | 358 | "id": "wC0eeEPM9aAM", |
360 | | - "outputId": "5889b2f8-1a07-4748-b3bf-efab545f1417" |
| 359 | + "outputId": "55932ddf-2dde-48c1-fd90-29532b8cfdf2" |
361 | 360 | }, |
362 | 361 | "outputs": [ |
363 | 362 | { |
364 | 363 | "output_type": "stream", |
365 | 364 | "name": "stdout", |
366 | 365 | "text": [ |
367 | | - "0\n" |
| 366 | + "1000\n" |
368 | 367 | ] |
369 | 368 | } |
370 | 369 | ], |
371 | 370 | "source": [ |
372 | | - "# count how many data rows have a specific custom embedding\n", |
373 | | - "!advtool embeddings count 521eadfe-f8e9-4135-9ead-fef8e9713546" |
| 371 | + "# count how many data rows have a specific custom embedding (This can take a couple of minutes)\n", |
| 372 | + "!advtool embeddings count da5d4b0f-e440-4e2e-9d4b-0fe4400e2e8d" |
374 | 373 | ] |
375 | 374 | }, |
376 | 375 | { |
377 | 376 | "cell_type": "code", |
378 | | - "execution_count": null, |
| 377 | + "execution_count": 64, |
379 | 378 | "metadata": { |
380 | 379 | "colab": { |
381 | 380 | "base_uri": "https://localhost:8080/" |
382 | 381 | }, |
383 | 382 | "id": "5AKDMJfO9Z51", |
384 | | - "outputId": "b3b6e7ca-1e99-4563-d8fe-038375008b69" |
| 383 | + "outputId": "207f251f-0350-451e-ffcb-661cafb0529f" |
385 | 384 | }, |
386 | 385 | "outputs": [ |
387 | 386 | { |
|
0 commit comments