Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,27 +1,102 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-image
|
| 5 |
+
- image-classification
|
| 6 |
+
size_categories:
|
| 7 |
+
- 10K<n<100K
|
| 8 |
+
tags:
|
| 9 |
+
- computer-vision
|
| 10 |
+
- image-processing
|
| 11 |
+
- autoencoders
|
| 12 |
+
- image-compression
|
| 13 |
+
- denoising
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# DF2K_OST Dataset
|
| 17 |
+
|
| 18 |
+
High-quality 256×256 image dataset for training autoencoders.
|
| 19 |
+
|
| 20 |
+
## Dataset Description
|
| 21 |
+
|
| 22 |
+
This dataset combines three high-quality image sources commonly used for image super-resolution and restoration tasks:
|
| 23 |
+
|
| 24 |
+
- **DIV2K**: 900 high-resolution images (800 train + 100 validation)
|
| 25 |
+
- **Flickr2K**: 2,650 high-resolution images
|
| 26 |
+
- **OST (Outdoor Scene Training)**: 10,324 outdoor scene images
|
| 27 |
+
|
| 28 |
+
All images have been resized to 256×256 pixels using Lanczos resampling for optimal quality.
|
| 29 |
+
|
| 30 |
+
## Dataset Structure
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
DF2K_OST/
|
| 34 |
+
├── train/ # ~90% of images (26796 images)
|
| 35 |
+
└── validation/ # ~10% of images (2978 images)
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
Each sample contains:
|
| 39 |
+
- `image`: 256×256 RGB image
|
| 40 |
+
- `source`: Original dataset source (DIV2K, Flickr2K, or OST)
|
| 41 |
+
- `filename`: Original filename
|
| 42 |
+
|
| 43 |
+
## Processing
|
| 44 |
+
|
| 45 |
+
All images were processed using:
|
| 46 |
+
- Target resolution: 256×256 pixels
|
| 47 |
+
- Resampling method: Lanczos (PIL.Image.LANCZOS)
|
| 48 |
+
- Color mode: RGB
|
| 49 |
+
- Train/validation split: 90/10 (stratified random)
|
| 50 |
+
|
| 51 |
+
## Usage
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from datasets import load_dataset
|
| 55 |
+
|
| 56 |
+
# Load full dataset
|
| 57 |
+
dataset = load_dataset("gperdrizet/DF2K_OST")
|
| 58 |
+
|
| 59 |
+
# Load only training split
|
| 60 |
+
train_data = load_dataset("gperdrizet/DF2K_OST", split="train")
|
| 61 |
+
|
| 62 |
+
# Access images
|
| 63 |
+
for sample in train_data:
|
| 64 |
+
image = sample['image'] # PIL Image
|
| 65 |
+
source = sample['source'] # Dataset source
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
## Original Sources
|
| 69 |
+
|
| 70 |
+
### DIV2K
|
| 71 |
+
- **Citation**: Agustsson, E., & Timofte, R. (2017). NTIRE 2017 Challenge on Single Image Super-Resolution: Dataset and Study.
|
| 72 |
+
- **License**: See DIV2K dataset terms
|
| 73 |
+
|
| 74 |
+
### Flickr2K
|
| 75 |
+
- **Source**: Flickr images collected for super-resolution research
|
| 76 |
+
- **License**: See original Flickr2K terms
|
| 77 |
+
|
| 78 |
+
### OST (Outdoor Scene Training)
|
| 79 |
+
- **Source**: Outdoor scene images for image restoration
|
| 80 |
+
- **License**: See OST dataset terms
|
| 81 |
+
|
| 82 |
+
## License
|
| 83 |
+
|
| 84 |
+
The compilation and processing are provided under Apache 2.0 license. Individual images retain their original licenses from source datasets.
|
| 85 |
+
|
| 86 |
+
## Citation
|
| 87 |
+
|
| 88 |
+
If you use this dataset, please cite the original source datasets:
|
| 89 |
+
|
| 90 |
+
```bibtex
|
| 91 |
+
@inproceedings{agustsson2017ntire,
|
| 92 |
+
title={NTIRE 2017 Challenge on Single Image Super-Resolution: Dataset and Study},
|
| 93 |
+
author={Agustsson, Eirikur and Timofte, Radu},
|
| 94 |
+
booktitle={CVPR Workshops},
|
| 95 |
+
year={2017}
|
| 96 |
+
}
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
## Created By
|
| 100 |
+
|
| 101 |
+
Processed and compiled for the Autoencoders educational demo project.
|
| 102 |
+
Repository: https://github.com/gperdrizet/autoencoders
|