Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,7 +29,7 @@ size_categories:
|
|
| 29 |
[](#licensing)
|
| 30 |
|
| 31 |
**Prepared for the bachelor thesis
|
| 32 |
-
_A Study of
|
| 33 |
|
| 34 |
</div>
|
| 35 |
|
|
@@ -46,7 +46,7 @@ The preparation pipeline was designed for reproducibility:
|
|
| 46 |
- unreadable files are recorded;
|
| 47 |
- exact duplicates are detected deterministically;
|
| 48 |
- duplicate handling is documented separately for every dataset;
|
| 49 |
-
- large images are converted to a common RGB `224
|
| 50 |
- training, validation, and test membership is recorded in machine-readable manifests;
|
| 51 |
- dataset-specific RGB normalization statistics are estimated only from each final training split and stored in `normalization.json`;
|
| 52 |
- validation and test images are never used to estimate normalization parameters;
|
|
@@ -56,15 +56,31 @@ The source code used to prepare and load the datasets is available in the accomp
|
|
| 56 |
|
| 57 |
> **Code:** https://github.com/gerageragera39/A-Study-of-Stochastic-Depth-for-Regularizing-Residual-Convolutional-Neural-Networks
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
## Dataset overview
|
| 60 |
|
| 61 |
| Dataset ID | Benchmark | Classes | Experimental split | Stored resolution | Main preparation rule |
|
| 62 |
|---|---:|---:|---|---:|---|
|
| 63 |
-
| `cifar100` | CIFAR-100 | 100 | 45,000 train / 5,000 validation / 10,000 official test | `32
|
| 64 |
-
| `caltech256` | Caltech-256 | 256 | 20,839 train / 4,510 validation / 4,414 test | `224
|
| 65 |
-
| `google4` | Google Scraped Image Dataset | 4 | 27,298 train / 3,413 validation / 3,412 test | `224
|
| 66 |
-
| `oxford102` | Oxford Flowers-102 | 102 | 6,551 train / 818 validation / 819 test | `224
|
| 67 |
-
| `stanford120` | Stanford Dogs | 120 | 10,802 train / 1,198 validation / 8,580 official test | `224
|
| 68 |
|
| 69 |
The final counts above are also stored in each dataset's `split_summary.csv` and `split_config.json`. These generated files are the authoritative source for the published release.
|
| 70 |
|
|
@@ -79,12 +95,12 @@ For Caltech-256, Google-4, Oxford Flowers-102, and Stanford Dogs:
|
|
| 79 |
1. verify that the image can be decoded;
|
| 80 |
2. convert it to RGB;
|
| 81 |
3. resize with bilinear interpolation so that the shorter side becomes 224 pixels;
|
| 82 |
-
4. take a centered `224
|
| 83 |
-
5. preserve already compatible RGB `224
|
| 84 |
|
| 85 |
### Dataset-specific normalization and online augmentation
|
| 86 |
|
| 87 |
-
The thesis models for the four `224
|
| 88 |
|
| 89 |
Instead, each higher-resolution dataset has its own `normalization.json`. The channel-wise mean and population standard deviation were calculated from the **final prepared training split only**, after deterministic RGB conversion, resizing, and center cropping, but before random augmentation. Validation and test images were not used to estimate these values.
|
| 90 |
|
|
@@ -153,7 +169,7 @@ def make_224_transforms(
|
|
| 153 |
return train_transform, eval_transform
|
| 154 |
```
|
| 155 |
|
| 156 |
-
CIFAR-100 uses a separate `32
|
| 157 |
|
| 158 |
```python
|
| 159 |
from torchvision import transforms
|
|
@@ -232,7 +248,7 @@ Each prepared dataset is accompanied by machine-readable metadata. Depending on
|
|
| 232 |
| `split_summary.csv` | Per-class sample counts for each split |
|
| 233 |
| `class_to_idx.json` | Deterministic mapping from class names to integer labels |
|
| 234 |
| `split_config.json` | Split policy, seed, image-preparation settings, counts, warnings, and dataset-specific decisions |
|
| 235 |
-
| `normalization.json` | Training-split RGB mean and population standard deviation used by the `224
|
| 236 |
| `corrupt_images.json` | Source files that could not be decoded |
|
| 237 |
| `duplicates.json` | Detected same-label exact-duplicate groups |
|
| 238 |
| `label_conflicts.json` | Exact hashes observed under more than one label |
|
|
@@ -241,7 +257,7 @@ Each prepared dataset is accompanied by machine-readable metadata. Depending on
|
|
| 241 |
| `excluded_conflicts.csv` | Files excluded because of cross-label exact conflicts |
|
| 242 |
| `train_indices.npy` / `val_indices.npy` | Deterministic CIFAR-100 split indices |
|
| 243 |
|
| 244 |
-
An
|
| 245 |
|
| 246 |
## Repository layout
|
| 247 |
|
|
@@ -249,37 +265,37 @@ The preparation code produces the following logical layout:
|
|
| 249 |
|
| 250 |
```text
|
| 251 |
data/
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
```
|
| 284 |
|
| 285 |
If the Hub upload uses a flatter directory structure, the dataset identifiers and metadata filenames remain the same.
|
|
@@ -564,7 +580,7 @@ For the most conservative distribution model, publish the split manifests, indic
|
|
| 564 |
| Caltech-256 | https://data.caltech.edu/records/nyy15-4j048 |
|
| 565 |
| Google Scraped Image Dataset | https://www.kaggle.com/datasets/duttadebadri/image-classification |
|
| 566 |
| Oxford Flowers-102 | https://www.robots.ox.ac.uk/~vgg/data/flowers/102/ |
|
| 567 |
-
| Oxford package used in the experiments | https://www.kaggle.com/datasets/
|
| 568 |
| Stanford Dogs | http://vision.stanford.edu/aditya86/ImageNetDogs/ |
|
| 569 |
| Stanford Dogs package used in the experiments | https://www.kaggle.com/datasets/jessicali9530/stanford-dogs-dataset |
|
| 570 |
|
|
@@ -578,7 +594,7 @@ When using this prepared collection, please cite both the thesis and the origina
|
|
| 578 |
@thesis{dihtenko2026stochasticdepth,
|
| 579 |
author = {Herman Dihtenko},
|
| 580 |
title = {A Study of ``Stochastic Depth'' for Regularizing Residual Convolutional Neural Networks},
|
| 581 |
-
school = {Catholic University of
|
| 582 |
type = {Bachelor's thesis},
|
| 583 |
year = {2026}
|
| 584 |
}
|
|
@@ -631,4 +647,4 @@ When using this prepared collection, please cite both the thesis and the origina
|
|
| 631 |
|
| 632 |
**Herman Dihtenko**
|
| 633 |
|
| 634 |
-
For questions about split generation, preprocessing, or the thesis experiments, please use the issue tracker in the accompanying GitHub repository.
|
|
|
|
| 29 |
[](#licensing)
|
| 30 |
|
| 31 |
**Prepared for the bachelor thesis
|
| 32 |
+
_A Study of “Stochastic Depth” for Regularizing Residual Convolutional Neural Networks_**
|
| 33 |
|
| 34 |
</div>
|
| 35 |
|
|
|
|
| 46 |
- unreadable files are recorded;
|
| 47 |
- exact duplicates are detected deterministically;
|
| 48 |
- duplicate handling is documented separately for every dataset;
|
| 49 |
+
- large images are converted to a common RGB `224 Г— 224` representation;
|
| 50 |
- training, validation, and test membership is recorded in machine-readable manifests;
|
| 51 |
- dataset-specific RGB normalization statistics are estimated only from each final training split and stored in `normalization.json`;
|
| 52 |
- validation and test images are never used to estimate normalization parameters;
|
|
|
|
| 56 |
|
| 57 |
> **Code:** https://github.com/gerageragera39/A-Study-of-Stochastic-Depth-for-Regularizing-Residual-Convolutional-Neural-Networks
|
| 58 |
|
| 59 |
+
## Published thesis results
|
| 60 |
+
|
| 61 |
+
In addition to the prepared datasets, this repository contains the experimental artifacts reported in the thesis under [`results/`](./results/).
|
| 62 |
+
|
| 63 |
+
All final main experiments used one NVIDIA A40 GPU per SLURM task, batch size 256, 300 epochs, `pL = 0.5`, and training seeds `20917`, `723421`, and `901344`. Each dataset includes four conditions: `no_sd`, `sd_per_batch`, `sd_per_sample`, and `dropout`.
|
| 64 |
+
|
| 65 |
+
| Dataset | Architecture | Precision |
|
| 66 |
+
|---|---|---|
|
| 67 |
+
| CIFAR-100 | CIFAR-style full pre-activation ResNet-110 | FP32 |
|
| 68 |
+
| Caltech-256 | full pre-activation ResNet-101 | BF16 CUDA autocast without gradient scaling |
|
| 69 |
+
| Google Scraped Image Dataset | full pre-activation ResNet-101 | BF16 CUDA autocast without gradient scaling |
|
| 70 |
+
| Oxford Flowers-102 | full pre-activation ResNet-101 | FP32 |
|
| 71 |
+
| Stanford Dogs | full pre-activation ResNet-101 | FP32 |
|
| 72 |
+
|
| 73 |
+
The separate CIFAR-100 bias–variance analysis is stored under [`results/bias_variance/cifar100/resnet110/batch_256/fp32/pL_0.5/`](./results/bias_variance/cifar100/resnet110/batch_256/fp32/pL_0.5/). It uses the 45,000/5,000 training/validation split, excludes the official test set from the diagnostic analysis, and compares `no_sd` with `sd_per_sample` over seeds `111111`, `129143`, `222222`, `363801`, and `548357`.
|
| 74 |
+
|
| 75 |
## Dataset overview
|
| 76 |
|
| 77 |
| Dataset ID | Benchmark | Classes | Experimental split | Stored resolution | Main preparation rule |
|
| 78 |
|---|---:|---:|---|---:|---|
|
| 79 |
+
| `cifar100` | CIFAR-100 | 100 | 45,000 train / 5,000 validation / 10,000 official test | `32 Г— 32` | Official test preserved; exact-image anomalies are diagnostic only |
|
| 80 |
+
| `caltech256` | Caltech-256 | 256 | 20,839 train / 4,510 validation / 4,414 test | `224 Г— 224` RGB | Clutter excluded; exact duplicates handled before splitting |
|
| 81 |
+
| `google4` | Google Scraped Image Dataset | 4 | 27,298 train / 3,413 validation / 3,412 test | `224 Г— 224` RGB | Source train/test folders merged; class aliases normalized |
|
| 82 |
+
| `oxford102` | Oxford Flowers-102 | 102 | 6,551 train / 818 validation / 819 test | `224 Г— 224` RGB | Cross-split exact duplicates removed without random resplitting |
|
| 83 |
+
| `stanford120` | Stanford Dogs | 120 | 10,802 train / 1,198 validation / 8,580 official test | `224 Г— 224` RGB | Official metadata required; test membership is preserved |
|
| 84 |
|
| 85 |
The final counts above are also stored in each dataset's `split_summary.csv` and `split_config.json`. These generated files are the authoritative source for the published release.
|
| 86 |
|
|
|
|
| 95 |
1. verify that the image can be decoded;
|
| 96 |
2. convert it to RGB;
|
| 97 |
3. resize with bilinear interpolation so that the shorter side becomes 224 pixels;
|
| 98 |
+
4. take a centered `224 Г— 224` crop;
|
| 99 |
+
5. preserve already compatible RGB `224 Г— 224` files without unnecessary re-encoding.
|
| 100 |
|
| 101 |
### Dataset-specific normalization and online augmentation
|
| 102 |
|
| 103 |
+
The thesis models for the four `224 Г— 224` datasets are trained from randomly initialized weights. No ImageNet-pretrained parameters are used, and ImageNet normalization constants are not part of the final protocol.
|
| 104 |
|
| 105 |
Instead, each higher-resolution dataset has its own `normalization.json`. The channel-wise mean and population standard deviation were calculated from the **final prepared training split only**, after deterministic RGB conversion, resizing, and center cropping, but before random augmentation. Validation and test images were not used to estimate these values.
|
| 106 |
|
|
|
|
| 169 |
return train_transform, eval_transform
|
| 170 |
```
|
| 171 |
|
| 172 |
+
CIFAR-100 uses a separate `32 Г— 32` pipeline and its established CIFAR-100 channel statistics:
|
| 173 |
|
| 174 |
```python
|
| 175 |
from torchvision import transforms
|
|
|
|
| 248 |
| `split_summary.csv` | Per-class sample counts for each split |
|
| 249 |
| `class_to_idx.json` | Deterministic mapping from class names to integer labels |
|
| 250 |
| `split_config.json` | Split policy, seed, image-preparation settings, counts, warnings, and dataset-specific decisions |
|
| 251 |
+
| `normalization.json` | Training-split RGB mean and population standard deviation used by the `224 Г— 224` data loader |
|
| 252 |
| `corrupt_images.json` | Source files that could not be decoded |
|
| 253 |
| `duplicates.json` | Detected same-label exact-duplicate groups |
|
| 254 |
| `label_conflicts.json` | Exact hashes observed under more than one label |
|
|
|
|
| 257 |
| `excluded_conflicts.csv` | Files excluded because of cross-label exact conflicts |
|
| 258 |
| `train_indices.npy` / `val_indices.npy` | Deterministic CIFAR-100 split indices |
|
| 259 |
|
| 260 |
+
An “exact duplicate” in the folder-based datasets means an identical SHA-256 hash of the source file. This method does not detect perceptually similar images that were recompressed, resized, cropped, rotated, or otherwise modified.
|
| 261 |
|
| 262 |
## Repository layout
|
| 263 |
|
|
|
|
| 265 |
|
| 266 |
```text
|
| 267 |
data/
|
| 268 |
+
в”њв”Ђв”Ђ processed/
|
| 269 |
+
в”‚ в”њв”Ђв”Ђ cifar100/
|
| 270 |
+
в”‚ в”‚ в””в”Ђв”Ђ cifar-100-python/
|
| 271 |
+
в”‚ в”њв”Ђв”Ђ caltech256/
|
| 272 |
+
в”‚ в”‚ в”њв”Ђв”Ђ train/<class>/*
|
| 273 |
+
в”‚ в”‚ в”њв”Ђв”Ђ val/<class>/*
|
| 274 |
+
в”‚ в”‚ в””в”Ђв”Ђ test/<class>/*
|
| 275 |
+
в”‚ в”њв”Ђв”Ђ google4/
|
| 276 |
+
в”‚ в”‚ в”њв”Ђв”Ђ train/<class>/*
|
| 277 |
+
в”‚ в”‚ в”њв”Ђв”Ђ val/<class>/*
|
| 278 |
+
в”‚ в”‚ в””в”Ђв”Ђ test/<class>/*
|
| 279 |
+
в”‚ в”њв”Ђв”Ђ oxford102/
|
| 280 |
+
в”‚ в”‚ в”њв”Ђв”Ђ train/<class>/*
|
| 281 |
+
в”‚ в”‚ в”њв”Ђв”Ђ val/<class>/*
|
| 282 |
+
в”‚ в”‚ в””в”Ђв”Ђ test/<class>/*
|
| 283 |
+
в”‚ в””в”Ђв”Ђ stanford120/
|
| 284 |
+
в”‚ в”њв”Ђв”Ђ train/<class>/*
|
| 285 |
+
в”‚ в”њв”Ђв”Ђ val/<class>/*
|
| 286 |
+
в”‚ в””в”Ђв”Ђ test/<class>/*
|
| 287 |
+
в””в”Ђв”Ђ splits/
|
| 288 |
+
в”њв”Ђв���Ђ cifar100/
|
| 289 |
+
в”‚ в”њв”Ђв”Ђ train_indices.npy
|
| 290 |
+
в”‚ в””в”Ђв”Ђ val_indices.npy
|
| 291 |
+
в”њв”Ђв”Ђ caltech256/
|
| 292 |
+
в”‚ в””в”Ђв”Ђ normalization.json
|
| 293 |
+
в”њв”Ђв”Ђ google4/
|
| 294 |
+
в”‚ в””в”Ђв”Ђ normalization.json
|
| 295 |
+
в”њв”Ђв”Ђ oxford102/
|
| 296 |
+
в”‚ в””в”Ђв”Ђ normalization.json
|
| 297 |
+
в””в”Ђв”Ђ stanford120/
|
| 298 |
+
в””в”Ђв”Ђ normalization.json
|
| 299 |
```
|
| 300 |
|
| 301 |
If the Hub upload uses a flatter directory structure, the dataset identifiers and metadata filenames remain the same.
|
|
|
|
| 580 |
| Caltech-256 | https://data.caltech.edu/records/nyy15-4j048 |
|
| 581 |
| Google Scraped Image Dataset | https://www.kaggle.com/datasets/duttadebadri/image-classification |
|
| 582 |
| Oxford Flowers-102 | https://www.robots.ox.ac.uk/~vgg/data/flowers/102/ |
|
| 583 |
+
| Oxford package used in the experiments | https://www.kaggle.com/datasets/yousefmohamed20/oxford-102-flower-dataset |
|
| 584 |
| Stanford Dogs | http://vision.stanford.edu/aditya86/ImageNetDogs/ |
|
| 585 |
| Stanford Dogs package used in the experiments | https://www.kaggle.com/datasets/jessicali9530/stanford-dogs-dataset |
|
| 586 |
|
|
|
|
| 594 |
@thesis{dihtenko2026stochasticdepth,
|
| 595 |
author = {Herman Dihtenko},
|
| 596 |
title = {A Study of ``Stochastic Depth'' for Regularizing Residual Convolutional Neural Networks},
|
| 597 |
+
school = {Catholic University of Eichstätt-Ingolstadt},
|
| 598 |
type = {Bachelor's thesis},
|
| 599 |
year = {2026}
|
| 600 |
}
|
|
|
|
| 647 |
|
| 648 |
**Herman Dihtenko**
|
| 649 |
|
| 650 |
+
For questions about split generation, preprocessing, or the thesis experiments, please use the issue tracker in the accompanying GitHub repository.
|