Datasets:
rainy imagewidth (px) 556 3.84k | clean imagewidth (px) 556 3.84k | id stringlengths 1 4 | width int64 556 3.84k | height int64 328 2.16k | clean_rotated_180 bool 2
classes |
|---|---|---|---|---|---|
0 | 1,920 | 1,080 | false | ||
1 | 1,920 | 1,080 | false | ||
2 | 1,920 | 1,080 | false | ||
3 | 1,920 | 1,080 | false | ||
4 | 1,920 | 1,080 | false | ||
5 | 1,920 | 1,080 | false | ||
6 | 1,920 | 1,080 | false | ||
7 | 1,920 | 1,080 | false | ||
8 | 1,920 | 1,080 | false | ||
9 | 1,920 | 1,080 | false | ||
10 | 1,920 | 1,080 | false | ||
11 | 1,920 | 1,080 | false | ||
12 | 1,920 | 1,080 | false | ||
13 | 1,920 | 1,080 | false | ||
14 | 1,920 | 684 | false | ||
15 | 1,920 | 1,080 | false | ||
16 | 1,920 | 1,080 | false | ||
17 | 1,920 | 940 | false | ||
18 | 1,754 | 898 | false | ||
19 | 1,920 | 1,080 | false | ||
20 | 1,760 | 1,080 | false | ||
21 | 1,920 | 644 | false | ||
22 | 1,836 | 1,080 | false | ||
23 | 1,920 | 1,080 | false | ||
24 | 1,920 | 1,080 | false | ||
25 | 1,920 | 1,080 | false | ||
26 | 1,920 | 1,080 | false | ||
27 | 1,920 | 1,080 | false | ||
28 | 1,920 | 1,080 | false | ||
29 | 1,920 | 1,080 | false | ||
30 | 1,920 | 1,080 | false | ||
31 | 1,920 | 970 | false | ||
32 | 1,920 | 1,080 | false | ||
33 | 1,920 | 1,080 | false | ||
34 | 1,920 | 1,080 | false | ||
35 | 1,648 | 794 | false | ||
36 | 1,520 | 1,080 | false | ||
37 | 1,722 | 934 | false | ||
38 | 1,920 | 1,080 | false | ||
39 | 1,920 | 1,080 | false | ||
40 | 1,920 | 1,080 | false | ||
41 | 1,920 | 1,080 | false | ||
42 | 1,920 | 1,080 | false | ||
43 | 1,920 | 1,012 | false | ||
44 | 1,652 | 836 | false | ||
45 | 1,920 | 868 | false | ||
46 | 1,920 | 780 | false | ||
47 | 1,920 | 1,080 | false | ||
48 | 1,920 | 1,080 | false | ||
49 | 1,920 | 746 | false | ||
50 | 1,920 | 760 | false | ||
51 | 1,848 | 936 | false | ||
52 | 1,414 | 1,080 | false | ||
53 | 1,228 | 926 | false | ||
54 | 1,556 | 1,080 | false | ||
55 | 1,920 | 788 | false | ||
56 | 1,920 | 1,080 | false | ||
57 | 1,920 | 1,080 | false | ||
58 | 1,920 | 1,080 | false | ||
59 | 1,740 | 1,080 | false | ||
60 | 1,920 | 1,080 | false | ||
61 | 1,920 | 1,080 | false | ||
62 | 1,622 | 1,080 | false | ||
63 | 1,920 | 1,080 | false | ||
64 | 1,080 | 1,748 | false | ||
65 | 1,080 | 1,920 | false | ||
66 | 1,286 | 702 | false | ||
67 | 1,628 | 638 | false | ||
68 | 1,246 | 560 | false | ||
69 | 1,524 | 648 | false | ||
70 | 1,694 | 1,080 | false | ||
71 | 872 | 714 | false | ||
72 | 1,218 | 1,080 | false | ||
73 | 1,260 | 836 | false | ||
74 | 1,496 | 900 | false | ||
75 | 1,920 | 556 | false | ||
76 | 1,540 | 716 | false | ||
77 | 1,920 | 1,080 | false | ||
78 | 1,920 | 1,080 | false | ||
79 | 1,920 | 1,080 | false | ||
80 | 832 | 1,040 | false | ||
81 | 1,920 | 1,080 | false | ||
82 | 1,920 | 828 | false | ||
83 | 1,920 | 810 | false | ||
84 | 1,920 | 1,080 | false | ||
85 | 1,920 | 1,080 | false | ||
86 | 1,920 | 1,080 | false | ||
87 | 1,640 | 1,004 | false | ||
88 | 1,512 | 1,080 | false | ||
89 | 1,636 | 956 | false | ||
90 | 1,920 | 728 | false | ||
91 | 1,920 | 848 | false | ||
92 | 1,920 | 834 | false | ||
93 | 1,920 | 1,080 | false | ||
94 | 1,920 | 1,080 | false | ||
95 | 1,920 | 1,080 | false | ||
96 | 1,920 | 1,080 | false | ||
97 | 1,920 | 702 | false | ||
98 | 1,920 | 670 | false | ||
99 | 1,920 | 1,080 | false |
LHP-Rain: Large-scale High-quality Paired Real Rain (Unofficial Mirror)
Unofficial redistribution of LHP-Rain, the paired real-rain benchmark from Guo, Xiao, Chang, Deng and Yan (ICCV 2023), packaged for direct use with ClearView's dataset pipeline. The rain is real: the authors filmed rainy scenes with a static camera and recovered the rain-free background from each video, so every pair shows real rain streaks, veiling and ground splashes over the same scene.
Disclaimer
This repository is not an official release of LHP-Rain.
LHP-Rain was created by Yun Guo, Xueyao Xiao, Yi Chang, Shumin Deng, and Luxin Yan. This repository does not claim ownership of any images or metadata, and attributes the dataset to its original creators. We describe them as "creators" rather than "copyright holders" deliberately, since copyright in academic datasets can rest with an author's university, employer, or a funding body, under arrangements we have no way to verify from the outside.
On licensing, please read before relying on this mirror. We looked for a formal license covering this dataset (the official repository, the project page, the paper) and found none. The official repository has no LICENSE file and no usage restriction, and the dataset is distributed as plain Google Drive and Baidu links. This is the same situation as this collection's Outdoor-Rain and RainDS mirrors, not a stated restriction like a dataset that explicitly says "research purposes only" (which we treat differently and do not mirror). The Google Drive links also regularly hit their download quota, which is the practical problem this mirror solves. In the absence of an explicit license, we have chosen to preserve this dataset for research reproducibility while providing full attribution and making the mirror removable on request. This is a decision we're making under that uncertainty, not a claim that we've established a legal right to redistribute it. Concretely:
- Full attribution and citation to the original creators (below).
- No claim of any rights beyond hosting a copy.
- If the copyright holder, or an authorized representative, requests removal, we will comply promptly.
If you need certainty about redistribution rights (e.g. for commercial use), contact the dataset's creators or their institution directly rather than relying on this mirror.
Dataset Overview
Most deraining datasets add synthetic rain to clean photos. LHP-Rain instead starts from real rain: the authors recorded rainy videos with a fixed camera and a static background, discarded clips with moving objects, and computed a clean ground truth from each video with their robust low-rank tensor recovery model (RLRTR), which separates the static background from the moving rain. The rain therefore includes streaks, veiling, occlusion and splashes on the ground, all real.
This mirror contains two of the official releases:
| Config | Split | Pairs | Image size |
|---|---|---|---|
default (full size) |
train | 2,100 | varies, see below |
| validation | 600 | varies | |
| test | 300 | varies | |
test_patches |
test | 1,000 | 512Γ512 |
Counts and sizes are verified directly against the extracted official archives, not repeated from secondary sources. The project page describes the full-size set as 1920Γ1080, noting that a "few images are cropped smaller than original size". In the files themselves the sizes are more mixed:
| Split | 1920Γ1080 | 3840Γ2160 | Other sizes (cropped or portrait) |
|---|---|---|---|
| train | 1,016 | 253 | 831 |
| validation | 194 | 160 | 246 |
| test | 200 | 9 | 91 |
The smallest image side is 266 px, and 132 of the 3,000 pairs are portrait. Rainy and clean images of a pair always have the same size, and each row's width and height are in the metadata.
The scenes are the authors' own recordings around a university campus: buildings, parking areas, bicycle racks, roads and trees, in daytime and at night. Some parked cars have legible number plates, which are left as in the official release. A handful of frames show passers-by, seen from behind, under umbrellas, far away, or as drivers behind wet glass. We screened every image (rainy and clean) with a person detector and reviewed the hits by hand, and found no identifiable faces.
The official project also provides a 256Γ256 patch version of the training data (about 1 million pairs, plus a 10% "simple" version). Those patches are crops of the full-size images in this mirror and are not included.
Changes from the Official Release
Added: metadata_train.jsonl, metadata_validation.jsonl, metadata_test.jsonl and test_patches/metadata.jsonl. Each line links one rainy image to its clean image, so the Dataset Viewer and load_dataset show every pair as one row: rainy, clean, id, and for the full-size set width, height and clean_rotated_180 (see below). The image files themselves are untouched.
Known issue in the official release: 8 clean images are upside down. In training pairs 1793, 1804, 1805, 1806, 1868, 2007, 2047 and 2091, the clean image is rotated 180Β° relative to its rainy image. We found these by comparing every pair against flipped and rotated versions of its clean image; no other pair is affected. The files are left exactly as released, and those rows have clean_rotated_180: true. Rotate the clean image by 180Β° (clean.rotate(180) in PIL) or drop those rows before training.
No images added, removed, renamed, or modified. The full-size set keeps the folder layout of the official Full.zip exactly (gt/ and input/, each with train/, val/ and test/). The official 512Γ512 test set (test.zip, which also has top-level gt/ and input/ folders) is placed under test_patches/ so the two archives don't collide.
Dataset Structure
lhp-rain/
βββ README.md
βββ banner.jpg
βββ assets/ # demo banner video and poster
βββ metadata_train.jsonl # one row per full-size pair
βββ metadata_validation.jsonl
βββ metadata_test.jsonl
βββ input/ # rainy images
β βββ train/ # 0.png ... 2099.png
β βββ val/ # 2101.png ... 2700.png
β βββ test/ # 2701.png ... 3000.png
βββ gt/ # clean images, same names as input/
β βββ train/
β βββ val/
β βββ test/
βββ test_patches/ # official 512x512 test set
βββ metadata.jsonl
βββ input/ # 1,000 rainy patches
βββ gt/ # 1,000 clean patches, same names
A rainy image input/<split>/N.png pairs with gt/<split>/N.png, and test_patches/input/X.png with test_patches/gt/X.png. Because the names match, ClearView's generic ImagePairDataset reads both layouts directly.
Usage with π€ Datasets
from datasets import load_dataset
ds = load_dataset("dronefreak/LHP-Rain", split="train")
row = ds[0]
row["rainy"], row["clean"] # PIL images
row["width"], row["height"] # e.g. 1920, 1080
patches = load_dataset("dronefreak/LHP-Rain", "test_patches", split="test")
The full-size images are large (up to 4K PNG, about 15 GB for the full-size set), so consider streaming=True or downloading only the split you need.
Usage with ClearView
This dataset is designed to be used directly with ClearView, an open-source PyTorch framework for image restoration.
from huggingface_hub import snapshot_download
from clearview.data import ImagePairDataset, get_train_transforms, get_val_transforms
data_dir = snapshot_download(
repo_id="dronefreak/LHP-Rain",
repo_type="dataset",
allow_patterns=["input/train/*", "gt/train/*", "input/val/*", "gt/val/*"],
)
train_ds = ImagePairDataset(
rainy_dir=f"{data_dir}/input/train",
clean_dir=f"{data_dir}/gt/train",
transform=get_train_transforms(crop_size=(256, 256)),
)
val_ds = ImagePairDataset(
rainy_dir=f"{data_dir}/input/val",
clean_dir=f"{data_dir}/gt/val",
transform=get_val_transforms(),
)
rainy, clean = train_ds[0]
Note: ImagePairDataset pairs files by name, so it also picks up the 8 training pairs whose clean image is upside down (see Changes). Delete or fix those 8 clean files in your local copy before training.
Dataset Sources
Original Paper
From Sky to the Ground: A Large-scale Benchmark and Simple Baseline Towards Real Rain Removal
Yun Guo, Xueyao Xiao, Yi Chang, Shumin Deng, Luxin Yan
IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 12097-12107.
- ICCV Open Access: https://openaccess.thecvf.com/content/ICCV2023/html/Guo_From_Sky_to_the_Ground_A_Large-scale_Benchmark_and_Simple_ICCV_2023_paper.html
- arXiv: https://arxiv.org/abs/2308.03867
Official Resources
- Project page and dataset links: https://yunguo224.github.io/LHP-Rain.github.io/
- Code (SCD-Former): https://github.com/yunguo224/LHP-Rain
Attribution
All credit for the dataset belongs entirely to the original authors: Yun Guo, Xueyao Xiao, Yi Chang, Shumin Deng, and Luxin Yan.
If you use this dataset in your research, please cite the original publication below.
License
No formal license was located for this dataset, see the Disclaimer above for our reasoning for mirroring it anyway under that uncertainty (full attribution, reproducibility purpose, removable on request). This repository makes no claim to any rights over the dataset content beyond hosting a copy.
Citation
If you use this dataset, please cite:
@InProceedings{Guo_2023_ICCV,
author = {Guo, Yun and Xiao, Xueyao and Chang, Yi and Deng, Shumin and Yan, Luxin},
title = {From Sky to the Ground: A Large-scale Benchmark and Simple Baseline Towards Real Rain Removal},
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
month = {October},
year = {2023},
pages = {12097-12107}
}
Acknowledgements
We sincerely thank Yun Guo, Xueyao Xiao, Yi Chang, Shumin Deng, and Luxin Yan for recording and publicly releasing a large paired benchmark of real rain, with ground truth recovered from the same scenes rather than synthesised.
- Downloads last month
- 683