yscript commited on
Commit
6c93375
·
verified ·
1 Parent(s): 45fe412

Introduce RawMoment paper datasets and link the code repository

Browse files
README.md CHANGED
@@ -1,24 +1,55 @@
1
  ---
 
2
  license: other
3
  license_name: dataset-specific-terms
4
  license_link: https://huggingface.co/datasets/yscript/RawMoment/blob/main/DATA_TERMS.md
5
  task_categories:
6
  - image-to-image
7
  tags:
 
8
  - raw-image-restoration
9
  - motion-deblurring
10
  ---
11
- # RawMoment data release
12
 
13
- This release contains two separately documented datasets:
14
 
15
- * `rawmoment_data/`: the synthetic RawMoment training/validation data and the 200-pair RawMoment-Bench test set.
16
- * `realblur_processed_data/`: our processed derivative of RealBlur, with 3,758 official training pairs and 980 official test pairs.
17
 
18
- Dataset downloads require manual access approval. Sign in to Hugging Face and request access. The two datasets retain their respective upstream terms; see DATA_TERMS.md and the notices inside each dataset directory.
19
 
20
- Each dataset is organized by split and image modality. Approximately 2 GiB tar shards sit inside the corresponding modality directories. Extract archives from the release root; member names already include the dataset, split and modality. Do not flatten or rename the directories.
 
 
 
21
 
22
- Run `python -B verify_release.py --full` after downloading the complete release. Verification reads archives directly and does not extract images or create temporary files. SHA256SUMS and files.jsonl record archive and individual image checksums. dataset.json and validation.json describe the final verified contents.
23
 
24
- No Honor data are included. Prepared image bytes and original split assignments are preserved.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: "RawMoment: Recovering the Sharp Moment via Generative RAW-to-RGB Deblurring"
3
  license: other
4
  license_name: dataset-specific-terms
5
  license_link: https://huggingface.co/datasets/yscript/RawMoment/blob/main/DATA_TERMS.md
6
  task_categories:
7
  - image-to-image
8
  tags:
9
+ - rawmoment
10
  - raw-image-restoration
11
  - motion-deblurring
12
  ---
13
+ # RawMoment: Recovering the Sharp Moment via Generative RAW-to-RGB Deblurring
14
 
15
+ Training and evaluation datasets accompanying the paper.
16
 
17
+ **Code:** [script-Yang/rawmoment](https://github.com/script-Yang/rawmoment)
 
18
 
19
+ ## Datasets
20
 
21
+ | Dataset | Train | Val | Test | Evaluation size |
22
+ | --- | ---: | ---: | ---: | --- |
23
+ | RawMoment | 29,634 | 366 | 200 (RawMoment-Bench) | 512 × 512 / 1024 × 1024 |
24
+ | RealBlur, processed for RawMoment | 3,758 | — | 980 | 512 × 512 |
25
 
26
+ RawMoment images are 1024 × 1024. RealBlur images retain their processed resolution; evaluation uses the 512 × 512 crops recorded in the manifests.
27
 
28
+ ## Layout
29
+
30
+ ```text
31
+ rawmoment_data/
32
+ train/ # blur_raw, blur_rgb, clean_raw, clean_rgb
33
+ val/ # blur_raw, blur_rgb, clean_raw, clean_rgb
34
+ test/ # RawMoment-Bench: blur_raw, blur_rgb, clean_rgb
35
+ realblur_processed_data/
36
+ train/ # blur_raw, blur_rgb, clean_rgb, valid_mask
37
+ test/ # blur_raw, blur_rgb, clean_rgb, valid_mask
38
+ ```
39
+
40
+ Images are stored as tar archives in each modality directory, about 227 GB in total. See [RawMoment](rawmoment_data/README.md) and [processed RealBlur](realblur_processed_data/README.md) for image formats and manifests.
41
+
42
+ ## Download
43
+
44
+ Downloads require manual approval. Request access on this page, then sign in with your approved account:
45
+
46
+ ```bash
47
+ hf auth login
48
+ hf download yscript/RawMoment --repo-type dataset --local-dir RawMoment
49
+ cd RawMoment
50
+ find rawmoment_data realblur_processed_data -name '*.tar' -exec tar -xf {} \;
51
+ ```
52
+
53
+ ## Data terms
54
+
55
+ See [DATA_TERMS.md](DATA_TERMS.md) for RawMoment source data terms. Processed RealBlur follows the original dataset's CC BY 4.0 license; attribution and preprocessing are documented [here](realblur_processed_data/README.md).
SHA256SUMS CHANGED
@@ -1,10 +1,10 @@
1
  a5fb6342bc4b2c6fe62e47e466478afe1fc19c5e8a8ca56fecc7544d07910465 DATA_TERMS.md
2
- ea13ed3b2a398dbbd54b0c63942bfdaafb5e982d63dce0b9c72b835f1414ec32 README.md
3
  0dd254926425c08f6e492dc05b8f0e9dcaded5c5edaa336cfa55db7446d91e4c archives.json
4
  ec560c21706938d1886f3faecb3f59b3b5689670927370135b08fd676b076f53 dataset.json
5
  84ded8ec21089f717364dd3aca7a06c17b1b16be6e5e8354d99b00f40807f60a files.jsonl
6
  f6e915dc4769d6f61475fbc44dde61c414df0351d3ebb38ebb8d4d449d16c56f rawmoment_data/DATA_TERMS.md
7
- e2286d42a447ef783c40ead7e48d2a7268f57091e824d780a5237508b9da35ec rawmoment_data/README.md
8
  d5f1316d992819b47b209d9cea2000387873f058888111abe5851ef66c620229 rawmoment_data/provenance.jsonl
9
  f03a392da0db843695b1f71f559b0ee5ffc1a09e2a7b925f3789f5f7bf24d45c rawmoment_data/test/blur_raw/part-00000.tar
10
  33926c3f652029b6016c32e38a33a9a1e1d7ca97e259160b8481bfc9308118a2 rawmoment_data/test/blur_rgb/part-00000.tar
@@ -116,7 +116,7 @@ e061e8f9843beeb7ffd5a4c1ec46d483ae861f7063aa31ca75c7f65a1bcdc0b8 rawmoment_data
116
  06319f9f3cd4fece4c2c335abeb6b5c734a84684a23368c1445b0a83a990e232 rawmoment_data/val/stage2.jsonl
117
  5f572046d29b96f8e1ce354388ef68a7d73e8fb009c22752ba0c98fbbd206c41 realblur_processed_data/LICENSE.txt
118
  3285bcdbd2e670b3f5404d8cc00d82d7a7de704f1d015770926886647ec18e9d realblur_processed_data/PREPROCESSING.md
119
- 2ab6d1ec2993183ee83a4eef661f28d7dd602e49336bac3604b961d41185ddc3 realblur_processed_data/README.md
120
  1bba08b76156a440eb5e5edb889841863f521162575b959a854a9394e8d556ea realblur_processed_data/test/blur_raw/part-00000.tar
121
  7ff4d05eb644c9f35403e6f51ebcc65c24137db214d479cbac3a27e6f9d611c6 realblur_processed_data/test/blur_rgb/part-00000.tar
122
  3145314b1a89a72ae7770f9c8a6b04e33aabc60808d5cb1a1b8a619fc842446c realblur_processed_data/test/blur_rgb/part-00001.tar
 
1
  a5fb6342bc4b2c6fe62e47e466478afe1fc19c5e8a8ca56fecc7544d07910465 DATA_TERMS.md
2
+ 4e25944465ebb7f8435f57c3f466531a2b47ecd8f396332c9fb754de672f96d6 README.md
3
  0dd254926425c08f6e492dc05b8f0e9dcaded5c5edaa336cfa55db7446d91e4c archives.json
4
  ec560c21706938d1886f3faecb3f59b3b5689670927370135b08fd676b076f53 dataset.json
5
  84ded8ec21089f717364dd3aca7a06c17b1b16be6e5e8354d99b00f40807f60a files.jsonl
6
  f6e915dc4769d6f61475fbc44dde61c414df0351d3ebb38ebb8d4d449d16c56f rawmoment_data/DATA_TERMS.md
7
+ 07d7aebc2813bf45f664a56f34890434fb6f8cbbec2365a7d71711d13e89334a rawmoment_data/README.md
8
  d5f1316d992819b47b209d9cea2000387873f058888111abe5851ef66c620229 rawmoment_data/provenance.jsonl
9
  f03a392da0db843695b1f71f559b0ee5ffc1a09e2a7b925f3789f5f7bf24d45c rawmoment_data/test/blur_raw/part-00000.tar
10
  33926c3f652029b6016c32e38a33a9a1e1d7ca97e259160b8481bfc9308118a2 rawmoment_data/test/blur_rgb/part-00000.tar
 
116
  06319f9f3cd4fece4c2c335abeb6b5c734a84684a23368c1445b0a83a990e232 rawmoment_data/val/stage2.jsonl
117
  5f572046d29b96f8e1ce354388ef68a7d73e8fb009c22752ba0c98fbbd206c41 realblur_processed_data/LICENSE.txt
118
  3285bcdbd2e670b3f5404d8cc00d82d7a7de704f1d015770926886647ec18e9d realblur_processed_data/PREPROCESSING.md
119
+ 532aa18453e435d0ab88051fc95eb4ec55c03dbcf456c9c9fa0e400cd3a1c0e5 realblur_processed_data/README.md
120
  1bba08b76156a440eb5e5edb889841863f521162575b959a854a9394e8d556ea realblur_processed_data/test/blur_raw/part-00000.tar
121
  7ff4d05eb644c9f35403e6f51ebcc65c24137db214d479cbac3a27e6f9d611c6 realblur_processed_data/test/blur_rgb/part-00000.tar
122
  3145314b1a89a72ae7770f9c8a6b04e33aabc60808d5cb1a1b8a619fc842446c realblur_processed_data/test/blur_rgb/part-00001.tar
rawmoment_data/README.md CHANGED
@@ -1,15 +1,23 @@
1
  # RawMoment data
2
 
3
- There are 29,634 training records, 366 validation records and 200 RawMoment-Bench test records. Source-video groups are disjoint across splits. The training and validation directories each contain `blur_raw/`, `blur_rgb/`, `clean_raw/` and `clean_rgb/`; the test directory contains `blur_raw/`, `blur_rgb/` and `clean_rgb/`.
4
 
5
- Each modality directory contains image tar shards. The PNG bytes are unchanged from the prepared dataset: native 1024x1024 RGB PNG16. RAW images are sparse three-channel RGGB, with normalized black level 1/16 and white level 1. Images already include simulated noise and white balance.
6
 
7
- Stage1 uses train/stage1.jsonl or val/stage1.jsonl and all four modalities. Stage2 uses train/stage2.jsonl or val/stage2.jsonl: blurred RAW and clean RGB, plus noise_iso, noise_a, noise_b and wb_gain. BLUR_RGB is used by Stage1 and is not read by Stage2. Shared PNGs are stored once per split and modality.
8
 
9
- RawMoment-Bench uses test/manifest.jsonl. The same native images support the established 512 crop protocol and native 1024 inference. Manifests reference image paths relative to their own directories. Preserve sample IDs, which also determine inference seeds.
10
 
11
- See DATA_TERMS.md for upstream terms and provenance.jsonl for source-video and degradation provenance.
12
 
13
- ## Use with the RawMoment code
 
 
 
 
14
 
15
- Set `data.manifest` to `rawmoment_data/train/stage1.jsonl` or `rawmoment_data/train/stage2.jsonl`, relative to the release root. Validation manifests are under `rawmoment_data/val/`. For benchmark inference use `rawmoment_data/test/manifest.jsonl`; the code supports sizes 512 and 1024. Keep all image paths relative to their manifests after extraction.
 
 
 
 
 
1
  # RawMoment data
2
 
3
+ The split contains 29,634 training samples, 366 validation samples and 200 test samples (RawMoment-Bench). Source videos are disjoint across splits.
4
 
5
+ ## Image format
6
 
7
+ All images are 1024 × 1024, stored as three-channel PNG16. RAW is a sparse RGGB mosaic with normalized black level 1/16 and white level 1. Simulated noise and white balance are already included.
8
 
9
+ Train and val contain `blur_raw`, `blur_rgb`, `clean_raw` and `clean_rgb`. Test contains `blur_raw`, `blur_rgb` and `clean_rgb`.
10
 
11
+ ## Manifests
12
 
13
+ | Use | Manifest | Images |
14
+ | --- | --- | --- |
15
+ | Stage 1 | `train/stage1.jsonl`, `val/stage1.jsonl` | All four modalities |
16
+ | Stage 2 | `train/stage2.jsonl`, `val/stage2.jsonl` | Blurred RAW and clean RGB |
17
+ | RawMoment-Bench | `test/manifest.jsonl` | Blurred RAW, blurred RGB and clean RGB |
18
 
19
+ Paths are relative to each manifest. Stage 2 records also provide `noise_iso`, `noise_a`, `noise_b` and `wb_gain`. Sample IDs determine inference seeds.
20
+
21
+ The [training and inference code](https://github.com/script-Yang/rawmoment) accepts these manifests through `data.manifest`. RawMoment-Bench supports 512 × 512 crops and native 1024 × 1024 inference.
22
+
23
+ Source data terms are in [DATA_TERMS.md](DATA_TERMS.md). Video sources and degradation settings are listed in `provenance.jsonl`.
realblur_processed_data/README.md CHANGED
@@ -1,20 +1,28 @@
1
  # RealBlur processed for RawMoment
2
 
3
- This is our processed derivative of RealBlur, prepared for RAW-to-RGB training and evaluation. The official split is preserved: 3,758 training pairs from 182 scenes and 980 test pairs from 50 disjoint scenes.
4
 
5
- Original dataset: Jaesung Rim, Haeyun Lee, Jucheol Won and Sunghyun Cho, *Real-World Blur Dataset for Learning and Benchmarking Deblurring Algorithms*, ECCV 2020. Official source and dataset license: https://github.com/rimchang/RealBlur . The RealBlur dataset is licensed CC BY 4.0. This derivative retains attribution and marks our modifications explicitly.
6
 
7
- Each split has a portable manifest.jsonl and four modality directories:
8
 
9
- * blur_raw: Sony RGGB mosaic in uint16 storage of 14-bit DN, black 512, white 16383.
10
- * clean_rgb: registered clean RGB targets in PNG16.
11
- * blur_rgb: a fixed ISP rendering for inspection.
12
- * valid_mask: uint8 masks for geometrically valid target regions.
13
 
14
- Images retain the prepared full resolution, typically 744x648 (height x width). The manifests record fully valid 512x512 crop origins aligned to multiples of 16; evaluation uses eval_crop_yxhw. No native 1024 inference protocol is provided for these images.
15
 
16
- Our processing includes same-colour bin4 RAW preparation, mapping the official clean target to the unchanged RAW coordinate system, gain and display transfer for the clean RGB target, and valid-region/crop metadata. RAW inputs are not geometrically warped, denoised, gamma corrected or white-balanced in storage. The clean target is not used to estimate input geometry or fit predictions.
 
 
 
 
 
17
 
18
- At load time normalize RAW as (DN-512)/(16383-512), preserving negative values below black, and apply the recorded white balance once. Saved blur_noise_ab already includes the bin4 variance factor 1/16; do not divide it again. The clean target is BT709_OETF(clip(4 * registered_official_GT_linear, 0, 1)). See PREPROCESSING.md for the normalization and evaluation contract.
19
 
20
- Manifests contain portable fields only. Native ARW files, internal paths, logs and per-sample private processing records are not included.
 
 
 
 
 
 
 
1
  # RealBlur processed for RawMoment
2
 
3
+ RealBlur data used for training and evaluation in *RawMoment: Recovering the Sharp Moment via Generative RAW-to-RGB Deblurring*.
4
 
5
+ **Code:** [script-Yang/rawmoment](https://github.com/script-Yang/rawmoment)
6
 
7
+ The official split is retained: 3,758 training pairs from 182 scenes and 980 test pairs from 50 separate scenes.
8
 
9
+ ## Format and evaluation
 
 
 
10
 
11
+ Each split contains `manifest.jsonl` and four image directories:
12
 
13
+ | Directory | Content |
14
+ | --- | --- |
15
+ | `blur_raw` | Sony RGGB mosaic, 14-bit DN stored in uint16 |
16
+ | `blur_rgb` | Fixed ISP rendering of the input |
17
+ | `clean_rgb` | Registered clean RGB target, PNG16 |
18
+ | `valid_mask` | Valid target regions, uint8 |
19
 
20
+ Processed images are typically 744 × 648 (height × width). Evaluation uses the valid 512 × 512 crop in `eval_crop_yxhw`. Training crop origins are listed in `valid_crop_origins_512`, on a 16-pixel grid.
21
 
22
+ Normalize RAW as `(DN - 512) / (16383 - 512)`, including negative values below black, and apply the recorded white balance once. `blur_noise_ab` already includes the bin4 variance factor of 1/16. See [PREPROCESSING.md](PREPROCESSING.md) for registration, target transfer and normalization details.
23
+
24
+ ## Source and license
25
+
26
+ Jaesung Rim, Haeyun Lee, Jucheol Won and Sunghyun Cho. *Real-World Blur Dataset for Learning and Benchmarking Deblurring Algorithms*. ECCV 2020.
27
+
28
+ [Original RealBlur dataset](https://github.com/rimchang/RealBlur) · [CC BY 4.0](LICENSE.txt)