marcosv commited on
Commit
ec07fb8
·
verified ·
1 Parent(s): da0ffd2

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - RAW
5
+ - RGB
6
+ - ISP
7
+ - NTIRE
8
+ - '2025'
9
+ - image
10
+ - processing
11
+ - low-level
12
+ - vision
13
+ - cameras
14
+ pretty_name: NTIRE 2025 RGB2RAW Dataset
15
+ size_categories:
16
+ - 100M<n<1B
17
+ ---
18
+
19
+ # RGB2RAW Dataset
20
+ ## [NTIRE 2025 RAW Image Reconstruction from sRGB](https://codalab.lisn.upsaclay.fr/competitions/21648)
21
+
22
+ Link to the challenge: https://codalab.lisn.upsaclay.fr/competitions/21648
23
+ Link to the workshop: https://www.cvlai.net/ntire/2025/
24
+
25
+ This dataset includes images from three smartphones: iPhoneX, SamsungS9, Samsung21. You can use it for many tasks, these are some:
26
+ - Reconstruct RAW images from the sRGB counterpart
27
+ - Learn an ISP to process the RAW images into the sRGB (emulating the phone ISP)
28
+ - Add noise to the RAW images and train a denoiser
29
+ - Many more things :)
30
+
31
+ ### Files
32
+
33
+ - `val_rgbs_in.zip` includes the validation RGB images for the NTIRE 2025 challenge. You need to unprocess them, obtain the RAW images, save the RAW images (see the code below), and submit them. The website for the submission is: https://codalab.lisn.upsaclay.fr/competitions/21648
34
+ - `train_rgb2raw.zip` includes the training data, many many raw-rgb pairs {.npy} and {.png}.
35
+
36
+ ### How are the RAW images?
37
+
38
+ - All the RAW images in this dataset have been standarized to follow a Bayer Pattern **RGGB**, and already white-black level corrected.
39
+ - Each RAW image was split into several crops of size `512x512x4`(`1024x1024x3` for the corresponding RGBs). You see the filename `{raw_id}_{patch_number}.npy`.
40
+ - For each RAW image, you can find the associated metadata `{raw_id}.pkl`.
41
+ - RGB images are the corresponding captures from the phone i.e., the phone imaging pipeline (ISP) output. The images are saved as lossless PNG 8bits.
42
+ - Scenes include indoor/outdoor, day/night, different ISO levels, different shutter speed levels.
43
+
44
+ ### How to use this?
45
+
46
+ - RAW images are saved using the following code:
47
+ ```
48
+ import numpy as np
49
+ max_val = 2**12 -1
50
+ raw = (raw * max_val).astype(np.uint16)
51
+ np.save(os.path.join(SAVE_PATH, f"raw.npy"), raw_patch)
52
+ ```
53
+ We save the images as `uint16` to preserve as much as precision as possible, while maintaining the filesize small.
54
+
55
+ - Therefore, you can load the RAW images in your Dataset class, and feed them into the model as follows:
56
+ ```
57
+ import numpy as np
58
+ raw = np.load("iphone-x-part2/0_3.npy")
59
+ max_val = 2**12 -1
60
+ raw = (raw / max_val).astype(np.float32)
61
+ ```
62
+
63
+ - The associated metadata can be loaded using:
64
+ ```
65
+ import pickle
66
+ with open("metadata.pkl", "rb") as f:
67
+ meta_loaded = pickle.load(f)
68
+
69
+ print (meta_loaded)
70
+ ```
71
+
72
+
73
+ Contact: [email protected]