AngeloUNIMI commited on
Commit
fbabf65
·
1 Parent(s): ac5925a

Update README with IPAN_3D reference

Browse files
Files changed (1) hide show
  1. README.md +163 -74
README.md CHANGED
@@ -1,89 +1,101 @@
1
- # Granulo-10k
2
 
3
- <p align="center">
4
- <b>A large-scale benchmark dataset for multiple-view industrial granulometry of OSB wood strands.</b>
5
- </p>
6
 
7
- <p align="center">
8
- <a href="#dataset">Dataset</a> •
9
- <a href="#download">Download</a> •
10
- <a href="#tasks">Tasks</a> •
11
- <a href="#baselines">Baselines</a> •
12
- <a href="#citation">Citation</a>
13
- </p>
 
 
 
 
14
 
15
  ---
16
 
17
- ## Overview
18
 
19
- **Granulo-10k** is an open benchmark dataset for research on **Oriented Strand Board (OSB) strand analysis**, with a focus on multiple-view granulometry and three-dimensional geometric estimation.
20
 
21
- The dataset contains high-resolution paired images of wood strands acquired with a calibrated two-camera setup, together with segmentation masks, granulometric ground truth, and 3D point clouds. It is designed to support reproducible research on automated strand segmentation and estimation of:
22
 
23
  - **height** (`h`)
24
  - **width** (`w`)
25
  - **thickness** (`t`)
 
26
 
27
- Granulo-10k addresses a key limitation in industrial wood vision research: most existing approaches estimate geometry from 2D projections and often do not provide individual strand-level thickness measurements. This dataset provides multiple views and point-cloud information to encourage research on full 3D strand characterization.
28
 
29
  ---
30
 
31
- ## Highlights
32
 
33
- - **9,600 RGB images** at `1280 x 960` resolution
34
- - **200 unique OSB wood strands**
35
- - **24 acquisitions per strand**
36
- - **2 synchronized camera views** per acquisition
37
- - **Segmentation masks** for each paired acquisition
38
- - **3D point clouds** associated with each paired acquisition
39
- - **Ground-truth granulometric measurements**: height, width, and thickness
40
- - **Compliant / non-compliant strand labels** based on manufacturer reference dimensions
41
- - **Strand-disjoint evaluation protocol** to avoid train-test leakage
 
 
42
 
43
  ---
44
 
45
- ## Dataset
46
-
47
- Granulo-10k contains images of thinly chopped wood pieces, known as **strands**, used in OSB panel production.
48
 
49
- ### Strand categories
50
 
51
- The dataset includes 200 manually measured strands, divided into two classes:
52
 
53
- | Category | Number of strands | Average size |
54
- | --- | ---: | --- |
55
- | Compliant | 100 | `h x w x t = 115 x 20 x 0.70 mm` |
56
- | Non-compliant | 100 | `h x w x t = 91 x 9 x 0.65 mm` |
57
 
58
- For each strand, the maximum height and width were measured using a caliper. Since thickness may vary across the strand surface, multiple thickness measurements were collected at different points and averaged.
59
 
60
- ### Acquisition protocol
61
 
62
  Images were collected using a calibrated multiple-view acquisition system composed of:
63
 
64
  - two synchronized **Sony SX90CR** color cameras
65
  - a trigger mechanism connected to a photocell
66
- - four LED bars arranged to provide approximately uniform illumination
67
  - calibrated camera geometry for multiple-view reconstruction
68
 
69
- The two cameras were placed at the same height and oriented at an angle of approximately `85 deg` with respect to the support, with a camera distance of `125 mm`. LED bars were placed at approximately `90 mm` from the cameras.
 
 
70
 
71
- Each strand was dropped from random positions above the cameras, while ensuring that it fell inside the intersection of the two fields of view. To increase acquisition variability, each strand was acquired 24 times:
72
 
73
- - 8 frontal drops
74
- - 8 sideways drops
75
- - 8 intermediate-orientation drops
76
 
77
- This results in:
78
 
79
  ```text
80
  200 strands x 24 acquisitions x 2 cameras = 9,600 RGB images
81
  ```
82
 
83
- ### Data modalities
 
 
84
 
85
  For each paired acquisition, Granulo-10k provides:
86
 
 
 
 
 
 
 
 
 
 
 
87
  - RGB image from camera 1
88
  - RGB image from camera 2
89
  - segmentation mask for camera 1
@@ -94,76 +106,101 @@ For each paired acquisition, Granulo-10k provides:
94
 
95
  ---
96
 
97
- ## Download
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
- Dataset can be downloaded from Hugging Face [here](https://huggingface.co/datasets/AngeloUNIMI/Granulo-10k).
 
 
100
 
101
  ---
102
 
103
- ## Tasks
104
 
105
  Granulo-10k supports several research tasks:
106
 
107
  ### 1. Strand segmentation
108
-
109
  Estimate binary masks for OSB strands from single-view or paired RGB images.
110
 
111
  ### 2. Multiple-view granulometry
112
-
113
- Estimate strand height, width, and thickness using one or more of the available modalities:
114
 
115
  - image-only input
116
  - point-cloud-only input
117
  - fused image and point-cloud input
118
 
119
  ### 3. Compliant vs. non-compliant classification
120
-
121
  Classify strands according to whether their geometry is compliant with manufacturer reference dimensions.
122
 
123
  ### 4. Multi-modal geometric learning
124
-
125
- Develop methods that combine two RGB views and 3D point clouds for robust geometric reasoning.
126
 
127
  ---
128
 
129
- ## Baselines
130
 
131
  The accompanying paper evaluates modern visual backbones and multi-modal fusion strategies for joint estimation of height, width, and thickness.
132
 
133
- ### Architecture summary
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
- The proposed baseline uses:
136
 
137
  - two frozen image encoders, one for each camera view
138
- - a PointNet++ encoder for the point cloud
139
- - an MLP adapter to align point-cloud features with image embeddings
140
  - max-pooling feature fusion
141
- - a Multi-gate Mixture-of-Experts (MMoE) decoder
142
  - task-specific heads for height, width, and thickness regression
143
  - a multi-task uncertainty-weighted loss
144
 
145
- ### Evaluation protocol
146
-
147
- Experiments use:
148
-
149
- - 5-fold cross-validation
150
- - 50 training epochs per fold
151
- - learning rate of `1.2e-3`
152
- - strand-disjoint splits, so all acquisitions of the same strand are assigned to the same split
153
- - MAE and MAPE as evaluation metrics
154
 
155
- ### Reported results
156
 
157
- The following table summarizes representative results from the paper. Values are reported as mean ± standard deviation.
158
 
159
  | Backbone | Point cloud | Height MAE [mm] | Height MAPE [%] | Width MAE [mm] | Width MAPE [%] | Thickness MAE [mm] | Thickness MAPE [%] |
160
- | --- | :---: | ---: | ---: | ---: | ---: | ---: | ---: |
161
  | Mean value baseline | - | 17.88 ± 1.45 | 21.58 ± 2.86 | 6.24 ± 0.50 | 56.22 ± 3.56 | 0.18 ± 0.03 | 29.29 ± 2.32 |
162
  | DINO ViT-B/14 | No | 2.70 ± 0.34 | 2.99 ± 0.34 | 1.65 ± 0.21 | 12.13 ± 1.67 | 0.09 ± 0.01 | 13.70 ± 0.67 |
163
  | ConvNeXtV2 | No | 2.95 ± 0.31 | 3.30 ± 0.37 | 1.64 ± 0.13 | 11.67 ± 1.16 | 0.09 ± 0.01 | 14.91 ± 1.52 |
164
  | EVA02-CLIP ViT-L/14 | No | 2.82 ± 0.34 | 3.19 ± 0.35 | 1.73 ± 0.10 | 12.11 ± 0.70 | 0.09 ± 0.00 | 14.63 ± 1.33 |
165
  | CLIP ViT-L/14 | No | 2.99 ± 0.24 | 3.34 ± 0.16 | 1.84 ± 0.17 | 13.38 ± 1.69 | 0.11 ± 0.01 | 17.77 ± 1.67 |
166
- | DINO ViT-B/14 | Yes | **2.53 ± 0.08** | **2.77 ± 0.09** | **1.59 ± 0.02** | **11.94 ± 0.35** | 0.10 ± 0.00 | 14.58 ± 0.57 |
167
  | ConvNeXtV2 | Yes | 2.93 ± 0.16 | 3.24 ± 0.16 | 1.79 ± 0.06 | 13.94 ± 0.38 | 0.10 ± 0.00 | 15.13 ± 0.13 |
168
  | EVA02-CLIP ViT-L/14 | Yes | 3.01 ± 0.07 | 3.31 ± 0.08 | 1.78 ± 0.07 | 13.47 ± 0.93 | 0.11 ± 0.00 | 17.44 ± 0.79 |
169
  | CLIP ViT-L/14 | Yes | 3.41 ± 0.14 | 3.80 ± 0.12 | 2.06 ± 0.17 | 15.93 ± 2.02 | 0.13 ± 0.01 | 19.96 ± 1.19 |
@@ -172,7 +209,27 @@ DINO ViT-B/14 with point-cloud input achieves the strongest performance for heig
172
 
173
  ---
174
 
175
- ## Citation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
  If you use Granulo-10k in your research, please cite the associated paper:
178
 
@@ -185,12 +242,44 @@ If you use Granulo-10k in your research, please cite the associated paper:
185
  }
186
  ```
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  ---
189
 
190
- ## Acknowledgements
191
 
192
  This work was supported in part by the EC under project **EdgeAI** (`101097300`). Project EdgeAI is supported by the Chips Joint Undertaking and its members, including top-up funding by Austria, Belgium, France, Greece, Italy, Latvia, the Netherlands, and Norway.
193
 
194
  The authors thank **IMAL s.r.l.**, San Damaso, Modena, Italy, for cooperation in providing data and sample classification. The authors also acknowledge Prof. **Ruggero Donida Labati** for his contribution to the data collection process.
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
 
 
 
1
+ <div align="center">
2
 
3
+ # 🌲 Granulo-10k
 
 
4
 
5
+ ### A large-scale benchmark dataset for multiple-view industrial granulometry of OSB wood strands
6
+
7
+ [![Dataset](https://img.shields.io/badge/Dataset-Hugging%20Face-yellow?logo=huggingface)](https://huggingface.co/datasets/AngeloUNIMI/Granulo-10k)
8
+ [![GitHub](https://img.shields.io/badge/GitHub-Granulo--10k-181717?logo=github)](https://github.com/AngeloUNIMI/Granulo-10k)
9
+ [![Related Code](https://img.shields.io/badge/Related-IPAN__3D-blue?logo=github)](https://github.com/AngeloUNIMI/IPAN_3D)
10
+ [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENSE)
11
+ [![Task](https://img.shields.io/badge/Task-Industrial%203D%20Granulometry-green)](#tasks)
12
+
13
+ **Granulo-10k** is an open benchmark dataset for research on **Oriented Strand Board (OSB) strand analysis**, with a focus on **multiple-view granulometry**, **strand segmentation**, and **3D geometric estimation**.
14
+
15
+ </div>
16
 
17
  ---
18
 
19
+ ## 🧭 Overview
20
 
21
+ Granulo-10k contains high-resolution paired images of OSB wood strands acquired with a calibrated two-camera setup, together with segmentation masks, granulometric ground truth, and 3D point clouds.
22
 
23
+ The dataset supports reproducible research on the estimation of:
24
 
25
  - **height** (`h`)
26
  - **width** (`w`)
27
  - **thickness** (`t`)
28
+ - **compliant / non-compliant strand classification**
29
 
30
+ Granulo-10k addresses a key limitation in industrial wood-vision research: many existing methods rely mainly on 2D projections and do not provide individual strand-level thickness measurements. This dataset provides synchronized multiple views and point-cloud information to encourage research on full **3D strand characterization**.
31
 
32
  ---
33
 
34
+ ## Highlights
35
 
36
+ | Feature | Description |
37
+ |---|---|
38
+ | 🖼️ RGB images | **9,600** images at `1280 x 960` resolution |
39
+ | 🌲 Strands | **200** unique OSB wood strands |
40
+ | 🔁 Acquisitions | **24** acquisitions per strand |
41
+ | 📷 Views | **2 synchronized camera views** per acquisition |
42
+ | 🎯 Masks | Segmentation masks for each paired acquisition |
43
+ | ☁️ 3D data | Point clouds associated with paired acquisitions |
44
+ | 📏 Ground truth | Height, width, and thickness measurements |
45
+ | 🏷️ Labels | Compliant / non-compliant strand categories |
46
+ | 🧪 Protocol | Strand-disjoint evaluation to avoid train-test leakage |
47
 
48
  ---
49
 
50
+ ## 🖼️ Visual Examples
 
 
51
 
52
+ <div align="center">
53
 
54
+ ![Granulo-10k example](figures/fig2_dataset_examples.png)
55
 
56
+ </div>
 
 
 
57
 
58
+ ---
59
 
60
+ ## 🏗️ Acquisition Setup
61
 
62
  Images were collected using a calibrated multiple-view acquisition system composed of:
63
 
64
  - two synchronized **Sony SX90CR** color cameras
65
  - a trigger mechanism connected to a photocell
66
+ - four LED bars for approximately uniform illumination
67
  - calibrated camera geometry for multiple-view reconstruction
68
 
69
+ The two cameras were placed at the same height and oriented at approximately `85°` with respect to the support, with a camera distance of `125 mm`. LED bars were placed at approximately `90 mm` from the cameras.
70
+
71
+ <div align="center">
72
 
73
+ ![Outline of the multiple-view acquisition setup](figures/setup.png)
74
 
75
+ </div>
 
 
76
 
77
+ Each strand was dropped from random positions above the cameras while ensuring that it fell inside the intersection of the two fields of view. To increase acquisition variability, each strand was acquired 24 times:
78
 
79
  ```text
80
  200 strands x 24 acquisitions x 2 cameras = 9,600 RGB images
81
  ```
82
 
83
+ ---
84
+
85
+ ## 📦 Dataset Content
86
 
87
  For each paired acquisition, Granulo-10k provides:
88
 
89
+ ```text
90
+ Granulo-10k/
91
+ ├── Images/ # RGB images from synchronized camera views
92
+ ├── Masks/ # Segmentation masks for each view
93
+ ├── PCs/ # 3D point clouds
94
+ └── README.md # Dataset description and citation
95
+ ```
96
+
97
+ Each acquisition includes:
98
+
99
  - RGB image from camera 1
100
  - RGB image from camera 2
101
  - segmentation mask for camera 1
 
106
 
107
  ---
108
 
109
+ ## 🌲 Strand Categories
110
+
111
+ The dataset includes 200 manually measured strands divided into two classes:
112
+
113
+ | Category | Number of strands | Reference average size |
114
+ |---|---:|---|
115
+ | ✅ Compliant | 100 | `h x w x t = 115 x 20 x 0.70 mm` |
116
+ | ⚠️ Non-compliant | 100 | `h x w x t = 91 x 9 x 0.65 mm` |
117
+
118
+ For each strand, maximum height and width were measured using a caliper. Since thickness can vary across the strand surface, multiple thickness measurements were collected at different points and averaged.
119
+
120
+ ---
121
+
122
+ ## 📥 Download
123
+
124
+ The dataset can be downloaded from Hugging Face:
125
+
126
+ ```python
127
+ from datasets import load_dataset
128
+
129
+ dataset = load_dataset("AngeloUNIMI/Granulo-10k")
130
+ ```
131
+
132
+ Dataset page:
133
 
134
+ ```text
135
+ https://huggingface.co/datasets/AngeloUNIMI/Granulo-10k
136
+ ```
137
 
138
  ---
139
 
140
+ ## 🎯 Tasks
141
 
142
  Granulo-10k supports several research tasks:
143
 
144
  ### 1. Strand segmentation
 
145
  Estimate binary masks for OSB strands from single-view or paired RGB images.
146
 
147
  ### 2. Multiple-view granulometry
148
+ Estimate strand height, width, and thickness using one or more available modalities:
 
149
 
150
  - image-only input
151
  - point-cloud-only input
152
  - fused image and point-cloud input
153
 
154
  ### 3. Compliant vs. non-compliant classification
 
155
  Classify strands according to whether their geometry is compliant with manufacturer reference dimensions.
156
 
157
  ### 4. Multi-modal geometric learning
158
+ Develop methods that combine synchronized RGB views and 3D point clouds for robust geometric reasoning.
 
159
 
160
  ---
161
 
162
+ ## 🧠 Baseline Workflow
163
 
164
  The accompanying paper evaluates modern visual backbones and multi-modal fusion strategies for joint estimation of height, width, and thickness.
165
 
166
+ ```mermaid
167
+ graph LR
168
+ A[Camera 1 RGB] --> B[Image Encoder]
169
+ C[Camera 2 RGB] --> D[Image Encoder]
170
+ E[3D Point Cloud] --> F[PointNet++ Encoder]
171
+ B --> G[Feature Fusion]
172
+ D --> G
173
+ F --> G
174
+ G --> H[MMoE Decoder]
175
+ H --> I[Height Regression]
176
+ H --> J[Width Regression]
177
+ H --> K[Thickness Regression]
178
+ ```
179
 
180
+ The baseline uses:
181
 
182
  - two frozen image encoders, one for each camera view
183
+ - a PointNet++ encoder for point-cloud features
184
+ - an MLP adapter to align point-cloud and image embeddings
185
  - max-pooling feature fusion
186
+ - a Multi-gate Mixture-of-Experts decoder
187
  - task-specific heads for height, width, and thickness regression
188
  - a multi-task uncertainty-weighted loss
189
 
190
+ ---
 
 
 
 
 
 
 
 
191
 
192
+ ## 📊 Representative Results
193
 
194
+ Values are reported as mean ± standard deviation.
195
 
196
  | Backbone | Point cloud | Height MAE [mm] | Height MAPE [%] | Width MAE [mm] | Width MAPE [%] | Thickness MAE [mm] | Thickness MAPE [%] |
197
+ |---|:---:|---:|---:|---:|---:|---:|---:|
198
  | Mean value baseline | - | 17.88 ± 1.45 | 21.58 ± 2.86 | 6.24 ± 0.50 | 56.22 ± 3.56 | 0.18 ± 0.03 | 29.29 ± 2.32 |
199
  | DINO ViT-B/14 | No | 2.70 ± 0.34 | 2.99 ± 0.34 | 1.65 ± 0.21 | 12.13 ± 1.67 | 0.09 ± 0.01 | 13.70 ± 0.67 |
200
  | ConvNeXtV2 | No | 2.95 ± 0.31 | 3.30 ± 0.37 | 1.64 ± 0.13 | 11.67 ± 1.16 | 0.09 ± 0.01 | 14.91 ± 1.52 |
201
  | EVA02-CLIP ViT-L/14 | No | 2.82 ± 0.34 | 3.19 ± 0.35 | 1.73 ± 0.10 | 12.11 ± 0.70 | 0.09 ± 0.00 | 14.63 ± 1.33 |
202
  | CLIP ViT-L/14 | No | 2.99 ± 0.24 | 3.34 ± 0.16 | 1.84 ± 0.17 | 13.38 ± 1.69 | 0.11 ± 0.01 | 17.77 ± 1.67 |
203
+ | **DINO ViT-B/14** | **Yes** | **2.53 ± 0.08** | **2.77 ± 0.09** | **1.59 ± 0.02** | **11.94 ± 0.35** | 0.10 ± 0.00 | 14.58 ± 0.57 |
204
  | ConvNeXtV2 | Yes | 2.93 ± 0.16 | 3.24 ± 0.16 | 1.79 ± 0.06 | 13.94 ± 0.38 | 0.10 ± 0.00 | 15.13 ± 0.13 |
205
  | EVA02-CLIP ViT-L/14 | Yes | 3.01 ± 0.07 | 3.31 ± 0.08 | 1.78 ± 0.07 | 13.47 ± 0.93 | 0.11 ± 0.00 | 17.44 ± 0.79 |
206
  | CLIP ViT-L/14 | Yes | 3.41 ± 0.14 | 3.80 ± 0.12 | 2.06 ± 0.17 | 15.93 ± 2.02 | 0.13 ± 0.01 | 19.96 ± 1.19 |
 
209
 
210
  ---
211
 
212
+ ## 🔗 Related Work: IPAN_3D
213
+
214
+ Granulo-10k is closely related to the earlier work on image-processing-based 3D granulometry.
215
+
216
+ The related repository provides MATLAB source code for the 2019 IEEE Transactions on Industrial Informatics paper:
217
+
218
+ > **3-D granulometry using image processing**
219
+ > R. Donida Labati, A. Genovese, E. Muñoz, V. Piuri, and F. Scotti
220
+ > *IEEE Transactions on Industrial Informatics*, vol. 15, no. 3, pp. 1251-1264, March 2019.
221
+
222
+ Useful links:
223
+
224
+ - Code: https://github.com/AngeloUNIMI/IPAN_3D
225
+ - Project page: http://iebil.di.unimi.it/projects/ipan
226
+ - Paper: https://ieeexplore.ieee.org/document/8411142
227
+
228
+ It can be considered a methodological precursor for multiple-view industrial granulometry, while Granulo-10k provides a larger benchmark dataset for modern learning-based methods using synchronized images, masks, point clouds, and strand-level granulometric ground truth.
229
+
230
+ ---
231
+
232
+ ## 📚 Citation
233
 
234
  If you use Granulo-10k in your research, please cite the associated paper:
235
 
 
242
  }
243
  ```
244
 
245
+ If you refer to the related IPAN_3D method or code, please also cite:
246
+
247
+ ```bibtex
248
+ @Article{ipan3d,
249
+ author = {R. {Donida Labati} and A. Genovese and E. Mu\~{n}oz and V. Piuri and F. Scotti},
250
+ title = {3-D granulometry using image processing},
251
+ journal = {IEEE Transactions on Industrial Informatics},
252
+ volume = {15},
253
+ number = {3},
254
+ pages = {1251--1264},
255
+ month = {March},
256
+ year = {2019},
257
+ note = {1551-3203}
258
+ }
259
+ ```
260
+
261
  ---
262
 
263
+ ## 🙏 Acknowledgements
264
 
265
  This work was supported in part by the EC under project **EdgeAI** (`101097300`). Project EdgeAI is supported by the Chips Joint Undertaking and its members, including top-up funding by Austria, Belgium, France, Greece, Italy, Latvia, the Netherlands, and Norway.
266
 
267
  The authors thank **IMAL s.r.l.**, San Damaso, Modena, Italy, for cooperation in providing data and sample classification. The authors also acknowledge Prof. **Ruggero Donida Labati** for his contribution to the data collection process.
268
 
269
+ ---
270
+
271
+ ## 📄 License
272
+
273
+ This repository is released under the **GNU General Public License v3.0**.
274
+
275
+ See the [LICENSE](LICENSE) file for details.
276
+
277
+ ---
278
+
279
+ <div align="center">
280
+
281
+ ### 🌲 Granulo-10k
282
+
283
+ **Multiple-view industrial granulometry for OSB strand analysis**
284
 
285
+ </div>