prrao87 commited on
Commit
566e3ad
·
verified ·
1 Parent(s): 6a73d9f

Update README with LanceDB examples

Browse files
Files changed (1) hide show
  1. README.md +185 -92
README.md CHANGED
@@ -3,6 +3,7 @@ license: cc-by-4.0
3
  task_categories:
4
  - object-detection
5
  - image-feature-extraction
 
6
  language:
7
  - en
8
  tags:
@@ -18,24 +19,23 @@ size_categories:
18
  ---
19
  # COCO 2017 Object Detection (Lance Format)
20
 
21
- Lance-formatted version of the [COCO 2017 object detection benchmark](https://cocodataset.org/) sourced from [`detection-datasets/coco`](https://huggingface.co/datasets/detection-datasets/coco) with **123,287 images** and the full per-image list of bounding boxes, category labels, and CLIP image embeddings, all stored inline.
22
-
23
- ## Why this version?
24
 
25
- Object detection datasets typically split images, annotations, and embeddings across multiple files (often three different formats: JPEG, JSON, NumPy). Lance keeps all of it in one tabular dataset:
26
 
27
- - one row per image,
28
- - the JPEG bytes, the bounding box list, the category labels, and the CLIP image embedding all live as columns on the same row,
29
- - `IVF_PQ` on the embedding column lets you do visual similarity search without leaving the dataset, and `LABEL_LIST` on `categories_present` lets you filter to "images containing a dog and a frisbee" in milliseconds.
 
30
 
31
  ## Splits
32
 
33
  | Split | Rows |
34
  |-------|------|
35
  | `train.lance` | 117,000+ |
36
- | `val.lance` | 4,950+ |
37
 
38
- (Counts come from the `detection-datasets/coco` redistribution; box counts: ~860k train / ~37k val.)
39
 
40
  ## Schema
41
 
@@ -43,88 +43,77 @@ Object detection datasets typically split images, annotations, and embeddings ac
43
  |---|---|---|
44
  | `id` | `int64` | Row index within split |
45
  | `image` | `large_binary` | Inline JPEG bytes |
46
- | `image_id` | `int64` | COCO image id |
47
  | `width`, `height` | `int32` | Image dimensions in pixels |
48
- | `bboxes` | `list<list<float32, 4>>` | Each box is `[x_min, y_min, x_max, y_max]` in absolute pixel coords |
49
- | `categories` | `list<int32>` | COCO 80-class id (0-79) |
50
- | `category_names` | `list<string>` | Human-readable class name per object (e.g. `person`, `dog`, …) |
51
- | `areas` | `list<float32>` | Bounding-box area (pixels²) |
52
  | `num_objects` | `int32` | Number of annotated objects in the image |
53
- | `categories_present` | `list<string>` | Deduped class names — feeds the `LABEL_LIST` index for fast filtering |
54
- | `image_emb` | `fixed_size_list<float32, 512>` | OpenCLIP `ViT-B-32` image embedding (cosine-normalized) |
55
 
56
  ## Pre-built indices
57
 
58
- - `IVF_PQ` on `image_emb` — `metric=cosine`
59
- - `BTREE` on `image_id`, `num_objects`
60
- - `LABEL_LIST` on `categories_present` — supports `array_has_any` / `array_has_all` predicates
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
- ## Quick start
63
 
64
  ```python
65
- import lance
66
 
67
- ds = lance.dataset("hf://datasets/lance-format/coco-detection-2017-lance/data/val.lance")
68
- print(ds.count_rows(), ds.schema.names, ds.list_indices())
 
69
  ```
70
 
71
  ## Load with LanceDB
72
 
73
- These tables can also be consumed by [LanceDB](https://lancedb.github.io/lancedb/), the multimodal lakehouse and embedded search library built on top of Lance, for simplified vector search and other queries.
74
 
75
  ```python
76
  import lancedb
77
 
78
  db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
79
  tbl = db.open_table("val")
80
- print(f"LanceDB table opened with {len(tbl)} images")
81
  ```
82
 
83
- > **Tip for production use, download locally first.**
84
- > ```bash
85
- > hf download lance-format/coco-detection-2017-lance --repo-type dataset --local-dir ./coco-detection-2017-lance
86
- > ```
87
 
88
- ## Read one annotated image
89
 
90
  ```python
91
- import io
92
  import lance
93
- from PIL import Image, ImageDraw
94
 
95
  ds = lance.dataset("hf://datasets/lance-format/coco-detection-2017-lance/data/val.lance")
96
- row = ds.take([0], columns=["image", "bboxes", "category_names", "width", "height"]).to_pylist()[0]
97
-
98
- img = Image.open(io.BytesIO(row["image"])).convert("RGB")
99
- draw = ImageDraw.Draw(img)
100
- for (x1, y1, x2, y2), name in zip(row["bboxes"], row["category_names"]):
101
- draw.rectangle([x1, y1, x2, y2], outline="red", width=3)
102
- draw.text((x1 + 4, y1 + 4), name, fill="red")
103
- img.save("annotated.jpg")
104
  ```
105
 
106
- ## Filter by classes (LABEL_LIST index)
107
-
108
- ```python
109
- import lance
110
- ds = lance.dataset("hf://datasets/lance-format/coco-detection-2017-lance/data/val.lance")
111
 
112
- # Images that contain BOTH a person and a frisbee.
113
- rows = ds.scanner(
114
- filter="array_has_all(categories_present, ['person', 'frisbee'])",
115
- columns=["image_id", "category_names"],
116
- limit=10,
117
- ).to_table().to_pylist()
118
-
119
- # Images with at least 5 objects of any class.
120
- busy = ds.scanner(
121
- filter="num_objects >= 5",
122
- columns=["image_id", "num_objects"],
123
- limit=10,
124
- ).to_table().to_pylist()
125
- ```
126
 
127
- ### Filter by classes with LanceDB
128
 
129
  ```python
130
  import lancedb
@@ -132,41 +121,117 @@ import lancedb
132
  db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
133
  tbl = db.open_table("val")
134
 
135
- rows = (
136
  tbl.search()
137
- .where("array_has_all(categories_present, ['person', 'frisbee'])")
138
- .select(["image_id", "category_names"])
 
 
 
 
 
 
 
 
139
  .limit(10)
140
  .to_list()
141
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
- busy = (
144
  tbl.search()
145
- .where("num_objects >= 5")
146
- .select(["image_id", "num_objects"])
147
- .limit(10)
 
 
 
 
148
  .to_list()
149
  )
 
150
  ```
151
 
152
- ## Visual similarity search
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
  ```python
155
- import lance
156
  import pyarrow as pa
157
 
158
- ds = lance.dataset("hf://datasets/lance-format/coco-detection-2017-lance/data/val.lance")
159
- emb_field = ds.schema.field("image_emb")
160
- ref = ds.take([0], columns=["image_emb"]).to_pylist()[0]["image_emb"]
161
- query = pa.array([ref], type=emb_field.type)
162
-
163
- neighbors = ds.scanner(
164
- nearest={"column": "image_emb", "q": query[0], "k": 5},
165
- columns=["image_id", "category_names"],
166
- ).to_table().to_pylist()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  ```
168
 
169
- ### LanceDB visual similarity search
 
 
 
 
170
 
171
  ```python
172
  import lancedb
@@ -174,23 +239,51 @@ import lancedb
174
  db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
175
  tbl = db.open_table("val")
176
 
177
- ref = tbl.search().limit(1).select(["image_emb"]).to_list()[0]
178
- query_embedding = ref["image_emb"]
 
 
 
 
179
 
180
- results = (
181
- tbl.search(query_embedding)
182
- .metric("cosine")
183
- .select(["image_id", "category_names"])
184
- .limit(5)
185
- .to_list()
186
- )
187
  ```
188
 
189
- ## Why Lance?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
 
191
- - One dataset carries images + boxes + categories + areas + embeddings + indices no JSON sidecars.
192
- - On-disk vector and label-list indices live next to the data, so filters and ANN search work on local copies and on the Hub.
193
- - Schema evolution: add columns (segmentation polygons, keypoints, panoptic ids, fresh embeddings) without rewriting the data.
194
 
195
  ## Source & license
196
 
 
3
  task_categories:
4
  - object-detection
5
  - image-feature-extraction
6
+ - lance
7
  language:
8
  - en
9
  tags:
 
19
  ---
20
  # COCO 2017 Object Detection (Lance Format)
21
 
22
+ A Lance-formatted version of the [COCO 2017 object detection benchmark](https://cocodataset.org/), sourced from [`detection-datasets/coco`](https://huggingface.co/datasets/detection-datasets/coco). Each row is one image with its inline JPEG bytes, the full per-image list of bounding boxes, COCO 80-class category ids and names, per-object areas, an OpenCLIP image embedding, and pre-built indices — all available directly from the Hub at `hf://datasets/lance-format/coco-detection-2017-lance/data`.
 
 
23
 
24
+ ## Key features
25
 
26
+ - **Inline JPEG bytes** in the `image` column — no sidecar files, no image folders.
27
+ - **Per-object annotations as parallel list columns** — `bboxes`, `categories`, `category_names`, and `areas` are aligned position-for-position, so iterating boxes alongside their labels is a single row read.
28
+ - **Pre-aggregated annotation summaries** `num_objects` (int) and `categories_present` (deduped string list) precompute the predicates curation queries hit most.
29
+ - **CLIP image embeddings** (`image_emb`, OpenCLIP ViT-B/32, 512-d, cosine-normalized) with a bundled `IVF_PQ` index for visual retrieval.
30
 
31
  ## Splits
32
 
33
  | Split | Rows |
34
  |-------|------|
35
  | `train.lance` | 117,000+ |
36
+ | `val.lance` | 4,950+ |
37
 
38
+ Total annotated boxes: ~860k train / ~37k val.
39
 
40
  ## Schema
41
 
 
43
  |---|---|---|
44
  | `id` | `int64` | Row index within split |
45
  | `image` | `large_binary` | Inline JPEG bytes |
46
+ | `image_id` | `int64` | COCO image id (natural join key) |
47
  | `width`, `height` | `int32` | Image dimensions in pixels |
48
+ | `bboxes` | `list<list<float32, 4>>` | Each box is `[x_min, y_min, x_max, y_max]` in absolute pixel coordinates |
49
+ | `categories` | `list<int32>` | COCO 80-class id (079), aligned with `bboxes` |
50
+ | `category_names` | `list<string>` | Human-readable class name per object (e.g. `person`, `dog`) |
51
+ | `areas` | `list<float32>` | Bounding-box area in pixels², aligned with `bboxes` |
52
  | `num_objects` | `int32` | Number of annotated objects in the image |
53
+ | `categories_present` | `list<string>` | Deduped class names — feeds the `LABEL_LIST` index |
54
+ | `image_emb` | `fixed_size_list<float32, 512>` | OpenCLIP ViT-B/32 image embedding (cosine-normalized) |
55
 
56
  ## Pre-built indices
57
 
58
+ - `IVF_PQ` on `image_emb` — vector similarity search (cosine)
59
+ - `BTREE` on `image_id` — fast lookup by COCO image id
60
+ - `BTREE` on `num_objects` — range filters on image complexity
61
+ - `LABEL_LIST` on `categories_present` — supports `array_has_any` / `array_has_all` for class-presence filtering
62
+
63
+ ## Why Lance?
64
+
65
+ 1. **Blazing Fast Random Access**: Optimized for fetching scattered rows, making it ideal for random sampling, real-time ML serving, and interactive applications without performance degradation.
66
+ 2. **Native Multimodal Support**: Store text, embeddings, and other data types together in a single file. Large binary objects are loaded lazily, and vectors are optimized for fast similarity search.
67
+ 3. **Native Index Support**: Lance comes with fast, on-disk, scalable vector and FTS indexes that sit right alongside the dataset on the Hub, so you can share not only your data but also your embeddings and indexes without your users needing to recompute them.
68
+ 4. **Efficient Data Evolution**: Add new columns and backfill data without rewriting the entire dataset. This is perfect for evolving ML features, adding new embeddings, or introducing moderation tags over time.
69
+ 5. **Versatile Querying**: Supports combining vector similarity search, full-text search, and SQL-style filtering in a single query, accelerated by on-disk indexes.
70
+ 6. **Data Versioning**: Every mutation commits a new version; previous versions remain intact on disk. Tags pin a snapshot by name, so retrieval systems and training runs can reproduce against an exact slice of history.
71
+
72
+ ## Load with `datasets.load_dataset`
73
 
74
+ You can load Lance datasets via the standard HuggingFace `datasets` interface, suitable when your pipeline already speaks `Dataset` / `IterableDataset` or you want a quick streaming sample without installing anything Lance-specific.
75
 
76
  ```python
77
+ import datasets
78
 
79
+ hf_ds = datasets.load_dataset("lance-format/coco-detection-2017-lance", split="val", streaming=True)
80
+ for row in hf_ds.take(3):
81
+ print(row["image_id"], row["num_objects"], row["categories_present"][:5])
82
  ```
83
 
84
  ## Load with LanceDB
85
 
86
+ LanceDB is the embedded retrieval library built on top of the Lance format ([docs](https://lancedb.com/docs)), and is the interface most users interact with. It wraps the dataset as a queryable table with search and filter builders, and is the entry point used by the Search, Curate, Evolve, Versioning, and Materialize-a-subset sections below.
87
 
88
  ```python
89
  import lancedb
90
 
91
  db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
92
  tbl = db.open_table("val")
93
+ print(len(tbl))
94
  ```
95
 
96
+ ## Load with Lance
 
 
 
97
 
98
+ `pylance` is the Python binding for the Lance format and works directly with the format's lower-level APIs. Reach for it when you want to inspect dataset internals — schema, scanner, fragments, the list of pre-built indices.
99
 
100
  ```python
 
101
  import lance
 
102
 
103
  ds = lance.dataset("hf://datasets/lance-format/coco-detection-2017-lance/data/val.lance")
104
+ print(ds.count_rows(), ds.schema.names)
105
+ print(ds.list_indices())
 
 
 
 
 
 
106
  ```
107
 
108
+ > **Tip for production use, download locally first.** Streaming from the Hub works for exploration, but heavy random access, ANN search, and any mutation are far faster against a local copy:
109
+ > ```bash
110
+ > hf download lance-format/coco-detection-2017-lance --repo-type dataset --local-dir ./coco-detection-2017-lance
111
+ > ```
112
+ > Then point Lance or LanceDB at `./coco-detection-2017-lance/data`.
113
 
114
+ ## Search
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
+ The bundled `IVF_PQ` index on `image_emb` makes approximate-nearest-neighbor visual retrieval a single call. In production you would encode a query image through the same OpenCLIP ViT-B/32 model used at ingest and pass the resulting 512-d vector to `tbl.search(...)`. The example below uses the embedding stored on row 42 as a runnable stand-in, so the snippet works without loading any model.
117
 
118
  ```python
119
  import lancedb
 
121
  db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
122
  tbl = db.open_table("val")
123
 
124
+ seed = (
125
  tbl.search()
126
+ .select(["image_emb", "image_id", "categories_present"])
127
+ .limit(1)
128
+ .offset(42)
129
+ .to_list()[0]
130
+ )
131
+
132
+ hits = (
133
+ tbl.search(seed["image_emb"])
134
+ .metric("cosine")
135
+ .select(["image_id", "categories_present", "num_objects"])
136
  .limit(10)
137
  .to_list()
138
  )
139
+ print("query categories:", seed["categories_present"])
140
+ for r in hits:
141
+ print(f" image_id={r['image_id']:>10} n={r['num_objects']:>3} cats={r['categories_present'][:5]}")
142
+ ```
143
+
144
+ Because the embeddings are cosine-normalized, the first hit will typically be the source image itself — a useful sanity check. Tune `nprobes` and `refine_factor` to trade recall against latency for your workload.
145
+
146
+ ## Curate
147
+
148
+ Curation for a detection workflow usually means picking images that contain a specific class combination, possibly bounded by scene complexity. The `LABEL_LIST` index on `categories_present` makes class-presence predicates trivial, and Lance evaluates them inside the same scan as range filters on `num_objects` or `width`/`height`. The bounded `.limit(500)` keeps the result small and inspectable, and the `image` column is left out of the projection so the candidate scan is dominated by annotation metadata, not JPEG bytes.
149
+
150
+ ```python
151
+ import lancedb
152
+
153
+ db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
154
+ tbl = db.open_table("val")
155
 
156
+ candidates = (
157
  tbl.search()
158
+ .where(
159
+ "array_has_all(categories_present, ['person', 'frisbee']) "
160
+ "AND num_objects BETWEEN 3 AND 12",
161
+ prefilter=True,
162
+ )
163
+ .select(["image_id", "categories_present", "num_objects", "width", "height"])
164
+ .limit(500)
165
  .to_list()
166
  )
167
+ print(f"{len(candidates)} candidates; first image_id: {candidates[0]['image_id']}")
168
  ```
169
 
170
+ The result is a plain list of dictionaries, ready to inspect, persist as a manifest of `image_id`s, or feed into the Evolve and Train workflows below. Swapping `array_has_all` for `array_has_any` widens recall to images containing any of the listed classes; replacing the structural predicate with `num_objects >= 10` selects busy scenes for crowd-detection ablations.
171
+
172
+ ## Evolve
173
+
174
+ Lance stores each column independently, so a new column can be appended without rewriting the existing data. The lightest form is a SQL expression: derive the new column from columns that already exist, and Lance computes it once and persists it. The example below adds a `has_person` flag, an `aspect_ratio`, and a `max_box_area` that surfaces the largest annotated object area per image — all of which can then be used directly in `where` clauses without recomputing the predicate on every query.
175
+
176
+ > **Note:** Mutations require a local copy of the dataset, since the Hub mount is read-only. See the Materialize-a-subset section at the end of this card for a streaming pattern that downloads only the rows and columns you need, or use `hf download` to pull the full split first.
177
+
178
+ ```python
179
+ import lancedb
180
+
181
+ db = lancedb.connect("./coco-detection-2017-lance/data") # local copy required for writes
182
+ tbl = db.open_table("val")
183
+
184
+ tbl.add_columns({
185
+ "has_person": "array_has_any(categories_present, ['person'])",
186
+ "aspect_ratio": "CAST(width AS DOUBLE) / CAST(height AS DOUBLE)",
187
+ "max_box_area": "array_max(areas)",
188
+ "crowded": "num_objects >= 10",
189
+ })
190
+ ```
191
+
192
+ If the values you want to attach already live in another table (offline predictions from a baseline detector, per-image difficulty scores, or a second-pass embedding), merge them in by joining on `image_id`:
193
 
194
  ```python
 
195
  import pyarrow as pa
196
 
197
+ predictions = pa.table({
198
+ "image_id": pa.array([397133, 37777, 252219], type=pa.int64()),
199
+ "baseline_map": pa.array([0.31, 0.48, 0.22]),
200
+ })
201
+ tbl.merge(predictions, on="image_id")
202
+ ```
203
+
204
+ The original columns and indices are untouched, so existing code that does not reference the new columns continues to work unchanged. New columns become visible to every reader as soon as the operation commits. For column values that require a Python computation (e.g., running a second detector over the image bytes), Lance provides a batch-UDF API — see the [Lance data evolution docs](https://lance.org/guide/data_evolution/).
205
+
206
+ ## Train
207
+
208
+ Projection lets a training loop read only the columns each step actually needs. LanceDB tables expose this through `Permutation.identity(tbl).select_columns([...])`, which plugs straight into the standard `torch.utils.data.DataLoader` so prefetching, shuffling, and batching behave as in any PyTorch pipeline. For a detector training run, project the JPEG bytes alongside the parallel annotation columns the loss consumes — boxes, category ids, and (optionally) areas. Columns added in the Evolve section above cost nothing per batch until they are explicitly projected.
209
+
210
+ ```python
211
+ import lancedb
212
+ from lancedb.permutation import Permutation
213
+ from torch.utils.data import DataLoader
214
+
215
+ db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
216
+ tbl = db.open_table("train")
217
+
218
+ train_ds = Permutation.identity(tbl).select_columns(
219
+ ["image", "bboxes", "categories", "areas"]
220
+ )
221
+ loader = DataLoader(train_ds, batch_size=16, shuffle=True, num_workers=4,
222
+ collate_fn=lambda b: b) # detection targets are ragged
223
+
224
+ for batch in loader:
225
+ # batch is a list of dicts: decode each JPEG, stack the bboxes / categories
226
+ # into the target dictionary your detector expects, forward, loss...
227
+ ...
228
  ```
229
 
230
+ Switching feature sets is a configuration change: passing `["image_emb", "categories_present"]` to `select_columns(...)` on the next run skips JPEG decoding entirely and reads only the cached 512-d vectors plus the deduped class list, which is the right shape for training a lightweight multi-label classifier or a class-presence probe on top of frozen features.
231
+
232
+ ## Versioning
233
+
234
+ Every mutation to a Lance dataset, whether it adds a column, merges labels, or builds an index, commits a new version. Previous versions remain intact on disk. You can list versions and inspect the history directly from the Hub copy; creating new tags requires a local copy since tags are writes.
235
 
236
  ```python
237
  import lancedb
 
239
  db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
240
  tbl = db.open_table("val")
241
 
242
+ print("Current version:", tbl.version)
243
+ print("History:", tbl.list_versions())
244
+ print("Tags:", tbl.tags.list())
245
+ ```
246
+
247
+ Once you have a local copy, tag a version for reproducibility:
248
 
249
+ ```python
250
+ local_db = lancedb.connect("./coco-detection-2017-lance/data")
251
+ local_tbl = local_db.open_table("val")
252
+ local_tbl.tags.create("detector-baseline-v1", local_tbl.version)
 
 
 
253
  ```
254
 
255
+ A tagged version can be opened by name, or any version reopened by its number, against either the Hub copy or a local one:
256
+
257
+ ```python
258
+ tbl_v1 = db.open_table("val", version="detector-baseline-v1")
259
+ tbl_v5 = db.open_table("val", version=5)
260
+ ```
261
+
262
+ Pinning supports two workflows. An evaluation harness locked to `detector-baseline-v1` keeps scoring against the exact same boxes and category ids while the dataset evolves in parallel; newly merged predictions or evolved columns do not change what the tag resolves to. A training experiment pinned to the same tag can be rerun later against the exact same images and annotations, so changes in mAP reflect model changes rather than data drift. Neither workflow needs shadow copies or external manifest tracking.
263
+
264
+ ## Materialize a subset
265
+
266
+ Reads from the Hub are lazy, so exploratory queries only transfer the columns and row groups they touch. Mutating operations (Evolve, tag creation) need a writable backing store, and a training loop benefits from a local copy with fast random access. Both can be served by a subset of the dataset rather than the full split. The pattern is to stream a filtered query through `.to_batches()` into a new local table; only the projected columns and matching row groups cross the wire, and the bytes never fully materialize in Python memory.
267
+
268
+ ```python
269
+ import lancedb
270
+
271
+ remote_db = lancedb.connect("hf://datasets/lance-format/coco-detection-2017-lance/data")
272
+ remote_tbl = remote_db.open_table("train")
273
+
274
+ batches = (
275
+ remote_tbl.search()
276
+ .where("array_has_any(categories_present, ['dog', 'cat']) AND num_objects >= 2")
277
+ .select(["image_id", "image", "bboxes", "categories", "category_names",
278
+ "areas", "num_objects", "categories_present", "image_emb"])
279
+ .to_batches()
280
+ )
281
+
282
+ local_db = lancedb.connect("./coco-pets-subset")
283
+ local_db.create_table("train", batches)
284
+ ```
285
 
286
+ The resulting `./coco-pets-subset` is a first-class LanceDB database. Every snippet in the Evolve, Train, and Versioning sections above works against it by swapping `hf://datasets/lance-format/coco-detection-2017-lance/data` for `./coco-pets-subset`.
 
 
287
 
288
  ## Source & license
289