Add files using upload-large-folder tool
Browse files- .gitattributes +2 -0
- README.md +139 -0
- data/train.lance/_indices/07ff0883-dded-4a27-9bfa-23a87b49761a/page_data.lance +0 -0
- data/train.lance/_indices/07ff0883-dded-4a27-9bfa-23a87b49761a/page_lookup.lance +0 -0
- data/train.lance/_indices/b338181e-74f1-4acc-b6ed-da35ab8e66f1/auxiliary.idx +3 -0
- data/train.lance/_indices/b338181e-74f1-4acc-b6ed-da35ab8e66f1/index.idx +0 -0
- data/train.lance/_indices/e98065a1-0d97-4a6b-bcbc-a1ebd7c6c41a/bitmap_page_lookup.lance +0 -0
- data/train.lance/_transactions/0-3c4d746d-b8b5-4b36-9c22-52c11f7a1279.txn +0 -0
- data/train.lance/_transactions/1-1d67e3cc-59b0-46b1-aeeb-a63e3b35cc80.txn +0 -0
- data/train.lance/_transactions/2-cbbf53e1-c2f3-493a-889f-38d2a6eaba0f.txn +0 -0
- data/train.lance/_transactions/3-9feb1020-3059-4977-9711-661bb8629dd2.txn +0 -0
- data/train.lance/_versions/18446744073709551611.manifest +0 -0
- data/train.lance/_versions/18446744073709551612.manifest +0 -0
- data/train.lance/_versions/18446744073709551613.manifest +0 -0
- data/train.lance/_versions/18446744073709551614.manifest +0 -0
- data/train.lance/data/0100010111011110100001012823644c3f80323e5f1ac37fab.lance +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/train.lance/_indices/b338181e-74f1-4acc-b6ed-da35ab8e66f1/auxiliary.idx filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
data/train.lance/data/0100010111011110100001012823644c3f80323e5f1ac37fab.lance filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-3.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- object-detection
|
| 5 |
+
- image-feature-extraction
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- kitti
|
| 10 |
+
- autonomous-driving
|
| 11 |
+
- 2d-detection
|
| 12 |
+
- 3d-detection
|
| 13 |
+
- lance
|
| 14 |
+
- clip-embeddings
|
| 15 |
+
pretty_name: kitti-2d-detection-lance
|
| 16 |
+
size_categories:
|
| 17 |
+
- 1K<n<10K
|
| 18 |
+
---
|
| 19 |
+
# KITTI 2D Object Detection (Lance Format)
|
| 20 |
+
|
| 21 |
+
Lance-formatted version of the [KITTI 2D Object Detection benchmark](https://www.cvlibs.net/datasets/kitti/eval_object.php?obj_benchmark=2d) — 7,481 training images from the KITTI Vision Benchmark Suite with 2D bounding boxes plus the full 3D-box / observation-angle metadata. Sourced from [`nateraw/kitti`](https://huggingface.co/datasets/nateraw/kitti) so no manual signup or download from cvlibs.net is required.
|
| 22 |
+
|
| 23 |
+
KITTI is the canonical autonomous-driving 2D / 3D detection benchmark — useful for AV perception research, robust real-world benchmarking, and as a small-scale companion to nuScenes / Waymo.
|
| 24 |
+
|
| 25 |
+
## Splits
|
| 26 |
+
|
| 27 |
+
| Split | Rows |
|
| 28 |
+
|-------|------|
|
| 29 |
+
| `train.lance` | 7,481 |
|
| 30 |
+
|
| 31 |
+
(The `test` split has no labels published, so we omit it. Add it back via `--splits train test` if you want the unlabeled images as well.)
|
| 32 |
+
|
| 33 |
+
## Schema
|
| 34 |
+
|
| 35 |
+
| Column | Type | Notes |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| `id` | `int64` | Row index within split |
|
| 38 |
+
| `image` | `large_binary` | Inline JPEG bytes (re-encoded from the source PNG) |
|
| 39 |
+
| `bboxes` | `list<list<float32, 4>>` | 2D box per object — `[left, top, right, bottom]` in pixel coords |
|
| 40 |
+
| `alphas` | `list<float32>` | Observation angle (radians, KITTI convention) |
|
| 41 |
+
| `dimensions` | `list<list<float32, 3>>` | 3D box `(h, w, l)` in metres |
|
| 42 |
+
| `locations` | `list<list<float32, 3>>` | 3D centre `(x, y, z)` in camera coords (metres) |
|
| 43 |
+
| `rotation_y` | `list<float32>` | Yaw angle in camera coords (radians) |
|
| 44 |
+
| `occluded` | `list<int8>` | KITTI occlusion flag (0=visible, 1=partly, 2=largely, 3=unknown) |
|
| 45 |
+
| `truncated` | `list<float32>` | Truncation fraction (0.0-1.0) |
|
| 46 |
+
| `types` | `list<string>` | Class name per object (e.g. `Car`, `Pedestrian`, `Cyclist`, `DontCare`) |
|
| 47 |
+
| `num_objects` | `int32` | Number of annotated objects |
|
| 48 |
+
| `types_present` | `list<string>` | Deduped class names — feeds the LABEL_LIST index |
|
| 49 |
+
| `image_emb` | `fixed_size_list<float32, 512>` | OpenCLIP `ViT-B-32` image embedding (cosine-normalized) |
|
| 50 |
+
|
| 51 |
+
## Pre-built indices
|
| 52 |
+
|
| 53 |
+
- `IVF_PQ` on `image_emb` — `metric=cosine`
|
| 54 |
+
- `BTREE` on `num_objects`
|
| 55 |
+
- `LABEL_LIST` on `types_present`
|
| 56 |
+
|
| 57 |
+
## Quick start
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
import lance
|
| 61 |
+
|
| 62 |
+
ds = lance.dataset("hf://datasets/lance-format/kitti-2d-detection-lance/data/train.lance")
|
| 63 |
+
print(ds.count_rows(), ds.schema.names, ds.list_indices())
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
## Read a frame with annotations
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
import io
|
| 70 |
+
import lance
|
| 71 |
+
from PIL import Image, ImageDraw
|
| 72 |
+
|
| 73 |
+
ds = lance.dataset("hf://datasets/lance-format/kitti-2d-detection-lance/data/train.lance")
|
| 74 |
+
row = ds.take([0], columns=["image", "bboxes", "types"]).to_pylist()[0]
|
| 75 |
+
|
| 76 |
+
img = Image.open(io.BytesIO(row["image"])).convert("RGB")
|
| 77 |
+
draw = ImageDraw.Draw(img)
|
| 78 |
+
for (l, t, r, b), cls in zip(row["bboxes"], row["types"]):
|
| 79 |
+
if cls == "DontCare":
|
| 80 |
+
continue
|
| 81 |
+
draw.rectangle([l, t, r, b], outline="lime", width=2)
|
| 82 |
+
draw.text((l + 4, t + 2), cls, fill="lime")
|
| 83 |
+
img.save("kitti.jpg")
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
## Filter by classes
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
import lance
|
| 90 |
+
ds = lance.dataset("hf://datasets/lance-format/kitti-2d-detection-lance/data/train.lance")
|
| 91 |
+
|
| 92 |
+
# Frames containing both a Car and a Cyclist (LABEL_LIST index makes this fast).
|
| 93 |
+
both = ds.scanner(
|
| 94 |
+
filter="array_has_all(types_present, ['Car', 'Cyclist'])",
|
| 95 |
+
columns=["id", "types_present"],
|
| 96 |
+
limit=10,
|
| 97 |
+
).to_table()
|
| 98 |
+
|
| 99 |
+
# Frames with at least 10 objects (for crowded-scene experiments).
|
| 100 |
+
crowded = ds.scanner(filter="num_objects >= 10", columns=["id"], limit=10).to_table()
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## Visual similarity search
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
import lance
|
| 107 |
+
import pyarrow as pa
|
| 108 |
+
|
| 109 |
+
ds = lance.dataset("hf://datasets/lance-format/kitti-2d-detection-lance/data/train.lance")
|
| 110 |
+
emb_field = ds.schema.field("image_emb")
|
| 111 |
+
ref = ds.take([0], columns=["image_emb"]).to_pylist()[0]["image_emb"]
|
| 112 |
+
query = pa.array([ref], type=emb_field.type)
|
| 113 |
+
|
| 114 |
+
neighbors = ds.scanner(
|
| 115 |
+
nearest={"column": "image_emb", "q": query[0], "k": 5, "nprobes": 16, "refine_factor": 30},
|
| 116 |
+
columns=["id", "types_present"],
|
| 117 |
+
).to_table().to_pylist()
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
## Why Lance?
|
| 121 |
+
|
| 122 |
+
- One dataset for images + 2D + 3D annotations + embeddings + indices — no parallel `image_2/` and `label_2/` folders.
|
| 123 |
+
- On-disk vector and label-list indices live next to the data, so search and class-based filtering work on local copies and on the Hub.
|
| 124 |
+
- Schema evolution: add columns (LIDAR features, alternative embeddings, model predictions) without rewriting the data.
|
| 125 |
+
|
| 126 |
+
## Source & license
|
| 127 |
+
|
| 128 |
+
Converted from [`nateraw/kitti`](https://huggingface.co/datasets/nateraw/kitti). KITTI is released under the [CC BY-NC-SA 3.0 license](https://creativecommons.org/licenses/by-nc-sa/3.0/) by Karlsruhe Institute of Technology and Toyota Technological Institute at Chicago — **non-commercial research use only**. See the [KITTI license page](https://www.cvlibs.net/datasets/kitti/) for details.
|
| 129 |
+
|
| 130 |
+
## Citation
|
| 131 |
+
|
| 132 |
+
```
|
| 133 |
+
@inproceedings{geiger2012are,
|
| 134 |
+
title={Are we ready for autonomous driving? The KITTI vision benchmark suite},
|
| 135 |
+
author={Geiger, Andreas and Lenz, Philip and Urtasun, Raquel},
|
| 136 |
+
booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
|
| 137 |
+
year={2012}
|
| 138 |
+
}
|
| 139 |
+
```
|
data/train.lance/_indices/07ff0883-dded-4a27-9bfa-23a87b49761a/page_data.lance
ADDED
|
Binary file (14.2 kB). View file
|
|
|
data/train.lance/_indices/07ff0883-dded-4a27-9bfa-23a87b49761a/page_lookup.lance
ADDED
|
Binary file (1.26 kB). View file
|
|
|
data/train.lance/_indices/b338181e-74f1-4acc-b6ed-da35ab8e66f1/auxiliary.idx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d47a5b65cbd30da22323322d77667481f8607e7b00636328fd9f14d3c5de8bfc
|
| 3 |
+
size 1018628
|
data/train.lance/_indices/b338181e-74f1-4acc-b6ed-da35ab8e66f1/index.idx
ADDED
|
Binary file (33.1 kB). View file
|
|
|
data/train.lance/_indices/e98065a1-0d97-4a6b-bcbc-a1ebd7c6c41a/bitmap_page_lookup.lance
ADDED
|
Binary file (32.2 kB). View file
|
|
|
data/train.lance/_transactions/0-3c4d746d-b8b5-4b36-9c22-52c11f7a1279.txn
ADDED
|
Binary file (866 Bytes). View file
|
|
|
data/train.lance/_transactions/1-1d67e3cc-59b0-46b1-aeeb-a63e3b35cc80.txn
ADDED
|
Binary file (189 Bytes). View file
|
|
|
data/train.lance/_transactions/2-cbbf53e1-c2f3-493a-889f-38d2a6eaba0f.txn
ADDED
|
Binary file (198 Bytes). View file
|
|
|
data/train.lance/_transactions/3-9feb1020-3059-4977-9711-661bb8629dd2.txn
ADDED
|
Binary file (190 Bytes). View file
|
|
|
data/train.lance/_versions/18446744073709551611.manifest
ADDED
|
Binary file (1.59 kB). View file
|
|
|
data/train.lance/_versions/18446744073709551612.manifest
ADDED
|
Binary file (1.46 kB). View file
|
|
|
data/train.lance/_versions/18446744073709551613.manifest
ADDED
|
Binary file (1.29 kB). View file
|
|
|
data/train.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (1.82 kB). View file
|
|
|
data/train.lance/data/0100010111011110100001012823644c3f80323e5f1ac37fab.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2e3b940ed022e9fd0000ad5dfe2a64d3094dea4ad61b1863d10c2b04678f28a
|
| 3 |
+
size 1183620091
|