Dataset Viewer
Auto-converted to Parquet Duplicate
hazy
image
clean
image
id
string
scene
string
render_index
int64
omega
float64
density
string
00000_0_0.2600
00000
0
0.26
light
00000_0_0.5510
00000
0
0.551
moderate
00000_0_0.8160
00000
0
0.816
dense
00000_1_0.1040
00000
1
0.104
light
00000_1_0.5340
00000
1
0.534
moderate
00000_1_0.7870
00000
1
0.787
dense
00000_2_0.1520
00000
2
0.152
light
00000_2_0.4790
00000
2
0.479
moderate
00000_2_0.7090
00000
2
0.709
dense
00001_0_0.2560
00001
0
0.256
light
00001_0_0.5990
00001
0
0.599
moderate
00001_0_0.9590
00001
0
0.959
dense
00001_1_0.1840
00001
1
0.184
light
00001_1_0.6820
00001
1
0.682
moderate
00001_1_0.7220
00001
1
0.722
dense
00001_2_0.1390
00001
2
0.139
light
00001_2_0.6080
00001
2
0.608
moderate
00001_2_0.7310
00001
2
0.731
dense
00002_0_0.1500
00002
0
0.15
light
00002_0_0.5130
00002
0
0.513
moderate
00002_0_0.9050
00002
0
0.905
dense
00002_1_0.3680
00002
1
0.368
light
00002_1_0.5790
00002
1
0.579
moderate
00002_1_0.7680
00002
1
0.768
dense
00002_2_0.1600
00002
2
0.16
light
00002_2_0.5330
00002
2
0.533
moderate
00002_2_0.7710
00002
2
0.771
dense
00003_0_0.3020
00003
0
0.302
light
00003_0_0.4250
00003
0
0.425
moderate
00003_0_0.7840
00003
0
0.784
dense
00003_1_0.2770
00003
1
0.277
light
00003_1_0.5600
00003
1
0.56
moderate
00003_1_0.8980
00003
1
0.898
dense
00003_2_0.3000
00003
2
0.3
light
00003_2_0.5110
00003
2
0.511
moderate
00003_2_0.8310
00003
2
0.831
dense
00004_0_0.3550
00004
0
0.355
light
00004_0_0.6680
00004
0
0.668
moderate
00004_0_0.8310
00004
0
0.831
dense
00004_1_0.1120
00004
1
0.112
light
00004_1_0.4650
00004
1
0.465
moderate
00004_1_0.9480
00004
1
0.948
dense
00004_2_0.3050
00004
2
0.305
light
00004_2_0.4050
00004
2
0.405
moderate
00004_2_0.8230
00004
2
0.823
dense
00005_0_0.1510
00005
0
0.151
light
00005_0_0.5800
00005
0
0.58
moderate
00005_0_0.9690
00005
0
0.969
dense
00005_1_0.1170
00005
1
0.117
light
00005_1_0.4560
00005
1
0.456
moderate
00005_1_0.7770
00005
1
0.777
dense
00005_2_0.2790
00005
2
0.279
light
00005_2_0.6630
00005
2
0.663
moderate
00005_2_0.8550
00005
2
0.855
dense
00006_0_0.3250
00006
0
0.325
light
00006_0_0.4720
00006
0
0.472
moderate
00006_0_0.7220
00006
0
0.722
dense
00006_1_0.3100
00006
1
0.31
light
00006_1_0.4990
00006
1
0.499
moderate
00006_1_0.9440
00006
1
0.944
dense
00006_2_0.2720
00006
2
0.272
light
00006_2_0.6310
00006
2
0.631
moderate
00006_2_0.7290
00006
2
0.729
dense
00007_0_0.3290
00007
0
0.329
light
00007_0_0.4040
00007
0
0.404
moderate
00007_0_0.8380
00007
0
0.838
dense
00007_1_0.3830
00007
1
0.383
light
00007_1_0.4190
00007
1
0.419
moderate
00007_1_0.7750
00007
1
0.775
dense
00007_2_0.1890
00007
2
0.189
light
00007_2_0.4040
00007
2
0.404
moderate
00007_2_0.8790
00007
2
0.879
dense
00008_0_0.1320
00008
0
0.132
light
00008_0_0.4080
00008
0
0.408
moderate
00008_0_0.9100
00008
0
0.91
dense
00008_1_0.3980
00008
1
0.398
light
00008_1_0.4090
00008
1
0.409
moderate
00008_1_0.8260
00008
1
0.826
dense
00008_2_0.2490
00008
2
0.249
light
00008_2_0.4570
00008
2
0.457
moderate
00008_2_0.8100
00008
2
0.81
dense
00009_0_0.2800
00009
0
0.28
light
00009_0_0.5990
00009
0
0.599
moderate
00009_0_0.7790
00009
0
0.779
dense
00009_1_0.1640
00009
1
0.164
light
00009_1_0.4150
00009
1
0.415
moderate
00009_1_0.9220
00009
1
0.922
dense
00009_2_0.3770
00009
2
0.377
light
00009_2_0.5860
00009
2
0.586
moderate
00009_2_0.7330
00009
2
0.733
dense
00010_0_0.1410
00010
0
0.141
light
00010_0_0.5930
00010
0
0.593
moderate
00010_0_0.9920
00010
0
0.992
dense
00010_1_0.2530
00010
1
0.253
light
00010_1_0.6330
00010
1
0.633
moderate
00010_1_0.7710
00010
1
0.771
dense
00010_2_0.3900
00010
2
0.39
light
00010_2_0.6120
00010
2
0.612
moderate
00010_2_0.9230
00010
2
0.923
dense
00011_0_0.3450
00011
0
0.345
light
End of preview. Expand in Data Studio

RS-Haze: Remote Sensing Image Dehazing (Unofficial Mirror)

Task Domain Dataset Pairs Split Imagery

Unofficial redistribution of RS-Haze, the large-scale remote sensing dehazing dataset from Song, He, Qian and Du (IEEE TIP 2023, the DehazeFormer paper), packaged for direct use with ClearView's dataset pipeline. Haze-free Landsat-8 scenes are hazed with a physically motivated model that takes real cirrus patterns, wavelength and haze density into account, giving highly non-homogeneous haze. This is the 8-bit, gamma-corrected RGB release the authors distribute.

Disclaimer

This repository is not an official release of RS-Haze.

RS-Haze was created by Yuda Song, Zhuqing He, Hui Qian, and Xin Du. This repository does not claim ownership of any images or metadata, and attributes the dataset to its original creators.

On licensing, please read before relying on this mirror. The underlying imagery is Landsat-8 data from the U.S. Geological Survey, which the USGS distributes without restrictions on use (US public domain), and the official download folder ships a CREDIT.txt with the USGS credit line, which we reproduce below. The DehazeFormer repository, which hosts the dataset link, is MIT licensed, but that license is stated for the repository's code and does not explicitly cover the dataset. We found no license statement for the synthesized hazy images as a dataset. We have mirrored it under that understanding, with full attribution, and:

  • If the dataset's creators, or an authorized representative, request removal, we will comply promptly.

If you need certainty about redistribution rights (e.g. for commercial use), contact the dataset's creators directly rather than relying on this mirror.

Imagery credit (from the official CREDIT.txt): Landsat 8 image courtesy of the U.S. Geological Survey. Visit the USGS at https://usgs.gov and EarthExplorer at https://earthexplorer.usgs.gov.


Dataset Overview

Haze in satellite images is rarely uniform, so dehazing models trained on ground-level, depth-based haze generalise poorly to it. RS-Haze synthesises realistic remote sensing haze instead. The authors selected 76 haze-free Landsat-8 Level 1 scenes with diverse terrain, applied atmospheric correction (FLAASH), and took transmission patterns from the cirrus band of 108 cloudy Landsat-8 scenes. Patches of 512Γ—512 were cropped from both, and each clean patch was hazed nine times: three renders at each of three density levels.

Split Clean patches Hazy images Image size
Train 5,700 51,300 512Γ—512
Test 300 2,700 512Γ—512

Density is controlled by the parameter Ο‰, which is stored in every filename and in the metadata:

Density Ο‰ range Paper subset name Train Test
light 0.100 to 0.399 RS-Haze-L 17,100 900
moderate 0.400 to 0.699 RS-Haze-M 17,100 900
dense 0.700 to 0.999 RS-Haze-D 17,100 900

The paper's main benchmark, RS-Haze-mix, is all three together, which is what each split here contains. Counts are verified directly against the extracted official archives, not repeated from secondary sources.

The authors also generated 16-bit, 7-band multispectral versions for the paper. Only the RGB version is publicly distributed ("Currently, we only provide gamma-corrected RGB images of our RS-Haze dataset"), and that is what this mirror contains.


Changes from the Official Release

Clean images are stored once per scene. In the official archives, every hazy image has its own copy of the clean image under the same filename (GT/00000_0_0.1800.png, GT/00000_0_0.5620.png, ... nine per scene). We checked that all nine copies of every scene are byte-identical (SHA-256), then kept one, named after the scene (GT/00000.png). No pixels are lost, and the mirror is about 48,000 files and 21 GB smaller (24.2 GB of official GT copies become 2.7 GB). The script at the end of this section restores the official layout.

Training hazy images are sharded. The 51,300 training hazy images would exceed the Hub's 10,000 files per folder limit, so they sit in train/hazy/shard_NNN/, grouped by scene number (scenes 00000 to 00999 in shard_000, and so on). Filenames are unchanged. The 2,700 test hazy images stay in one folder.

Added: train/metadata.jsonl and test/metadata.jsonl. Each line links one hazy image to its clean scene, so the Dataset Viewer and load_dataset show every hazy image as one row: hazy, clean, id (the official filename stem), scene, render_index, omega, and density. The last three are parsed from the official filename <scene>_<render_index>_<omega>.png (the naming used by the authors' synthesis code), with density derived from Ο‰ using the ranges in the table above.

No hazy image was modified or renamed.

Restoring the official layout:

import json, os, shutil

for split in ["train", "test"]:
    os.makedirs(f"official/{split}/GT", exist_ok=True)
    os.makedirs(f"official/{split}/hazy", exist_ok=True)
    for line in open(f"{split}/metadata.jsonl"):
        r = json.loads(line)
        name = os.path.basename(r["hazy_file_name"])
        shutil.copy(f"{split}/{r['hazy_file_name']}", f"official/{split}/hazy/{name}")
        shutil.copy(f"{split}/{r['clean_file_name']}", f"official/{split}/GT/{name}")

Dataset Structure

rs-haze/
β”œβ”€β”€ README.md
β”œβ”€β”€ banner.jpg
β”œβ”€β”€ CREDIT.txt                   # USGS imagery credit, as shipped officially
β”œβ”€β”€ assets/                      # demo banner video and poster
β”œβ”€β”€ train/
β”‚   β”œβ”€β”€ metadata.jsonl           # one row per hazy image
β”‚   β”œβ”€β”€ GT/                      # 5,700 clean patches, <scene>.png
β”‚   └── hazy/
β”‚       β”œβ”€β”€ shard_000/           # <scene>_<render_index>_<omega>.png
β”‚       └── ...
└── test/
    β”œβ”€β”€ metadata.jsonl
    β”œβ”€β”€ GT/                      # 300 clean patches
    └── hazy/                    # 2,700 hazy images

A hazy image <scene>_<i>_<omega>.png pairs with GT/<scene>.png of the same split.


Usage with πŸ€— Datasets

from datasets import load_dataset

ds = load_dataset("dronefreak/RS-Haze", split="test")
row = ds[0]
row["hazy"], row["clean"]          # PIL images, 512x512
row["omega"], row["density"]       # e.g. 0.18, "light"

dense = ds.filter(lambda r: r["density"] == "dense")   # RS-Haze-D

Usage with ClearView

This dataset can be used with ClearView, an open-source PyTorch framework for image restoration. Because the clean images are shared between nine hazy images, read the pairs from the metadata:

import json
from pathlib import Path

from huggingface_hub import snapshot_download
from PIL import Image
from torch.utils.data import Dataset

data_dir = Path(snapshot_download(repo_id="dronefreak/RS-Haze", repo_type="dataset"))


class RSHaze(Dataset):
    def __init__(self, split_dir, transform=None):
        self.dir = Path(split_dir)
        self.rows = [json.loads(l) for l in open(self.dir / "metadata.jsonl")]
        self.transform = transform

    def __len__(self):
        return len(self.rows)

    def __getitem__(self, i):
        r = self.rows[i]
        hazy = Image.open(self.dir / r["hazy_file_name"]).convert("RGB")
        clean = Image.open(self.dir / r["clean_file_name"]).convert("RGB")
        return (hazy, clean) if self.transform is None else self.transform(hazy, clean)


test_ds = RSHaze(data_dir / "test")

There is no official validation split. If you need one, hold out whole scenes, since the nine hazy images of a scene share one clean image.


Dataset Sources

Original Paper

Vision Transformers for Single Image Dehazing

Yuda Song, Zhuqing He, Hui Qian, Xin Du

IEEE Transactions on Image Processing, vol. 32, pp. 1927-1941, 2023.

Official Resources


Attribution

All credit for the dataset belongs to its original authors: Yuda Song, Zhuqing He, Hui Qian, and Xin Du. Landsat 8 imagery courtesy of the U.S. Geological Survey.

If you use this dataset in your research, please cite the original publication below.


License

No license statement was located for the dataset itself. The source imagery is Landsat-8 data from the USGS (US public domain), and the DehazeFormer repository's MIT license is stated for its code. See the Disclaimer above. This repository makes no claim to any rights over the dataset content beyond hosting a copy.


Citation

If you use this dataset, please cite:

@article{song2023vision,
  title={Vision Transformers for Single Image Dehazing},
  author={Song, Yuda and He, Zhuqing and Qian, Hui and Du, Xin},
  journal={IEEE Transactions on Image Processing},
  year={2023},
  volume={32},
  pages={1927-1941}
}

Acknowledgements

We sincerely thank Yuda Song, Zhuqing He, Hui Qian, and Xin Du for building and publicly releasing a large, physically motivated remote sensing dehazing dataset, and the U.S. Geological Survey for the open Landsat archive it is built on.

Downloads last month
51

Collection including dronefreak/RS-Haze

Paper for dronefreak/RS-Haze