ttwong commited on
Commit
7d3682d
1 Parent(s): 6192b9d

Upload 4 files

Browse files
Files changed (4) hide show
  1. LICENSE +52 -0
  2. README.md +109 -0
  3. meta.json +0 -0
  4. transformations.pkl +3 -0
LICENSE ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LICENSE Agreement of BlueNeg Data Set version 1.0
2
+ -------------------------------------------------
3
+ Dated: 2024-06-12
4
+ License document prepared by Tien-Tsin Wong
5
+
6
+ All photographs/negatives in this data set are owned and
7
+ copyrighted by Tien-Tsin Wong.
8
+
9
+
10
+ Why BlueNeg?
11
+ ------------
12
+ This set of images is collected for studying the research problem of
13
+ restoring the corrupted negative films. Due to the physical nature of
14
+ negative film, the red, green, and blue light-sensitive layers are
15
+ located differently inside the negative film. Therefore, the rates of
16
+ deterioration of these three layers are different. I found that the
17
+ blue channel is relatively vulnerable compared to the other two channels.
18
+ Because the blue light-sensitive layer is on the outermost layer on
19
+ the emulsion side. That is, the deterioration rates are heterogeneous.
20
+ This characteristic is inherited from its ancestor, i.e., storing the
21
+ three color negatives (R, G, B) on three separate glass plates by
22
+ Prokudin-Gorsky.
23
+
24
+ Since the blue channel is more vulnerable and the other two channels
25
+ are relatively well-preserved, this means we can restore the blue
26
+ channel by exploiting the retained information from the red and green
27
+ channels to restore the color photograph. This is especially sound with
28
+ the latest AI technologies.
29
+
30
+ Unfortunately, most existing photo restoration techniques are
31
+ developed based on printed photographs, in which the nature
32
+ of deterioration is different from that of the negatives.
33
+ This is why I have scanned a collection of negatives I have shot
34
+ during 1980s to early 2000, for this research.
35
+
36
+
37
+ How to Obtain Permission?
38
+ -------------------------
39
+
40
+ All photos are owned and copyrighted by Tien-Tsin Wong. You are
41
+ automatically granted with permission to use the images for academic
42
+ and commerical usages, provided that the image credit
43
+ "Copyrighted by Tien-Tsin Wong" is included in any forms of
44
+ publication, reproduction, redistribution, or derivatives of the images.
45
+
46
+ If you find the dataset is useful to you, please also cite our
47
+ publication below in your work/publication.
48
+
49
+ - Hanyuan Liu, Chengze Li, Minshan Xie, Zhenni Wang, Jiawen Liang, Chi-Sing Leung, and Tien-Tsin Wong,
50
+ "BlueNeg: BlueNeg: A 35mm Negative Film Dataset for Restoring Channel-Heterogeneous Deterioration",
51
+ arXiv preprint, 2024.
52
+
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: license.txt
4
+ license_link: LICENSE
5
+ tags:
6
+ - negative film
7
+ - printed photo
8
+ - high dynamic range
9
+ - ultra-high resolution
10
+ - image restoration
11
+ pretty_name: BlueNeg Dataset
12
+ ---
13
+ # BlueNeg: A 35mm Negative Film Dataset for Restoring Channel-Heterogeneous Deterioration
14
+
15
+ ## Description
16
+
17
+ This set of images is collected for studying the research problem of restoring the corrupted negative films. Due to the physical nature of negative film, the red, green, and blue light-sensitive layers are located differently inside the negative film. Therefore, the rates of deterioration of these three layers are different. Tien-Tsin Wong found that the blue channel is relatively vulnerable compared to the other two channels. Because the blue light-sensitive layer is on the outermost layer on the emulsion side. That is, the deterioration rates are heterogeneous. This characteristic is inherited from its ancestor, i.e., storing the three color negatives (R, G, B) on three separate glass plates by Prokudin-Gorsky.
18
+
19
+ Since the blue channel is more vulnerable and the other two channels are relatively well-preserved, this means we can restore the blue channel by exploiting the retained information from the red and green channels to restore the color photograph. This is especially sound with
20
+ the latest AI technologies. Unfortunately, most existing photo restoration techniques are developed based on printed photographs, in which the nature of deterioration is different from that of the negatives. This is why this dataset is created.
21
+
22
+ ## Data Information
23
+
24
+ <table style="border-collapse:collapse;border-spacing:0" class="tg"><thead>
25
+ <tr><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Data Source</th><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Partition</th><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Number</th><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Folder</th>
26
+ <th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Bits per channel</th><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Resolution (may varies)</th><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">File extension</th><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:bold;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Public</th></tr>
27
+ </thead>
28
+ <tbody>
29
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">Negative films</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-corrupted</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">297</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">negative-16bit</td>
30
+ <td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">16</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">10,128 x 6,840</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">dng</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">Yes</td></tr>
31
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-intact</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">194</td></tr>
32
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">Printed photo</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-corrupted</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">247</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">printed-16bit</td>
33
+ <td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">16</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">2,994 x 1,920</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">tif</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">Yes</td></tr>
34
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-intact</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">151</td></tr>
35
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">Negative preview (after negation)</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-corrupted</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">297</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">negative-preview-8bit</td>
36
+ <td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">8</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">1,322 x 892</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">preview.png</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal" rowspan="2">Yes</td></tr>
37
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-intact</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">194</td></tr>
38
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Pseudo ground truth</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-corrupted</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">247</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">pseudogt-8bit</td>
39
+ <td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">8</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">&lt; 1,322 x 892</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">pseudogt.png</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Yes</td></tr>
40
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Printed photo (testset)</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-corrupted</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">30</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">-</td>
41
+ <td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">16</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">2,994 x 1,920</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">tif</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">No</td></tr>
42
+ <tr><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">Pseudo ground truth (testset)</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">blue-corrupted</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">30</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">-</td>
43
+ <td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">8</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">&lt; 1,322 x 892</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">pseudogt.png</td><td style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;text-align:center;vertical-align:top;word-break:normal">No</td></tr>
44
+ </tbody></table>
45
+
46
+ ## Meta Information
47
+
48
+ The meta information is stored in the `meta.json` and `transformations.pkl`. The meta information includes the following fields:
49
+
50
+ - `meta.json`
51
+ - filename
52
+ - partition
53
+ - is_testset
54
+ - date
55
+ - roll_id
56
+ - number_in_roll
57
+ - location
58
+ - geo_location
59
+ - film_type
60
+ - negative_path
61
+ - printed_path
62
+ - preview_path
63
+ - pseudogt_path
64
+ - scene_property
65
+ - is_indoor
66
+ - is_daytime
67
+ - `transformations.pkl`: a python dict using filename (without extension) as key, and the value is a dict with the following fields:
68
+ - matrix: the perspective projection matrix to warp the printed photo to the negative preview
69
+ - bbox: the bounding box of the warped printed photo in the negative preview; the bounding box is in the format of [x0, y0, x1, y1], preview[y0:y1, x0:x1, :] has the same size as pseudo ground truth
70
+
71
+ ## Naming Convention
72
+
73
+ `YYYYMMDD[R]-NN-NAME.EXT`
74
+ - `YYYYMMDD`: The date when the photo was taken (might not always be accurate, but roughly correct).
75
+ - `[R]`: the roll number, if available
76
+ - `NN`: the photo number in the roll
77
+ - `NAME`: the photo's name, usually the location or the subject of the photo.
78
+ - `EXT`: the file extension, e.g., `.dng`, `.tif`, `.preview.png`, `.pseudogt.png`, etc.
79
+
80
+ ## License
81
+
82
+ Our license shares the same spirit with the [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/). However, please note that our license is not CC-BY 4.0. Please check the LICENSE file for more details.
83
+
84
+ ```
85
+ All photos are owned and copyrighted by Tien-Tsin Wong. You are
86
+ automatically granted with permission to use the images for academic
87
+ and commerical usages, provided that the image credit
88
+ "Copyrighted by Tien-Tsin Wong" is included in any forms of
89
+ publication, reproduction, redistribution, or derivatives of the images.
90
+ ```
91
+
92
+ ## Citation
93
+
94
+ If you find the dataset is useful to you, please also cite our publication below in your work/publication.
95
+
96
+ - Hanyuan Liu, Chengze Li, Minshan Xie, Zhenni Wang, Jiawen Liang, Chi-Sing Leung, and Tien-Tsin Wong,
97
+ "BlueNeg: BlueNeg: A 35mm Negative Film Dataset for Restoring Channel-Heterogeneous Deterioration",
98
+ arXiv preprint, 2024.
99
+
100
+ ```bibtex
101
+ @misc{blueneg,
102
+ title={BlueNeg: A 35mm Negative Film Dataset for Restoring Channel-Heterogeneous Deterioration},
103
+ author={Hanyuan Liu and Chengze Li and Minshan Xie and Zhenni Wang and Jiawen Liang and Chi-Sing Leung and and Tien-Tsin Wong},
104
+ year={2024},
105
+ eprint={to be updated},
106
+ archivePrefix={arXiv},
107
+ primaryClass={cs.CV}
108
+ }
109
+ ```
meta.json ADDED
The diff for this file is too large to render. See raw diff
 
transformations.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d552b5c4606099234ccf02cfd252dc5652c5aa0a89fa3e002d8cba5252429601
3
+ size 82690