Datasets:
docs: polish Pose convention section wording
#3
by ukavala - opened
README.md
CHANGED
|
@@ -1,215 +1,215 @@
|
|
| 1 |
-
---
|
| 2 |
-
pretty_name: ZereData Bin Picking Dataset v1.1
|
| 3 |
-
license: cc-by-4.0
|
| 4 |
-
task_categories:
|
| 5 |
-
- object-detection
|
| 6 |
-
- image-segmentation
|
| 7 |
-
size_categories:
|
| 8 |
-
- 10K<n<100K
|
| 9 |
-
tags:
|
| 10 |
-
- synthetic-data
|
| 11 |
-
- bin-picking
|
| 12 |
-
- robotics
|
| 13 |
-
- 6d-pose
|
| 14 |
-
- pose-estimation
|
| 15 |
-
- depth-estimation
|
| 16 |
-
- instance-segmentation
|
| 17 |
-
- warehouse
|
| 18 |
-
- coco
|
| 19 |
-
- yolo
|
| 20 |
-
- bop
|
| 21 |
-
- pbr
|
| 22 |
-
- computer-vision
|
| 23 |
-
language:
|
| 24 |
-
- en
|
| 25 |
-
---
|
| 26 |
-
|
| 27 |
-
# ZereData Bin Picking Dataset v1.1
|
| 28 |
-
|
| 29 |
-
  
|
| 30 |
-
|
| 31 |
-
Synthetic training data for robotic bin picking — RGB, depth, instance masks, 6D pose, 2D bounding boxes, and per-instance visibility, in BOP/COCO/YOLO formats.
|
| 32 |
-
|
| 33 |
-
   
|
| 34 |
-
|
| 35 |
-
## Overview
|
| 36 |
-
|
| 37 |
-
Generated via physically-based ray tracing in Blender Cycles, this dataset delivers dense, photorealistic scenes of cluttered bins at warehouse scale. Each scene includes RGB, 32-bit depth, instance segmentation, camera intrinsics/extrinsics, and per-instance 6D pose with visibility ratios.
|
| 38 |
-
|
| 39 |
-
The dataset's value is simple: synthetic renders give perfect ground truth annotations impossible to obtain from real cameras, at a scale and cost real-world collection cannot match. Use it to train 6D pose estimators, bin-picking grasp predictors, and warehouse perception systems — then validate sim-to-real transfer on smaller real-world test sets.
|
| 40 |
-
|
| 41 |
-
## Dataset Statistics
|
| 42 |
-
|
| 43 |
-
| Metric | Value |
|
| 44 |
-
|--------|-------|
|
| 45 |
-
| Total scenes | 10,000 |
|
| 46 |
-
| Train split | 8,000 |
|
| 47 |
-
| Val split | 2,000 |
|
| 48 |
-
| Resolution | 1280x720 |
|
| 49 |
-
| Object instances | 296,603 |
|
| 50 |
-
| Object categories | 4 |
|
| 51 |
-
| Modalities | 6 (RGB, depth, mask, pose, bboxes, visibility) |
|
| 52 |
-
| Total size on disk | 14.8 GB |
|
| 53 |
-
|
| 54 |
-
## Modalities
|
| 55 |
-
|
| 56 |
-
- **RGB** — 1280×720 PNG per scene. The primary input for detection, segmentation, and pose models.
|
| 57 |
-
- **Depth** — 32-bit EXR in metres. Train depth-conditioned pose models or use as a second-channel input.
|
| 58 |
-
- **Instance mask** — colour-coded PNG per scene, one colour per object instance. Drives instance segmentation and occlusion reasoning.
|
| 59 |
-
- **6D pose** — per-instance rotation and translation in camera frame (BOP `cam_R_m2c`, `cam_t_m2c`). Supervises pose regression heads.
|
| 60 |
-
- **2D bounding boxes** — derived from masks, included in COCO and YOLO formats.
|
| 61 |
-
- **Visibility ratio** — BOP `visib_fract` per instance; lets you weight the training loss by occlusion severity.
|
| 62 |
-
|
| 63 |
-
## Formats
|
| 64 |
-
|
| 65 |
-
### BOP (primary)
|
| 66 |
-
Canonical BOP directory layout under `data/train/` and `data/val/`. Each scene folder contains `scene_camera.json` (`cam_K`, `depth_scale`), `scene_gt.json` (per-object `cam_R_m2c`, `cam_t_m2c`, `obj_id`), and `scene_gt_info.json` (`bbox_obj`, `bbox_visib`, `visib_fract`). Load with the BOP toolkit. Object IDs are **ZereData-specific, not BOP canonical** — see Limitations.
|
| 67 |
-
|
| 68 |
-
### COCO
|
| 69 |
-
Merged `annotations/coco_train.json` and `annotations/coco_val.json` with `images`, `annotations` (bboxes + masks), and `categories`. Loads cleanly with pycocotools:
|
| 70 |
-
|
| 71 |
-
```python
|
| 72 |
-
from pycocotools.coco import COCO
|
| 73 |
-
coco = COCO('annotations/coco_train.json')
|
| 74 |
-
```
|
| 75 |
-
|
| 76 |
-
### YOLO
|
| 77 |
-
Per-image `.txt` label files under `annotations/yolo_train/` and `yolo_val/`, with normalized `class_id cx cy w h` entries. Class IDs are consistent across both splits; see `annotations/yolo_classes.txt` and `annotations/yolo_data.yaml`.
|
| 78 |
-
|
| 79 |
-
## Data Format
|
| 80 |
-
|
| 81 |
-
This dataset is packaged as per-format zip archives, mirroring the [bop-benchmark](https://huggingface.co/bop-benchmark) HF layout convention (one zip per logical split) adapted for multi-format shipping. Loose files — README, LICENSE, CITATION, metadata.json, preview images — remain at the repository root so the HF dataset page renders a preview.
|
| 82 |
-
|
| 83 |
-
| Archive | Contents | On-extract layout |
|
| 84 |
-
|---|---|---|
|
| 85 |
-
| `bin_picking_train_bop.zip` | BOP-format train split (rgb/depth/mask + `scene_camera.json` / `scene_gt.json` / `scene_gt_info.json` per scene) | `data/train/{000000..007999}/...` |
|
| 86 |
-
| `bin_picking_val_bop.zip` | BOP-format val split | `data/val/{000000..001999}/...` |
|
| 87 |
-
| `bin_picking_coco.zip` | `coco_train.json`, `coco_val.json` (merged, BOP obj IDs remapped to COCO categories) | `annotations/coco_*.json` |
|
| 88 |
-
| `bin_picking_yolo.zip` | YOLO labels per split + `yolo_classes.txt` + `yolo_data.yaml` | `annotations/yolo_{train,val}/*.txt`, `annotations/yolo_*.{txt,yaml}` |
|
| 89 |
-
| `bin_picking_native.zip` | Per-scene native annotations (full pre-export ZereData scene graph) | `annotations/scene_NNNN.json` |
|
| 90 |
-
| `bin_picking_models.zip` | 27 GLB object models | `models/*.glb` |
|
| 91 |
-
|
| 92 |
-
### Download and extract only what you need
|
| 93 |
-
|
| 94 |
-
```python
|
| 95 |
-
from huggingface_hub import hf_hub_download
|
| 96 |
-
import zipfile
|
| 97 |
-
|
| 98 |
-
REPO = 'zeredata/bin-picking-v1'
|
| 99 |
-
# BOP train split
|
| 100 |
-
p = hf_hub_download(repo_id=REPO, filename='bin_picking_train_bop.zip', repo_type='dataset')
|
| 101 |
-
with zipfile.ZipFile(p) as z:
|
| 102 |
-
z.extractall('./zd_bp') # rehydrates ./zd_bp/data/train/...
|
| 103 |
-
```
|
| 104 |
-
|
| 105 |
-
Or the whole dataset in one shot:
|
| 106 |
-
|
| 107 |
-
```bash
|
| 108 |
-
huggingface-cli download --repo-type dataset zeredata/bin-picking-v1 --local-dir ./zd_bp
|
| 109 |
-
cd ./zd_bp && for z in bin_picking_*.zip; do unzip -q "$z"; done
|
| 110 |
-
```
|
| 111 |
-
|
| 112 |
-
All zip extractions share the same root-relative layout, so unzipping all six archives into one directory rehydrates the canonical flat tree.
|
| 113 |
-
|
| 114 |
-
## Loading the Dataset
|
| 115 |
-
|
| 116 |
-
These snippets assume you have already extracted the relevant zip(s) into a working directory (see **Data Format** above). Paths are relative to that root.
|
| 117 |
-
|
| 118 |
-
### PyTorch Dataset over BOP structure
|
| 119 |
-
```python
|
| 120 |
-
from pathlib import Path
|
| 121 |
-
from torch.utils.data import Dataset
|
| 122 |
-
from PIL import Image
|
| 123 |
-
import json
|
| 124 |
-
|
| 125 |
-
class BopBinPicking(Dataset):
|
| 126 |
-
def __init__(self, root, split='train'):
|
| 127 |
-
# root must contain data/<split>/... (extract bin_picking_<split>_bop.zip there first)
|
| 128 |
-
self.scene_dirs = sorted((Path(root) / 'data' / split).iterdir())
|
| 129 |
-
def __len__(self):
|
| 130 |
-
return len(self.scene_dirs)
|
| 131 |
-
def __getitem__(self, idx):
|
| 132 |
-
sd = self.scene_dirs[idx]
|
| 133 |
-
rgb = Image.open(sd / 'rgb' / '000000.png')
|
| 134 |
-
gt = json.loads((sd / 'scene_gt.json').read_text())
|
| 135 |
-
cam = json.loads((sd / 'scene_camera.json').read_text())
|
| 136 |
-
return rgb, gt, cam
|
| 137 |
-
```
|
| 138 |
-
|
| 139 |
-
### COCO via pycocotools
|
| 140 |
-
```python
|
| 141 |
-
# After extracting bin_picking_coco.zip:
|
| 142 |
-
from pycocotools.coco import COCO
|
| 143 |
-
coco = COCO('annotations/coco_train.json')
|
| 144 |
-
img_ids = coco.getImgIds()
|
| 145 |
-
for ann in coco.loadAnns(coco.getAnnIds(imgIds=img_ids[0])):
|
| 146 |
-
print(ann['bbox'], ann['category_id'])
|
| 147 |
-
```
|
| 148 |
-
|
| 149 |
-
_A `datasets.load_dataset()` loader is planned for v1.1._
|
| 150 |
-
|
| 151 |
-
## Intended Use
|
| 152 |
-
|
| 153 |
-
Training 6D pose estimation models, bin-picking grasp models, and warehouse robotics perception systems. Synthetic data for sim-to-real transfer research.
|
| 154 |
-
|
| 155 |
-
## Pose convention
|
| 156 |
-
|
| 157 |
-
This release (v1.0 and v1.1) ships 6D poses in **OpenGL/Blender camera convention** (camera looks down `-Z`, in-front objects have `cam_t_m2c.z < 0`) rather than the BOP-standard **OpenCV convention** (camera looks down `+Z`, in-front objects have `cam_t_m2c.z > 0`). The two differ by the basis change `diag(1, -1, -1)` applied to the camera frame.
|
| 158 |
-
|
| 159 |
-
**Anyone scoring against bop_toolkit_lib, MegaPose, FoundationPose, CosyPose, or any OpenCV-convention model must apply `diag(1, -1, -1)` to the GT `cam_R_m2c` and `cam_t_m2c` from `scene_gt.json` before evaluation**, otherwise pose errors blow up to the order of the object diameter (~150 mm) and any AR comparison is meaningless.
|
| 160 |
-
|
| 161 |
-
ZereData's evaluation harness exposes this via the `--legacy-gl-convention` flag on `eval.scorer.BopScorer`, `eval.adapter.gt_as_predictions`, and the eval CLIs (`gt_sanity`, `run_megapose_eval`, `rescore`, `_perturb_probe`, `rescore_h1`). Pass it when scoring v1.0 or v1.1; omit it for v1.2 onward, which ships in OpenCV convention at the producer (see
|
| 162 |
-
|
| 163 |
-
This deviation was identified post-publication. v1.0 and v1.1 remain available unchanged on HuggingFace for reproducibility; **v1.2 supersedes them for new integrations** and ships BOP-spec compliant out of the box. The legacy flag is supported indefinitely so downstream code that already ingests v1.0/v1.1 keeps working.
|
| 164 |
-
|
| 165 |
-
RGB, depth, masks, COCO 2D boxes, and YOLO labels are **unaffected** — only the 6D pose serialisation deviates from the BOP spec.
|
| 166 |
-
|
| 167 |
-
## Limitations and Known Issues
|
| 168 |
-
|
| 169 |
-
- **BOP pose convention deviation.** Object pose extrinsics in `scene_gt.json` ship in OpenGL convention, not BOP-spec OpenCV. See the **Pose convention** section above for the basis change and the `--legacy-gl-convention` flag. v1.2 supersedes this with a producer-side fix.
|
| 170 |
-
- **Warehouse-specific lighting.** The three lighting profiles model warehouse conditions and may not transfer directly to outdoor, medical, or agricultural domains:
|
| 171 |
-
- `bin_picking_overhead` — bright fluorescent overhead panels, typical of distribution-center shelving aisles.
|
| 172 |
-
- `bin_picking_mixed` — mixed overhead + rim lighting with warmer colour temperature, mimicking older facilities with partial skylights.
|
| 173 |
-
- `studio` — three-point studio lighting setup shared across ZereData scenarios; in bin-picking scenes, produces low-light conditions with deep shadows.
|
| 174 |
-
Each scene's `variety.lighting_profile` annotation tag records which profile was used.
|
| 175 |
-
- **Procedural materials.** Material variation uses procedural textures, not photoscanned assets. High-frequency surface detail may look synthetic under close inspection.
|
| 176 |
-
- **Geometric occlusion only.** No category-level occlusion modelling — occlusion is derived from geometry alone.
|
| 177 |
-
- **Simulated camera intrinsics.** The intrinsic matrix is synthetic, not drawn from real sensor calibration.
|
| 178 |
-
|
| 179 |
-
## Evaluation
|
| 180 |
-
|
| 181 |
-
Benchmark evaluation on LM-O is forthcoming; see [ZereData](https://zeredata.com) for updates.
|
| 182 |
-
|
| 183 |
-
## Comparison to Related Datasets
|
| 184 |
-
|
| 185 |
-
HOPE, T-LESS, and YCB-Video are excellent real-world datasets with limited scale and fixed object sets. This dataset is synthetic-only, scales without bound, and supports customer-specific object libraries. Treat the two as complementary: real data for evaluation, synthetic data for training.
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
## Custom Datasets
|
| 189 |
-
|
| 190 |
-
This release is a research dataset. The categories (bottle, box, can, pouch), SKU shapes, and bin geometry are intentionally generic — useful for benchmarking, pretraining, and sanity-checking a 6D pose pipeline before you invest in real-world data collection.
|
| 191 |
-
|
| 192 |
-
For production use, ZereData generates the same kind of dataset matched to your warehouse's actual SKUs and bin geometry. Customer-specific datasets ingest CAD files or reference photos, render at the same scale and quality as this release, and ship in days. Pricing is per-dataset, with design-partner terms for early customers.
|
| 193 |
-
|
| 194 |
-
If you're training bin-picking models for a specific picking environment, email **engineering@zeredata.com** — design partners welcome.
|
| 195 |
-
|
| 196 |
-
## Citation
|
| 197 |
-
|
| 198 |
-
```bibtex
|
| 199 |
-
@dataset{zeredata_binpicking_2026,
|
| 200 |
-
author = {Umit Kavala},
|
| 201 |
-
title = {ZereData Bin Picking Dataset v1.1},
|
| 202 |
-
year = {2026},
|
| 203 |
-
publisher = {HuggingFace},
|
| 204 |
-
url = {https://huggingface.co/datasets/zeredata/bin-picking}
|
| 205 |
-
}
|
| 206 |
-
```
|
| 207 |
-
|
| 208 |
-
## License
|
| 209 |
-
|
| 210 |
-
Released under [CC BY 4.0](LICENSE). Attribution required. Commercial use permitted.
|
| 211 |
-
|
| 212 |
-
## Contact and Links
|
| 213 |
-
|
| 214 |
-
- Website: [https://zeredata.com](https://zeredata.com)
|
| 215 |
-
- Contact: [engineering@zeredata.com](mailto:engineering@zeredata.com)
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: ZereData Bin Picking Dataset v1.1
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- object-detection
|
| 6 |
+
- image-segmentation
|
| 7 |
+
size_categories:
|
| 8 |
+
- 10K<n<100K
|
| 9 |
+
tags:
|
| 10 |
+
- synthetic-data
|
| 11 |
+
- bin-picking
|
| 12 |
+
- robotics
|
| 13 |
+
- 6d-pose
|
| 14 |
+
- pose-estimation
|
| 15 |
+
- depth-estimation
|
| 16 |
+
- instance-segmentation
|
| 17 |
+
- warehouse
|
| 18 |
+
- coco
|
| 19 |
+
- yolo
|
| 20 |
+
- bop
|
| 21 |
+
- pbr
|
| 22 |
+
- computer-vision
|
| 23 |
+
language:
|
| 24 |
+
- en
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
# ZereData Bin Picking Dataset v1.1
|
| 28 |
+
|
| 29 |
+
  
|
| 30 |
+
|
| 31 |
+
Synthetic training data for robotic bin picking — RGB, depth, instance masks, 6D pose, 2D bounding boxes, and per-instance visibility, in BOP/COCO/YOLO formats.
|
| 32 |
+
|
| 33 |
+
   
|
| 34 |
+
|
| 35 |
+
## Overview
|
| 36 |
+
|
| 37 |
+
Generated via physically-based ray tracing in Blender Cycles, this dataset delivers dense, photorealistic scenes of cluttered bins at warehouse scale. Each scene includes RGB, 32-bit depth, instance segmentation, camera intrinsics/extrinsics, and per-instance 6D pose with visibility ratios.
|
| 38 |
+
|
| 39 |
+
The dataset's value is simple: synthetic renders give perfect ground truth annotations impossible to obtain from real cameras, at a scale and cost real-world collection cannot match. Use it to train 6D pose estimators, bin-picking grasp predictors, and warehouse perception systems — then validate sim-to-real transfer on smaller real-world test sets.
|
| 40 |
+
|
| 41 |
+
## Dataset Statistics
|
| 42 |
+
|
| 43 |
+
| Metric | Value |
|
| 44 |
+
|--------|-------|
|
| 45 |
+
| Total scenes | 10,000 |
|
| 46 |
+
| Train split | 8,000 |
|
| 47 |
+
| Val split | 2,000 |
|
| 48 |
+
| Resolution | 1280x720 |
|
| 49 |
+
| Object instances | 296,603 |
|
| 50 |
+
| Object categories | 4 |
|
| 51 |
+
| Modalities | 6 (RGB, depth, mask, pose, bboxes, visibility) |
|
| 52 |
+
| Total size on disk | 14.8 GB |
|
| 53 |
+
|
| 54 |
+
## Modalities
|
| 55 |
+
|
| 56 |
+
- **RGB** — 1280×720 PNG per scene. The primary input for detection, segmentation, and pose models.
|
| 57 |
+
- **Depth** — 32-bit EXR in metres. Train depth-conditioned pose models or use as a second-channel input.
|
| 58 |
+
- **Instance mask** — colour-coded PNG per scene, one colour per object instance. Drives instance segmentation and occlusion reasoning.
|
| 59 |
+
- **6D pose** — per-instance rotation and translation in camera frame (BOP `cam_R_m2c`, `cam_t_m2c`). Supervises pose regression heads.
|
| 60 |
+
- **2D bounding boxes** — derived from masks, included in COCO and YOLO formats.
|
| 61 |
+
- **Visibility ratio** — BOP `visib_fract` per instance; lets you weight the training loss by occlusion severity.
|
| 62 |
+
|
| 63 |
+
## Formats
|
| 64 |
+
|
| 65 |
+
### BOP (primary)
|
| 66 |
+
Canonical BOP directory layout under `data/train/` and `data/val/`. Each scene folder contains `scene_camera.json` (`cam_K`, `depth_scale`), `scene_gt.json` (per-object `cam_R_m2c`, `cam_t_m2c`, `obj_id`), and `scene_gt_info.json` (`bbox_obj`, `bbox_visib`, `visib_fract`). Load with the BOP toolkit. Object IDs are **ZereData-specific, not BOP canonical** — see Limitations.
|
| 67 |
+
|
| 68 |
+
### COCO
|
| 69 |
+
Merged `annotations/coco_train.json` and `annotations/coco_val.json` with `images`, `annotations` (bboxes + masks), and `categories`. Loads cleanly with pycocotools:
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from pycocotools.coco import COCO
|
| 73 |
+
coco = COCO('annotations/coco_train.json')
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
### YOLO
|
| 77 |
+
Per-image `.txt` label files under `annotations/yolo_train/` and `yolo_val/`, with normalized `class_id cx cy w h` entries. Class IDs are consistent across both splits; see `annotations/yolo_classes.txt` and `annotations/yolo_data.yaml`.
|
| 78 |
+
|
| 79 |
+
## Data Format
|
| 80 |
+
|
| 81 |
+
This dataset is packaged as per-format zip archives, mirroring the [bop-benchmark](https://huggingface.co/bop-benchmark) HF layout convention (one zip per logical split) adapted for multi-format shipping. Loose files — README, LICENSE, CITATION, metadata.json, preview images — remain at the repository root so the HF dataset page renders a preview.
|
| 82 |
+
|
| 83 |
+
| Archive | Contents | On-extract layout |
|
| 84 |
+
|---|---|---|
|
| 85 |
+
| `bin_picking_train_bop.zip` | BOP-format train split (rgb/depth/mask + `scene_camera.json` / `scene_gt.json` / `scene_gt_info.json` per scene) | `data/train/{000000..007999}/...` |
|
| 86 |
+
| `bin_picking_val_bop.zip` | BOP-format val split | `data/val/{000000..001999}/...` |
|
| 87 |
+
| `bin_picking_coco.zip` | `coco_train.json`, `coco_val.json` (merged, BOP obj IDs remapped to COCO categories) | `annotations/coco_*.json` |
|
| 88 |
+
| `bin_picking_yolo.zip` | YOLO labels per split + `yolo_classes.txt` + `yolo_data.yaml` | `annotations/yolo_{train,val}/*.txt`, `annotations/yolo_*.{txt,yaml}` |
|
| 89 |
+
| `bin_picking_native.zip` | Per-scene native annotations (full pre-export ZereData scene graph) | `annotations/scene_NNNN.json` |
|
| 90 |
+
| `bin_picking_models.zip` | 27 GLB object models | `models/*.glb` |
|
| 91 |
+
|
| 92 |
+
### Download and extract only what you need
|
| 93 |
+
|
| 94 |
+
```python
|
| 95 |
+
from huggingface_hub import hf_hub_download
|
| 96 |
+
import zipfile
|
| 97 |
+
|
| 98 |
+
REPO = 'zeredata/bin-picking-v1'
|
| 99 |
+
# BOP train split
|
| 100 |
+
p = hf_hub_download(repo_id=REPO, filename='bin_picking_train_bop.zip', repo_type='dataset')
|
| 101 |
+
with zipfile.ZipFile(p) as z:
|
| 102 |
+
z.extractall('./zd_bp') # rehydrates ./zd_bp/data/train/...
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
Or the whole dataset in one shot:
|
| 106 |
+
|
| 107 |
+
```bash
|
| 108 |
+
huggingface-cli download --repo-type dataset zeredata/bin-picking-v1 --local-dir ./zd_bp
|
| 109 |
+
cd ./zd_bp && for z in bin_picking_*.zip; do unzip -q "$z"; done
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
All zip extractions share the same root-relative layout, so unzipping all six archives into one directory rehydrates the canonical flat tree.
|
| 113 |
+
|
| 114 |
+
## Loading the Dataset
|
| 115 |
+
|
| 116 |
+
These snippets assume you have already extracted the relevant zip(s) into a working directory (see **Data Format** above). Paths are relative to that root.
|
| 117 |
+
|
| 118 |
+
### PyTorch Dataset over BOP structure
|
| 119 |
+
```python
|
| 120 |
+
from pathlib import Path
|
| 121 |
+
from torch.utils.data import Dataset
|
| 122 |
+
from PIL import Image
|
| 123 |
+
import json
|
| 124 |
+
|
| 125 |
+
class BopBinPicking(Dataset):
|
| 126 |
+
def __init__(self, root, split='train'):
|
| 127 |
+
# root must contain data/<split>/... (extract bin_picking_<split>_bop.zip there first)
|
| 128 |
+
self.scene_dirs = sorted((Path(root) / 'data' / split).iterdir())
|
| 129 |
+
def __len__(self):
|
| 130 |
+
return len(self.scene_dirs)
|
| 131 |
+
def __getitem__(self, idx):
|
| 132 |
+
sd = self.scene_dirs[idx]
|
| 133 |
+
rgb = Image.open(sd / 'rgb' / '000000.png')
|
| 134 |
+
gt = json.loads((sd / 'scene_gt.json').read_text())
|
| 135 |
+
cam = json.loads((sd / 'scene_camera.json').read_text())
|
| 136 |
+
return rgb, gt, cam
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
### COCO via pycocotools
|
| 140 |
+
```python
|
| 141 |
+
# After extracting bin_picking_coco.zip:
|
| 142 |
+
from pycocotools.coco import COCO
|
| 143 |
+
coco = COCO('annotations/coco_train.json')
|
| 144 |
+
img_ids = coco.getImgIds()
|
| 145 |
+
for ann in coco.loadAnns(coco.getAnnIds(imgIds=img_ids[0])):
|
| 146 |
+
print(ann['bbox'], ann['category_id'])
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
_A `datasets.load_dataset()` loader is planned for v1.1._
|
| 150 |
+
|
| 151 |
+
## Intended Use
|
| 152 |
+
|
| 153 |
+
Training 6D pose estimation models, bin-picking grasp models, and warehouse robotics perception systems. Synthetic data for sim-to-real transfer research.
|
| 154 |
+
|
| 155 |
+
## Pose convention
|
| 156 |
+
|
| 157 |
+
This release (v1.0 and v1.1) ships 6D poses in **OpenGL/Blender camera convention** (camera looks down `-Z`, in-front objects have `cam_t_m2c.z < 0`) rather than the BOP-standard **OpenCV convention** (camera looks down `+Z`, in-front objects have `cam_t_m2c.z > 0`). The two differ by the basis change `diag(1, -1, -1)` applied to the camera frame.
|
| 158 |
+
|
| 159 |
+
**Anyone scoring against bop_toolkit_lib, MegaPose, FoundationPose, CosyPose, or any OpenCV-convention model must apply `diag(1, -1, -1)` to the GT `cam_R_m2c` and `cam_t_m2c` from `scene_gt.json` before evaluation**, otherwise pose errors blow up to the order of the object diameter (~150 mm) and any AR comparison is meaningless.
|
| 160 |
+
|
| 161 |
+
ZereData's evaluation harness exposes this via the `--legacy-gl-convention` flag on `eval.scorer.BopScorer`, `eval.adapter.gt_as_predictions`, and the eval CLIs (`gt_sanity`, `run_megapose_eval`, `rescore`, `_perturb_probe`, `rescore_h1`). Pass it when scoring v1.0 or v1.1; omit it for v1.2 onward, which ships in OpenCV convention at the producer (see zrdt-269 (commit `018b959`) for the producer-side fix).
|
| 162 |
+
|
| 163 |
+
This deviation was identified post-publication. v1.0 and v1.1 remain available unchanged on HuggingFace for reproducibility; **v1.2 supersedes them for new integrations** and ships BOP-spec compliant out of the box. The legacy flag is supported indefinitely so downstream code that already ingests v1.0/v1.1 keeps working.
|
| 164 |
+
|
| 165 |
+
RGB, depth, masks, COCO 2D boxes, and YOLO labels are **unaffected** — only the 6D pose serialisation deviates from the BOP spec.
|
| 166 |
+
|
| 167 |
+
## Limitations and Known Issues
|
| 168 |
+
|
| 169 |
+
- **BOP pose convention deviation.** Object pose extrinsics in `scene_gt.json` ship in OpenGL convention, not BOP-spec OpenCV. See the **Pose convention** section above for the basis change and the `--legacy-gl-convention` flag. v1.2 supersedes this with a producer-side fix.
|
| 170 |
+
- **Warehouse-specific lighting.** The three lighting profiles model warehouse conditions and may not transfer directly to outdoor, medical, or agricultural domains:
|
| 171 |
+
- `bin_picking_overhead` — bright fluorescent overhead panels, typical of distribution-center shelving aisles.
|
| 172 |
+
- `bin_picking_mixed` — mixed overhead + rim lighting with warmer colour temperature, mimicking older facilities with partial skylights.
|
| 173 |
+
- `studio` — three-point studio lighting setup shared across ZereData scenarios; in bin-picking scenes, produces low-light conditions with deep shadows.
|
| 174 |
+
Each scene's `variety.lighting_profile` annotation tag records which profile was used.
|
| 175 |
+
- **Procedural materials.** Material variation uses procedural textures, not photoscanned assets. High-frequency surface detail may look synthetic under close inspection.
|
| 176 |
+
- **Geometric occlusion only.** No category-level occlusion modelling — occlusion is derived from geometry alone.
|
| 177 |
+
- **Simulated camera intrinsics.** The intrinsic matrix is synthetic, not drawn from real sensor calibration.
|
| 178 |
+
|
| 179 |
+
## Evaluation
|
| 180 |
+
|
| 181 |
+
Benchmark evaluation on LM-O is forthcoming; see [ZereData](https://zeredata.com) for updates.
|
| 182 |
+
|
| 183 |
+
## Comparison to Related Datasets
|
| 184 |
+
|
| 185 |
+
HOPE, T-LESS, and YCB-Video are excellent real-world datasets with limited scale and fixed object sets. This dataset is synthetic-only, scales without bound, and supports customer-specific object libraries. Treat the two as complementary: real data for evaluation, synthetic data for training.
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
## Custom Datasets
|
| 189 |
+
|
| 190 |
+
This release is a research dataset. The categories (bottle, box, can, pouch), SKU shapes, and bin geometry are intentionally generic — useful for benchmarking, pretraining, and sanity-checking a 6D pose pipeline before you invest in real-world data collection.
|
| 191 |
+
|
| 192 |
+
For production use, ZereData generates the same kind of dataset matched to your warehouse's actual SKUs and bin geometry. Customer-specific datasets ingest CAD files or reference photos, render at the same scale and quality as this release, and ship in days. Pricing is per-dataset, with design-partner terms for early customers.
|
| 193 |
+
|
| 194 |
+
If you're training bin-picking models for a specific picking environment, email **engineering@zeredata.com** — design partners welcome.
|
| 195 |
+
|
| 196 |
+
## Citation
|
| 197 |
+
|
| 198 |
+
```bibtex
|
| 199 |
+
@dataset{zeredata_binpicking_2026,
|
| 200 |
+
author = {Umit Kavala},
|
| 201 |
+
title = {ZereData Bin Picking Dataset v1.1},
|
| 202 |
+
year = {2026},
|
| 203 |
+
publisher = {HuggingFace},
|
| 204 |
+
url = {https://huggingface.co/datasets/zeredata/bin-picking}
|
| 205 |
+
}
|
| 206 |
+
```
|
| 207 |
+
|
| 208 |
+
## License
|
| 209 |
+
|
| 210 |
+
Released under [CC BY 4.0](LICENSE). Attribution required. Commercial use permitted.
|
| 211 |
+
|
| 212 |
+
## Contact and Links
|
| 213 |
+
|
| 214 |
+
- Website: [https://zeredata.com](https://zeredata.com)
|
| 215 |
+
- Contact: [engineering@zeredata.com](mailto:engineering@zeredata.com)
|