yscript commited on
Commit
2f43fe3
·
verified ·
1 Parent(s): c2aa82e

Add RawMoment private preview metadata and images

Browse files
DATA_TERMS.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Data provenance and upstream terms
2
+
3
+ RawMoment images are processed derivatives of videos in OpenVid-1M. Credit the RawMoment paper and the OpenVid-1M authors when using these data. Processing changes include frame-derived sharp/motion-blur pairs, crop selection, gamma low-light simulation, white-balance/noise simulation and Bayer sampling. No original Honor captures or RealBlur images are included in this release.
4
+
5
+ Source references, checked 2026-11-21:
6
+
7
+ - [OpenVid-1M dataset card and License section](https://huggingface.co/datasets/nkp37/OpenVid-1M#license)
8
+ - [OpenVid-1M project](https://github.com/NJU-PCALab/OpenVid-1M)
9
+ - [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/)
10
+
11
+ The OpenVid-1M card displays CC BY 4.0, describes the intended use as research/non-commercial, and directs users to the terms of its upstream datasets, including Panda, ChronoMagic, Open-Sora-Plan and CelebV-HQ. This package preserves that provenance and does not grant broader rights to the underlying videos. The group identifiers in `provenance.jsonl` preserve the source-video grouping used for the split; they are not a per-video legal-clearance record.
12
+
13
+ The Apache-2.0 license in the RawMoment code repository applies to the code. It does not replace upstream dataset or video terms. A dataset hosting license label should preserve this distinction rather than treating all included images as Apache-2.0 material.
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: RawMoment (private preview)
3
+ language:
4
+ - en
5
+ tags:
6
+ - image-to-image
7
+ - raw
8
+ - deblurring
9
+ size_categories:
10
+ - n<1K
11
+ ---
12
+ # RawMoment: private data preview
13
+
14
+ Prepared examples for *RawMoment: Recovering the Sharp Moment via Generative RAW-to-RGB Deblurring*.
15
+
16
+ This preview contains **3 training variants, 1 validation record and 3 RawMoment-Bench test records**: 21 unique PNG16 images, all native **1024 × 1024**. The training variants share one source pair. PNG bytes, test IDs, noise/white-balance metadata and source-video splits match the complete prepared release.
17
+
18
+ The complete release is planned to use the same layout with 29,634 training records, 366 validation records and 200 test records. This repository currently provides the small preview only.
19
+
20
+ ## View an example
21
+
22
+ These are the original PNG16 files from one test record. BLUR_RGB is the blurred RGB reference; the network input is sparse RGGB RAW.
23
+
24
+ | Blurred RGB | Sharp RGB target | Sparse RAW input |
25
+ |---|---|---|
26
+ | ![Blurred RGB](previews/bench_blur.png) | ![Sharp RGB](previews/bench_target.png) | ![Sparse RAW](previews/bench_raw.png) |
27
+
28
+ ## Files
29
+
30
+ ```text
31
+ train/stage1.jsonl Clean/blur RAW and RGB; train + val splits
32
+ train/stage2.jsonl Blur RAW, sharp RGB and physical conditions
33
+ test/manifest.jsonl RawMoment-Bench test records
34
+ archives/test-00000.tar
35
+ archives/train-common-00000.tar
36
+ archives/train-clean-raw-00000.tar
37
+ files.jsonl Per-image SHA-256, size and containing archive
38
+ archives.json Per-archive SHA-256, size and image count
39
+ provenance.jsonl Source groups, crops and degradation parameters
40
+ dataset.json Preview counts and dimensions
41
+ statistics.json
42
+ validation.json
43
+ SHA256SUMS
44
+ verify_release.py
45
+ DATA_TERMS.md
46
+ ```
47
+
48
+ Stage1 and Stage2 share their common PNG files. Stage2 needs `train-common`; Stage1 additionally needs `train-clean-raw`. Test data are stored separately.
49
+
50
+ ## Extract and verify
51
+
52
+ Download this repository with the Hugging Face CLI, then run from the downloaded directory:
53
+
54
+ ```bash
55
+ python -B verify_release.py --full
56
+ for shard in archives/*.tar; do tar -xf "$shard"; done
57
+ ```
58
+
59
+ The images extract to `train/images/` and `test/images/`, beside the corresponding manifests. Manifest paths are relative. All archive and metadata SHA-256 values are checked; the verifier also checks split separation and samples a PNG from every archive. Individual image checksums are available in `files.jsonl`.
60
+
61
+ ## Use with RawMoment code
62
+
63
+ Place the extracted directory at `data/rawmoment/` in the code repository. Stage1 uses `train/stage1.jsonl`; Stage2 uses `train/stage2.jsonl`. The same prepared images support 512 crops and full 1024 inputs.
64
+
65
+ ```bash
66
+ rawmoment-infer --config configs/stage2_512.yaml --dataset rawmoment_bench \
67
+ --manifest data/rawmoment/test/manifest.jsonl --size 512 --output outputs/preview_512
68
+ rawmoment-infer --config configs/stage2_1024.yaml --dataset rawmoment_bench \
69
+ --manifest data/rawmoment/test/manifest.jsonl --size 1024 --output outputs/preview_1024
70
+ ```
71
+
72
+ For test images, 512 reads the center `[256:768, 256:768]` region and 1024 reads the whole image. Images already contain the simulated degradation, noise and white balance. RAW is sparse RGB RGGB with normalized black level 1/16 and white level 1; use the code's existing input normalization.
73
+
74
+ ## Source and terms
75
+
76
+ The source videos come from [OpenVid-1M](https://huggingface.co/datasets/nkp37/OpenVid-1M). RawMoment adds the paired motion-blur/sharp construction, crop selection, low-light and sensor simulation. See [DATA_TERMS.md](DATA_TERMS.md) for upstream attribution and terms. Code and dataset licensing are separate.
SHA256SUMS ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ f6e915dc4769d6f61475fbc44dde61c414df0351d3ebb38ebb8d4d449d16c56f DATA_TERMS.md
2
+ 1344196608f7064b5281e5c0d9bd0da5441673c44ff232911d32076f4b48f951 README.md
3
+ 3ec725ca1900792f5e7ca3528a7b1c6bb9b0b8a091ae75754c638606c1873f47 archives/test-00000.tar
4
+ 53a30c359ff2449de64c7271c1e0a106c2f71eb64d79dfb4379fadc8b84ba4cd archives/train-clean-raw-00000.tar
5
+ c80287a9ed5a4a456f8382919c7596ffbd717c6d3bc604ff88194f3bedaf0597 archives/train-common-00000.tar
6
+ 012e5a70c3e6b85d2bbd45ca7d8339eb88b01a74b7529fff55e64a4f28755a10 archives.json
7
+ 2e3e9fa57354d37afded171aae367f30e5176293ca088c8192219885ca89ec4d dataset.json
8
+ 2b944661a7b51b37ca7e875c8e432c933f9fce0976c084969ecec6e2669b9a75 files.jsonl
9
+ a727d30752e76e27425473970fee3bfaab59689563367477641b6cd3dbff1c6b previews/bench_blur.png
10
+ bd9252d6ec65dfd0583c6b71c93cb74ed1a7b955dc485556dd51add83cd11b2c previews/bench_raw.png
11
+ 1cdcde496fbf035a8b3c7663d8e357211b4b9a577d066ab3ff1756f426646a27 previews/bench_target.png
12
+ 46687fd1517315c7b2352cda295c6bb5c317f4b355a90f86b37ec2779dbcd92a provenance.jsonl
13
+ 23f8d31c79154a9c339d5efa09e9d537a4bbfe48166127b123e7da9c4aaa1669 statistics.json
14
+ fb20d597c34ebc4a4cff96c6c62dc966cb5d5214383f5af38b3ee18c879dd2be test/manifest.jsonl
15
+ f58d525c05fea119b1253a45e0273336589e8daab7152f97d72b2c9ba5b71097 train/stage1.jsonl
16
+ a4d54493563cb70482af16286dc3ba805cce996f9e327108e6a06a6362c3347c train/stage2.jsonl
17
+ 5e4f5ff39051412fe3c76e405c3d52e8db7b98ca687290f317c44e2347bd909d validation.json
18
+ a96047f376251a752a4ae5e79097ef19355923a2d24763a4cceb562dc8a94d8f verify_release.py
archives.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "archives/test-00000.tar",
4
+ "bytes": 15001600,
5
+ "sha256": "3ec725ca1900792f5e7ca3528a7b1c6bb9b0b8a091ae75754c638606c1873f47",
6
+ "images": 9
7
+ },
8
+ {
9
+ "path": "archives/train-common-00000.tar",
10
+ "bytes": 17459200,
11
+ "sha256": "c80287a9ed5a4a456f8382919c7596ffbd717c6d3bc604ff88194f3bedaf0597",
12
+ "images": 8
13
+ },
14
+ {
15
+ "path": "archives/train-clean-raw-00000.tar",
16
+ "bytes": 12257280,
17
+ "sha256": "53a30c359ff2449de64c7271c1e0a106c2f71eb64d79dfb4379fadc8b84ba4cd",
18
+ "images": 4
19
+ }
20
+ ]
dataset.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "RawMoment",
3
+ "format_version": 1,
4
+ "complete": true,
5
+ "release_scope": "private_preview",
6
+ "full_release": false,
7
+ "records": {
8
+ "train": {
9
+ "train": 3,
10
+ "val": 1
11
+ },
12
+ "test": 3
13
+ },
14
+ "video_groups": {
15
+ "train": 1,
16
+ "val": 1,
17
+ "test": 3
18
+ },
19
+ "video_group_overlap": 0,
20
+ "unique_images": 21,
21
+ "image_bytes": 44681406,
22
+ "image_size": [
23
+ 1024,
24
+ 1024
25
+ ],
26
+ "image_dtype": "uint16",
27
+ "png_color_type": 2,
28
+ "stage1_stage2_shared_modalities_verified": true,
29
+ "archives": 3,
30
+ "archive_bytes": 44718080
31
+ }
files.jsonl ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"path":"test/images/RAW/006ca91f7901a5bc2e4982e4__crop00_y28_x448__v00.png","sha256":"bd9252d6ec65dfd0583c6b71c93cb74ed1a7b955dc485556dd51add83cd11b2c","bytes":3079450,"archive":"archives/test-00000.tar"}
2
+ {"path":"test/images/RGB/006ca91f7901a5bc2e4982e4__crop00_y28_x448__v00.png","sha256":"1cdcde496fbf035a8b3c7663d8e357211b4b9a577d066ab3ff1756f426646a27","bytes":606586,"archive":"archives/test-00000.tar"}
3
+ {"path":"test/images/BLUR_RGB/006ca91f7901a5bc2e4982e4__crop00_y28_x448__v00.png","sha256":"a727d30752e76e27425473970fee3bfaab59689563367477641b6cd3dbff1c6b","bytes":651844,"archive":"archives/test-00000.tar"}
4
+ {"path":"test/images/RAW/008bb39dce38ab5177c66432__crop00_y28_x448__v00.png","sha256":"350b8c2ea1edd5273792c8ef96e6b234aa8f8c10b7675e1a14fc9aba675dcbbc","bytes":3048392,"archive":"archives/test-00000.tar"}
5
+ {"path":"test/images/RGB/008bb39dce38ab5177c66432__crop00_y28_x448__v00.png","sha256":"3f9c79e224c9a1ae1bb597c647e4a2bebfa29f174add83120a090d65ed936044","bytes":1104336,"archive":"archives/test-00000.tar"}
6
+ {"path":"test/images/BLUR_RGB/008bb39dce38ab5177c66432__crop00_y28_x448__v00.png","sha256":"5ee03a44da299d99e77d5113ef4dfcbc58161ec16229ddd4c6873a0c8d30ce9f","bytes":1216943,"archive":"archives/test-00000.tar"}
7
+ {"path":"test/images/RAW/0351e011602c9955defae800__crop00_y28_x448__v00.png","sha256":"c36b5cfe99bf00451fd4387159870efa03b695f3ea02d8aa115fd2d9eb91e571","bytes":3038419,"archive":"archives/test-00000.tar"}
8
+ {"path":"test/images/RGB/0351e011602c9955defae800__crop00_y28_x448__v00.png","sha256":"944b222203688c7295cc6c9b6b275ed4e949629d18e3e296b6ffada7a2b224a7","bytes":1105538,"archive":"archives/test-00000.tar"}
9
+ {"path":"test/images/BLUR_RGB/0351e011602c9955defae800__crop00_y28_x448__v00.png","sha256":"81ca8b8d6f03fc5d8a72c31e23b21ede603f6c8ab74dc4455e0e1ac08b7016fe","bytes":1133409,"archive":"archives/test-00000.tar"}
10
+ {"path":"train/images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","sha256":"18b30870b64741d95553136256eb46cd63dde462b7082f9d5d1084eb6f32408b","bytes":3024560,"archive":"archives/train-common-00000.tar"}
11
+ {"path":"train/images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","sha256":"77873014134a3765c4b5ce1613656c2c6cb8be6dcde8a42fe165784cfa855927","bytes":1221773,"archive":"archives/train-common-00000.tar"}
12
+ {"path":"train/images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","sha256":"4c15d1e9356dc3bdf4a520b131835c70f5f64fe08d09cbae40d65ab6d27b38d7","bytes":1235295,"archive":"archives/train-common-00000.tar"}
13
+ {"path":"train/images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01.png","sha256":"2a8538348a3e72f29f233239542ee6fa09c460c40694c69f550f766ae168f345","bytes":3030259,"archive":"archives/train-common-00000.tar"}
14
+ {"path":"train/images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02.png","sha256":"65e10c69ee8d9bf8b3af56761e106be9a6e519592dd17af449f3b7e020e449f4","bytes":3030170,"archive":"archives/train-common-00000.tar"}
15
+ {"path":"train/images/BLUR_RAW/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","sha256":"b6da007e154d465aee9c9142849e641e11cdaad4e4589502280b9468630bbd9a","bytes":3090303,"archive":"archives/train-common-00000.tar"}
16
+ {"path":"train/images/CLEAN_RGB/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","sha256":"2964d2d33fce603c089047bb0136024661ff84e4f3402afbd6aeba03fccb98d7","bytes":1425491,"archive":"archives/train-common-00000.tar"}
17
+ {"path":"train/images/BLUR_RGB/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","sha256":"0d398c73b3ad6a9999abafc92d145edbde0dddf631e192f4db85f49a9fd9a88f","bytes":1393718,"archive":"archives/train-common-00000.tar"}
18
+ {"path":"train/images/CLEAN_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","sha256":"4b9950e2fa5a1e4e6fe048ca8725f5db0e5af205fdb3de2cfc5e31a8c59f466a","bytes":3037281,"archive":"archives/train-clean-raw-00000.tar"}
19
+ {"path":"train/images/CLEAN_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01.png","sha256":"c557a161cd87835aec2610c93e155ae22dc04832a30df1e80d5d9fd1fb46af59","bytes":3048539,"archive":"archives/train-clean-raw-00000.tar"}
20
+ {"path":"train/images/CLEAN_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02.png","sha256":"64d56eb419eb1fece70ffb970a9bbe863027a07d0a1bb6b6b23dbf587bfc8aa2","bytes":3048159,"archive":"archives/train-clean-raw-00000.tar"}
21
+ {"path":"train/images/CLEAN_RAW/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","sha256":"ec04616d96ac620322383592be703fdaddfd7825cb6bd09cd4bf421d0d47edc6","bytes":3110941,"archive":"archives/train-clean-raw-00000.tar"}
previews/bench_blur.png ADDED

Git LFS Details

  • SHA256: a727d30752e76e27425473970fee3bfaab59689563367477641b6cd3dbff1c6b
  • Pointer size: 131 Bytes
  • Size of remote file: 652 kB
previews/bench_raw.png ADDED

Git LFS Details

  • SHA256: bd9252d6ec65dfd0583c6b71c93cb74ed1a7b955dc485556dd51add83cd11b2c
  • Pointer size: 132 Bytes
  • Size of remote file: 3.08 MB
previews/bench_target.png ADDED

Git LFS Details

  • SHA256: 1cdcde496fbf035a8b3c7663d8e357211b4b9a577d066ab3ff1756f426646a27
  • Pointer size: 131 Bytes
  • Size of remote file: 607 kB
provenance.jsonl ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00","split":"train","group":"openvid:JtOqhTRhPvg","source_pair_id":"002f213e1885e54adb88f400","category":"animals","crop_y":28,"crop_x":448,"variant_index":0,"noise_seed":2985383235,"noise_iso":12800,"noise_a":0.004149830274509804,"noise_b":2.001060183006536e-05,"wb_gain":[0.5172199010848999,1.0,0.5593578815460205],"source_gt_sha256":"8eb6a5962a29bfababe827767220fbf7257629c1a4796a710716a6d49c32941e","source_blur_pixel_sha256":"cc408c7cddcbfae001af6698d8efc1f13d8806972cfe5f7354aa3d1a1f254d45"}
2
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01","split":"train","group":"openvid:JtOqhTRhPvg","source_pair_id":"002f213e1885e54adb88f400","category":"animals","crop_y":28,"crop_x":448,"variant_index":1,"noise_seed":3980714829,"noise_iso":3200,"noise_a":0.001037457568627451,"noise_b":2.882024186082276e-06,"wb_gain":[0.4535885453224182,1.0,0.5690091252326965],"source_gt_sha256":"8eb6a5962a29bfababe827767220fbf7257629c1a4796a710716a6d49c32941e","source_blur_pixel_sha256":"cc408c7cddcbfae001af6698d8efc1f13d8806972cfe5f7354aa3d1a1f254d45"}
3
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02","split":"train","group":"openvid:JtOqhTRhPvg","source_pair_id":"002f213e1885e54adb88f400","category":"animals","crop_y":28,"crop_x":448,"variant_index":2,"noise_seed":3139589146,"noise_iso":3200,"noise_a":0.001037457568627451,"noise_b":2.882024186082276e-06,"wb_gain":[0.4606301188468933,1.0,0.548524022102356],"source_gt_sha256":"8eb6a5962a29bfababe827767220fbf7257629c1a4796a710716a6d49c32941e","source_blur_pixel_sha256":"cc408c7cddcbfae001af6698d8efc1f13d8806972cfe5f7354aa3d1a1f254d45"}
4
+ {"sample_id":"animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00","split":"val","group":"openvid:Ck6G3E8kiYg","source_pair_id":"15cca7833d793306745d1d04","category":"animals","crop_y":28,"crop_x":448,"variant_index":0,"noise_seed":3276072529,"noise_iso":100,"noise_a":3.2420549019607843e-05,"noise_b":5.508943898500577e-07,"wb_gain":[0.5030990242958069,1.0,0.5735304355621338],"source_gt_sha256":"aa30d2966a20f85941ed85c622ee67b778d2eec983dbdedc4e7f6f839f28b925","source_blur_pixel_sha256":"ecd6cd73976039ac15745090e4b85c5713f2bf3fa1235164e32580d6c7299dd0"}
5
+ {"sample_id":"006ca91f7901a5bc2e4982e4","split":"test","group":"openvid:XhJVCGSMGO0","source_pair_id":"006ca91f7901a5bc2e4982e4","category":"sports_fitness","crop_y":28,"crop_x":448,"variant_index":0,"noise_seed":364718057,"noise_iso":3200,"noise_a":0.001037457568627451,"noise_b":2.882024186082276e-06,"wb_gain":[0.4618176817893982,1.0,0.5425366163253784],"source_gt_sha256":"3355430c92e7f3d6a5f7ffe01f99a599976000fb9612416d0ea4d39e9fdd770e","source_blur_pixel_sha256":"6a75610f856eeed7869d66cd8102a3d3ad752290a8f154d8c575da19ab3c7c92"}
6
+ {"sample_id":"008bb39dce38ab5177c66432","split":"test","group":"openvid:K93PZf7XOL0","source_pair_id":"008bb39dce38ab5177c66432","category":"objects","crop_y":28,"crop_x":448,"variant_index":0,"noise_seed":33848115,"noise_iso":400,"noise_a":0.00012968219607843137,"noise_b":1.9197850841983848e-06,"wb_gain":[0.4637148380279541,1.0,0.5757757425308228],"source_gt_sha256":"89ebe78c9e78cacde4f88d26d6bdb919a22e894a05141fab424d2b840908c6a4","source_blur_pixel_sha256":"118fa46226d13c40bdf6010511f76661cf4865b91c0744baeb33785c332f3090"}
7
+ {"sample_id":"0351e011602c9955defae800","split":"test","group":"openvid:iPxDcHbS1xc","source_pair_id":"0351e011602c9955defae800","category":"sports_fitness","crop_y":28,"crop_x":448,"variant_index":0,"noise_seed":89149891,"noise_iso":100,"noise_a":3.2420549019607843e-05,"noise_b":5.508943898500577e-07,"wb_gain":[0.4875193238258362,1.0,0.5493549108505249],"source_gt_sha256":"50e973afe664b905add5b1c117f3f3654cee74605852942271768fd86b3e0e75","source_blur_pixel_sha256":"b5e6e1dc869c19920cae6f7adcbc454e26ebd723adbddab7066d8d436f6a6252"}
statistics.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "train": {
3
+ "records": 3,
4
+ "video_groups": 1
5
+ },
6
+ "val": {
7
+ "records": 1,
8
+ "video_groups": 1
9
+ },
10
+ "test": {
11
+ "records": 3,
12
+ "video_groups": 3
13
+ }
14
+ }
test/manifest.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {"sample_id":"006ca91f7901a5bc2e4982e4","split":"test","group":"openvid:XhJVCGSMGO0","files":{"RAW":"images/RAW/006ca91f7901a5bc2e4982e4__crop00_y28_x448__v00.png","RGB":"images/RGB/006ca91f7901a5bc2e4982e4__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/006ca91f7901a5bc2e4982e4__crop00_y28_x448__v00.png"},"noise_iso":3200,"noise_a":0.001037457568627451,"noise_b":2.882024186082276e-06,"wb_gain":[0.4618176817893982,1.0,0.5425366163253784]}
2
+ {"sample_id":"008bb39dce38ab5177c66432","split":"test","group":"openvid:K93PZf7XOL0","files":{"RAW":"images/RAW/008bb39dce38ab5177c66432__crop00_y28_x448__v00.png","RGB":"images/RGB/008bb39dce38ab5177c66432__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/008bb39dce38ab5177c66432__crop00_y28_x448__v00.png"},"noise_iso":400,"noise_a":0.00012968219607843137,"noise_b":1.9197850841983848e-06,"wb_gain":[0.4637148380279541,1.0,0.5757757425308228]}
3
+ {"sample_id":"0351e011602c9955defae800","split":"test","group":"openvid:iPxDcHbS1xc","files":{"RAW":"images/RAW/0351e011602c9955defae800__crop00_y28_x448__v00.png","RGB":"images/RGB/0351e011602c9955defae800__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/0351e011602c9955defae800__crop00_y28_x448__v00.png"},"noise_iso":100,"noise_a":3.2420549019607843e-05,"noise_b":5.508943898500577e-07,"wb_gain":[0.4875193238258362,1.0,0.5493549108505249]}
train/stage1.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00","split":"train","group":"openvid:JtOqhTRhPvg","files":{"BLUR_RAW":"images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","CLEAN_RGB":"images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","CLEAN_RAW":"images/CLEAN_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png"}}
2
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01","split":"train","group":"openvid:JtOqhTRhPvg","files":{"BLUR_RAW":"images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01.png","CLEAN_RGB":"images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","CLEAN_RAW":"images/CLEAN_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01.png"}}
3
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02","split":"train","group":"openvid:JtOqhTRhPvg","files":{"BLUR_RAW":"images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02.png","CLEAN_RGB":"images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","CLEAN_RAW":"images/CLEAN_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02.png"}}
4
+ {"sample_id":"animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00","split":"val","group":"openvid:Ck6G3E8kiYg","files":{"BLUR_RAW":"images/BLUR_RAW/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","CLEAN_RGB":"images/CLEAN_RGB/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","CLEAN_RAW":"images/CLEAN_RAW/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png"}}
train/stage2.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00","split":"train","group":"openvid:JtOqhTRhPvg","files":{"RAW":"images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","RGB":"images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png"},"noise_iso":12800,"noise_a":0.004149830274509804,"noise_b":2.001060183006536e-05,"wb_gain":[0.5172199010848999,1.0,0.5593578815460205]}
2
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01","split":"train","group":"openvid:JtOqhTRhPvg","files":{"RAW":"images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v01.png","RGB":"images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png"},"noise_iso":3200,"noise_a":0.001037457568627451,"noise_b":2.882024186082276e-06,"wb_gain":[0.4535885453224182,1.0,0.5690091252326965]}
3
+ {"sample_id":"animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02","split":"train","group":"openvid:JtOqhTRhPvg","files":{"RAW":"images/BLUR_RAW/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v02.png","RGB":"images/CLEAN_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_002f213e1885e54adb88f400_blur__crop00_y28_x448__v00.png"},"noise_iso":3200,"noise_a":0.001037457568627451,"noise_b":2.882024186082276e-06,"wb_gain":[0.4606301188468933,1.0,0.548524022102356]}
4
+ {"sample_id":"animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00","split":"val","group":"openvid:Ck6G3E8kiYg","files":{"RAW":"images/BLUR_RAW/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","RGB":"images/CLEAN_RGB/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png","BLUR_RGB":"images/BLUR_RGB/animals_15cca7833d793306745d1d04_blur__crop00_y28_x448__v00.png"},"noise_iso":100,"noise_a":3.2420549019607843e-05,"noise_b":5.508943898500577e-07,"wb_gain":[0.5030990242958069,1.0,0.5735304355621338]}
validation.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "passed": true,
3
+ "metadata_checksums_passed": 14,
4
+ "archive_scope": "all",
5
+ "full_archive_hashes": true,
6
+ "archives": 3,
7
+ "sampled_images": 3,
8
+ "unique_images": 21,
9
+ "referenced_images": 21,
10
+ "records": {
11
+ "train": {
12
+ "train": 3,
13
+ "val": 1
14
+ },
15
+ "test": 3
16
+ },
17
+ "video_groups": {
18
+ "train": 1,
19
+ "val": 1,
20
+ "test": 3
21
+ },
22
+ "video_group_overlap": 0,
23
+ "all_selected_pngs_source_sha256_matched": true,
24
+ "source_images": 21
25
+ }
verify_release.py ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Verify dataset manifests and one image per archive; --full hashes every archive."""
2
+
3
+ import argparse
4
+ import hashlib
5
+ import json
6
+ import struct
7
+ import tarfile
8
+ from collections import Counter
9
+ from pathlib import Path, PurePosixPath
10
+
11
+
12
+ def rows(path):
13
+ return [json.loads(line) for line in path.read_text().splitlines() if line.strip()]
14
+
15
+
16
+ def verify(root, full=False, subset="all"):
17
+ metadata_checks = 0
18
+ for line in (root / "SHA256SUMS").read_text().splitlines():
19
+ digest, relative = line.split(" ", 1)
20
+ path = PurePosixPath(relative)
21
+ assert not path.is_absolute() and ".." not in path.parts
22
+ if path.suffix != ".tar":
23
+ assert hashlib.sha256((root / relative).read_bytes()).hexdigest() == digest, relative
24
+ metadata_checks += 1
25
+ summary = json.loads((root / "dataset.json").read_text())
26
+ assert summary["complete"]
27
+ files = {entry["path"]: entry for entry in rows(root / "files.jsonl")}
28
+ archives = json.loads((root / "archives.json").read_text())
29
+ first, second, test = [
30
+ rows(root / name)
31
+ for name in ("train/stage1.jsonl", "train/stage2.jsonl", "test/manifest.jsonl")
32
+ ]
33
+ assert dict(Counter(row["split"] for row in first)) == summary["records"]["train"]
34
+ assert len(first) == len(second) and len(test) == summary["records"]["test"]
35
+ assert len(files) == summary["unique_images"]
36
+ assert len(archives) == summary["archives"]
37
+ assert sum(e["bytes"] for e in files.values()) == summary["image_bytes"]
38
+ referenced, groups = set(), {}
39
+ for data_subset, records in (("train", first), ("train", second), ("test", test)):
40
+ assert len({row["sample_id"] for row in records}) == len(records)
41
+ for row in records:
42
+ groups.setdefault(row["split"], set()).add(row["group"])
43
+ for relative in row["files"].values():
44
+ path = PurePosixPath(relative)
45
+ assert not path.is_absolute() and ".." not in path.parts
46
+ public_path = f"{data_subset}/{relative}"
47
+ assert public_path in files
48
+ referenced.add(public_path)
49
+ assert referenced == set(files)
50
+ assert not groups["train"] & groups["val"]
51
+ assert not (groups["train"] | groups["val"]) & groups["test"]
52
+ prefixes = {
53
+ "all": ("archives/",),
54
+ "stage1": ("archives/train-common-", "archives/train-clean-raw-"),
55
+ "stage2": ("archives/train-common-",),
56
+ "test": ("archives/test-",),
57
+ }
58
+ archives = [a for a in archives if a["path"].startswith(prefixes[subset])]
59
+ samples = 0
60
+ for archive in archives:
61
+ path = root / archive["path"]
62
+ assert path.stat().st_size == archive["bytes"]
63
+ if full:
64
+ digest = hashlib.sha256()
65
+ with path.open("rb") as stream:
66
+ for block in iter(lambda: stream.read(1024 * 1024), b""):
67
+ digest.update(block)
68
+ assert digest.hexdigest() == archive["sha256"], path
69
+ with tarfile.open(path) as stream:
70
+ member = stream.next()
71
+ expected = files[member.name]
72
+ assert expected["archive"] == archive["path"] and member.isfile()
73
+ image = stream.extractfile(member).read()
74
+ assert len(image) == expected["bytes"]
75
+ assert hashlib.sha256(image).hexdigest() == expected["sha256"]
76
+ assert image[:8] == b"\x89PNG\r\n\x1a\n"
77
+ assert struct.unpack(">IIBB", image[16:26]) == (1024, 1024, 16, 2)
78
+ samples += 1
79
+ return {
80
+ "passed": True,
81
+ "metadata_checksums_passed": metadata_checks,
82
+ "archive_scope": subset,
83
+ "full_archive_hashes": full,
84
+ "archives": len(archives),
85
+ "sampled_images": samples,
86
+ "unique_images": len(files),
87
+ "referenced_images": len(referenced),
88
+ "records": summary["records"],
89
+ "video_groups": {k: len(v) for k, v in groups.items()},
90
+ "video_group_overlap": 0,
91
+ }
92
+
93
+
94
+ if __name__ == "__main__":
95
+ parser = argparse.ArgumentParser(description=__doc__)
96
+ parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parent)
97
+ parser.add_argument("--full", action="store_true")
98
+ parser.add_argument("--subset", choices=["all", "stage1", "stage2", "test"], default="all")
99
+ args = parser.parse_args()
100
+ print(json.dumps(verify(args.root, args.full, args.subset), indent=2))