Datasets:
Tasks:
Image Classification
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
License:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,122 +1,127 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
-
|
| 29 |
-
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
.
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
---
|
| 101 |
-
|
| 102 |
-
##
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- mnist
|
| 9 |
+
- image
|
| 10 |
+
- digit
|
| 11 |
+
- synthetic
|
| 12 |
+
- houdini
|
| 13 |
+
pretty_name: MNIST Bakery Dataset
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
---
|
| 17 |
+
# π§ MNIST Bakery Dataset
|
| 18 |
+
|
| 19 |
+
A procedurally synthesized variant of the classic MNIST dataset, created using **SideFX Houdini** and designed for experimentation in **data augmentation**, **synthetic data generation**, and **model robustness research**.
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## π― Purpose
|
| 24 |
+
|
| 25 |
+
This dataset demonstrates how **procedural generation pipelines** in 3D tools like Houdini can be used to create **high-quality, synthetic training data** for machine learning tasks. It is intended for:
|
| 26 |
+
|
| 27 |
+
- Benchmarking model performance using synthetic vs. real data
|
| 28 |
+
- Training models in **low-data** or **zero-shot** environments
|
| 29 |
+
- Developing robust classifiers that generalize beyond typical datasets
|
| 30 |
+
- Evaluating augmentation and generalization strategies in vision models
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## π οΈ Generation Pipeline
|
| 35 |
+
|
| 36 |
+
All data was generated using the `.hip` scene:
|
| 37 |
+
```bash
|
| 38 |
+
./houdini/digitgen_v02.hip
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## π§ͺ Methodology
|
| 42 |
+
|
| 43 |
+
### 1. Procedural Digit Assembly
|
| 44 |
+
- Each digit `0`β`9` is generated using a random font in each frame via Houdiniβs **Font SOP**.
|
| 45 |
+
- Digits are arranged in a clean **8Γ8 grid**, forming sprite sheets with **64 digits per render**.
|
| 46 |
+
|
| 47 |
+
### 2. Scene Variability
|
| 48 |
+
- Fonts are randomly selected per frame.
|
| 49 |
+
- Procedural distortions are applied including:
|
| 50 |
+
- Rotation
|
| 51 |
+
- Translation
|
| 52 |
+
- Skew
|
| 53 |
+
- Mountain noise displacement
|
| 54 |
+
- This ensures high variability across samples.
|
| 55 |
+
|
| 56 |
+
### 3. Rendering
|
| 57 |
+
- Scene renders are executed via **Mantra** or **Karma**.
|
| 58 |
+
- Output format: **grayscale 224Γ224 px** sprite sheets (`.exr` or `.jpg`).
|
| 59 |
+
|
| 60 |
+
### 4. Compositing & Cropping
|
| 61 |
+
- A **COP2 network** slices the sprite sheet into **28Γ28** digit tiles.
|
| 62 |
+
- Each tile is labeled by its original digit and saved to:
|
| 63 |
+
```
|
| 64 |
+
./output/0/img_00001.jpg
|
| 65 |
+
./output/1/img_00001.jpg
|
| 66 |
+
...
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### π§Ύ Dataset Structure
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
mnist_bakery_data/
|
| 73 |
+
βββ 0/
|
| 74 |
+
β βββ img_00001.jpg
|
| 75 |
+
β βββ ...
|
| 76 |
+
βββ 1/
|
| 77 |
+
β βββ img_00001.jpg
|
| 78 |
+
β βββ ...
|
| 79 |
+
...
|
| 80 |
+
βββ 9/
|
| 81 |
+
β βββ img_00001.jpg
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
- All images: grayscale `.jpg`, 28Γ28 resolution
|
| 86 |
+
- Total: **40,960 samples**
|
| 87 |
+
- ~4,096 samples per digit
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## π Statistics
|
| 92 |
+
|
| 93 |
+
| Set | Samples | Mean | StdDev |
|
| 94 |
+
|-----------|---------|---------|----------|
|
| 95 |
+
| MNIST | 60,000 | 0.1307 | 0.3081 |
|
| 96 |
+
| Synthetic | 40,960 | 0.01599 | 0.07722 |
|
| 97 |
+
|
| 98 |
+
> Combine mean/std using weighted averaging if mixing both datasets.
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
## π Usage Example
|
| 103 |
+
|
| 104 |
+
```python
|
| 105 |
+
from torchvision import transforms, datasets
|
| 106 |
+
|
| 107 |
+
transform = transforms.Compose([
|
| 108 |
+
transforms.Grayscale(),
|
| 109 |
+
transforms.ToTensor(),
|
| 110 |
+
transforms.Normalize(mean=[0.01599], std=[0.07722]) # Approximate weighted normalization
|
| 111 |
+
])
|
| 112 |
+
|
| 113 |
+
dataset = datasets.ImageFolder('./mnist_bakery_data', transform=transform)
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
#### π§ Credits
|
| 119 |
+
|
| 120 |
+
**Author**: Aaron T. Carter
|
| 121 |
+
|
| 122 |
+
**Organization**: Arkaen Solutions
|
| 123 |
+
|
| 124 |
+
**Tools Used**: Houdini, PyTorch, PIL
|
| 125 |
+
|
| 126 |
+
___
|
| 127 |
+
|