Datasets:
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +21 -4
- data/example.parquet +0 -0
- data/test.parquet +3 -0
.gitattributes
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 1 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -13,6 +13,13 @@ tags:
|
|
| 13 |
- fibroblast
|
| 14 |
size_categories:
|
| 15 |
- n<1K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
# Micro-OD
|
|
@@ -135,10 +142,20 @@ Annotations are stored as [JSON Lines](https://jsonlines.org/) (`.jsonl`) files
|
|
| 135 |
|
| 136 |
## Usage
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
```python
|
| 139 |
from datasets import load_dataset
|
| 140 |
|
| 141 |
-
ds = load_dataset("
|
| 142 |
|
| 143 |
# Access splits
|
| 144 |
example_split = ds["example"] # 40 images — few-shot support set
|
|
@@ -149,12 +166,12 @@ test_split = ds["test"] # 212 images — evaluation query set
|
|
| 149 |
# image_id — "<subdataset>/images/<filename>"
|
| 150 |
# subdataset — one of: BBBC, BCCD, LIVECell, NIH-3T3
|
| 151 |
# objects — dict with keys:
|
| 152 |
-
# bbox : list of [x_min, y_min, width, height] (COCO format,
|
| 153 |
-
# label : list of int (index
|
| 154 |
# category : list of str (class name)
|
| 155 |
```
|
| 156 |
|
| 157 |
-
> **Note on bbox format:** The
|
| 158 |
|
| 159 |
## Dataset Statistics
|
| 160 |
|
|
|
|
| 13 |
- fibroblast
|
| 14 |
size_categories:
|
| 15 |
- n<1K
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files:
|
| 19 |
+
- split: example
|
| 20 |
+
path: data/example.parquet
|
| 21 |
+
- split: test
|
| 22 |
+
path: data/test.parquet
|
| 23 |
---
|
| 24 |
|
| 25 |
# Micro-OD
|
|
|
|
| 142 |
|
| 143 |
## Usage
|
| 144 |
|
| 145 |
+
Before pushing to HuggingFace Hub, generate the Parquet files from the raw annotations:
|
| 146 |
+
|
| 147 |
+
```bash
|
| 148 |
+
pip install datasets pillow pyarrow
|
| 149 |
+
python scripts/generate_parquet.py
|
| 150 |
+
# Outputs: data/example.parquet, data/test.parquet
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
Then load the dataset normally:
|
| 154 |
+
|
| 155 |
```python
|
| 156 |
from datasets import load_dataset
|
| 157 |
|
| 158 |
+
ds = load_dataset("stumbledparams/Micro-OD")
|
| 159 |
|
| 160 |
# Access splits
|
| 161 |
example_split = ds["example"] # 40 images — few-shot support set
|
|
|
|
| 166 |
# image_id — "<subdataset>/images/<filename>"
|
| 167 |
# subdataset — one of: BBBC, BCCD, LIVECell, NIH-3T3
|
| 168 |
# objects — dict with keys:
|
| 169 |
+
# bbox : list of [x_min, y_min, width, height] (COCO format, float32)
|
| 170 |
+
# label : list of int (ClassLabel index, 0–9)
|
| 171 |
# category : list of str (class name)
|
| 172 |
```
|
| 173 |
|
| 174 |
+
> **Note on bbox format:** The Parquet files store bboxes in COCO format `[x_min, y_min, width, height]` as float32. The raw `annotation.jsonl` files use `[[x_min, y_min], [x_max, y_max]]` (top-left / bottom-right pixel coordinates) — see [Annotation Format](#annotation-format).
|
| 175 |
|
| 176 |
## Dataset Statistics
|
| 177 |
|
data/example.parquet
ADDED
|
Binary file (47.8 kB). View file
|
|
|
data/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:383c5c1aed33a947efd4820b7f76a1dbefc2f84c7f6550a1ba08b0edd6834f74
|
| 3 |
+
size 264405
|