stumbledparams commited on
Commit
10943e1
·
verified ·
1 Parent(s): 1bc17f8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +9 -2
README.md CHANGED
@@ -163,10 +163,17 @@ test_split = ds["test"] # 212 images — evaluation query set
163
  # subdataset — one of: BBBC, BCCD, LIVECell, NIH-3T3
164
  # objects — dict with keys:
165
  # bbox : list of [x_min, y_min, width, height] (COCO format, float32)
166
- # category : list of str (class name, one of 10 classes)
 
 
 
 
 
 
 
167
  ```
168
 
169
- > **Note on bbox format:** The Parquet files store bboxes in COCO format `[x_min, y_min, width, height]` as float32, and `category` as a `ClassLabel`. 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).
170
 
171
  ## Dataset Statistics
172
 
 
163
  # subdataset — one of: BBBC, BCCD, LIVECell, NIH-3T3
164
  # objects — dict with keys:
165
  # bbox : list of [x_min, y_min, width, height] (COCO format, float32)
166
+ # category : list of int (ClassLabel index; decode with int2str)
167
+
168
+ # Decode category indices to class name strings
169
+ label_feature = ds["example"].features["objects"].feature["category"]
170
+ label_feature.int2str(3) # → "Red Blood Cells"
171
+
172
+ row = example_split[0]
173
+ names = [label_feature.int2str(i) for i in row["objects"]["category"]]
174
  ```
175
 
176
+ > **Note on bbox format:** The Parquet files store bboxes in COCO format `[x_min, y_min, width, height]` as float32. `category` is stored as a `ClassLabel` integer index — use `int2str()` to get the string name. 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).
177
 
178
  ## Dataset Statistics
179