David-Seattle commited on
Commit
a78b609
·
verified ·
1 Parent(s): 4a434d3

Create README.md

Browse files

# 🍎 ApplesM5-Dataset

This dataset contains annotated object detection data used in the **Synetic AI Apple Benchmark** study, measuring the effectiveness of rendered (synthetic) data versus real-world data for training small vision models. The dataset was constructed using photorealistic, physics-accurate 3D renders of apples in orchard scenes, with perfect annotations and environmental diversity.

This dataset supports object detection models such as YOLOv8 and RT-DETR, and includes:

- RGB images
- Bounding box annotations (COCO format)
- Real and rendered training/validation splits
- Metadata for benchmark reproduction

## 📊 Use Cases

- Object detection
- Real vs synthetic data performance evaluation
- Model training and validation
- Benchmarking data efficiency in agriculture

## 📁 Dataset Structure
ApplesM5-Dataset/
├── images/
│ ├── train/
│ ├── val/
├── annotations/
│ ├── instances_train.json
│ ├── instances_val.json
├── metadata/
│ ├── image_metadata.csv


## 🔬 Benchmark Context

This dataset was used in the Synetic AI whitepaper to compare multiple training strategies:
- Real-only
- Rendered-only
- Rendered + real validation
- Joint (rendered + real) training

Rendered data outperformed real data by up to **34% mAP** in certain configurations, especially at low confidence thresholds where operational reliability matters most.

## 📄 Citation & Whitepaper

🔗 Whitepaper coming soon. Visit [synetic.ai](https://synetic.ai) for updates.

Once published, this section will include the official citation and DOI link.

## 🔧 License

MIT License

## 🔤 Language

No language data. This dataset is image-based.

## 🏷️ Tags

`synthetic-data`, `object-detection`, `agriculture`, `benchmark`, `rendered`, `real-vs-synthetic`

## 🎯 Task Categories

- Object Detection

## 📦 Size Category

10K < # images < 100K

---

**Contact**: For questions or commercial licensing, please visit [synetic.ai](https://synetic.ai).

Files changed (1) hide show
  1. README.md +18 -109
README.md CHANGED
@@ -1,110 +1,19 @@
1
- # ApplesM5
2
- ## Breaking the Bottleneck: Synthetic Data as the New Foundation for Vision AI
3
-
4
- This repository contains training images and scripts for the Synetic AI **ApplesM5** object detection project that was used in the **Breaking the Bottleneck: Synthetic Data as the New Foundation for Vision AI** white paper, using **Ultralytics YOLO12**. The core scripts allow you to train models using custom YAML datasets and evaluate the results using the provided train_metrics.py script.
5
-
6
- The paper is available for download at https://synetic.ai/white-paper/breaking/benchmark .
7
-
8
- ---
9
-
10
- ## 📂 Repository Structure (Key Files)
11
-
12
- | File | Purpose |
13
- | -------------------------- | ------------------------------------------------------------------------------------------- |
14
- | `PrepareDatasets.py` | Produces the individual datasets used for training various combinations. |
15
- | `applesm5-train-det.py` | Trains YOLO12 detection models using specified datasets and hyperparameters. |
16
- | `FileCrawler.py` | Recursively crawls directories to find image and label files. Used for evaluating datasets. |
17
- | `train_metrics.py` | Runs evaluations on trained YOLO12 models and computes mAP, precision, and recall metrics. |
18
- | `*.yaml` (dataset configs) | Define dataset splits, including training, validation, and test image directories. |
19
-
20
- ---
21
-
22
- ## ⚙️ Setup
23
-
24
- ### 1. Install Dependencies
25
-
26
- ```bash
27
- pip install ultralytics tqdm
28
- ```
29
-
30
- Your environment should have **PyTorch** and GPU drivers properly configured.
31
-
32
- ---
33
-
34
- ## 🚀 Usage
35
-
36
- ### 0. Prepare Datasets (`PrepareDatasets.py`)
37
-
38
- It will produce multiple folders combinations of synetic and real from the real and synetic source folders.
39
-
40
- ```bash
41
- python PrepareDatasets.py
42
- ```
43
-
44
- ### A. Training Models (`applesm5-train-det.py`)
45
-
46
- To train object detection models using YOLO12:
47
-
48
- ```bash
49
- python applesm5-train-det.py
50
- ```
51
-
52
- Key things to configure:
53
-
54
- - Edit the `dataNames` list to point to your dataset YAML files (e.g., `real`, `synetic+real`, etc.).
55
- - YAML files should be placed at `/home/user/datasets/ApplesM5/`.
56
- - Adjust `hyperparams`, `epochs`, and GPU `devices` as needed.
57
- - The script trains multiple model variants (`yolo12n.yaml`, etc.) and saves results to the Ultralytics default `runs/detect/` folder.
58
-
59
- ---
60
-
61
- ### B. Dataset YAML Files
62
-
63
- Example dataset YAML (`real.yaml`):
64
-
65
- ```yaml
66
- path: /path/to/your/dataset
67
- train: images/train
68
- val: images/val
69
- test: images/test
70
- names:
71
- 0: apple
72
- ```
73
-
74
- Modify the paths in your YAML files to point to your dataset locations.
75
-
76
- ---
77
-
78
- ### C. Evaluating Models (`train_metrics.py`)
79
-
80
- After training, you can evaluate your models on a validation dataset:
81
-
82
- ```bash
83
- python train_metrics.py
84
- ```
85
-
86
- Make sure to adjust the following in the script:
87
-
88
- - `modelPaths`: list of trained YOLO12 model `.pt` files to evaluate.
89
- - `pathValsDataset`: path to your validation images (`.png`/`.jpg`).
90
-
91
- This will compute **mAP50**, **mAP50-95**, **precision**, and **recall** scores and print them to the console.
92
-
93
- ---
94
-
95
- ## ✅ Example Workflow
96
-
97
- 1. Prepare datasets and YAML config files.
98
- 2. Train detection models with `applesm5-train-det.py`.
99
- 3. Run `train_metrics.py` to benchmark models.
100
- 4. Iterate on your datasets and training parameters to improve performance.
101
-
102
- ---
103
-
104
- ## 🔧 Notes
105
-
106
- - The training script assumes a multi-GPU setup (adjust the `devices` list if needed).
107
- - The repo is tuned for an NVIDIA DGX or similar system with 8 GPUs but can be modified for single-GPU setups.
108
- - Dataset YAML and trained model `.pt` files follow the **Ultralytics YOLO12** conventions.
109
-
110
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - object-detection
5
+ language:
6
+ - en
7
+ tags:
8
+ - synthetic-data
9
+ - apple-detection
10
+ - computer-vision
11
+ - photorealistic
12
+ - benchmark
13
+ - agriculture
14
+ - yolo
15
+ - object-detection
16
+ pretty_name: 'Better Than Real: Synthetic Apple Detection for Orchards'
17
+ size_categories:
18
+ - 1K<n<10K
19
+ ---