anonymous-12314 commited on
Commit
5404f74
·
verified ·
1 Parent(s): 3efdec6

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +110 -0
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - camera-pose-estimation
7
+ - viewpoint_recommendation
8
+ pretty_name: ViewRecDB-100K
9
+ size_categories:
10
+ - 10K<n<100K
11
+
12
+ ---
13
+
14
+ # ViewRecDB-100K
15
+
16
+ <div align="center">
17
+ <img src="./docs/fig1.png" alt="fig1" width="95%">
18
+ </div>
19
+
20
+
21
+
22
+ ## Dataset Summary
23
+
24
+ `ViewRecDB-100K` is a 3D viewpoint recommendation dataset for AI photography. It contains 100K training samples and 1K test samples. Each sample consists of a paired suboptimal and optimal image, along with the corresponding 3D viewpoint change annotation. Given a suboptimal image, the task is to predict the 3D viewpoint change toward the optimal image.
25
+
26
+ The dataset is automatically constructed from the `Unsplash Full Dataset`. The test samples form a dedicated benchmark, where each optimal image has been verified by experts to have better photographic composition than the corresponding suboptimal image.
27
+
28
+ ## Dataset Structure
29
+
30
+ ## Data Structure
31
+
32
+ The dataset is organized into `train`, `val`, and `test` splits. Each sample folder contains one optimal image and `1 or 2` generated suboptimal images with corresponding viewpoint change annotations.
33
+
34
+ ```text
35
+ ViewRecDB-100K/
36
+ ├── train/
37
+ │ └── photo_id/ # photo_id in Unsplash Full Dataset
38
+ │ ├── original.jpeg # optimal image
39
+ │ ├── generated_0.jpeg # suboptimal image
40
+ │ ├── generated_0.json # viewpoint change annotation
41
+ │ ├── generated_1.jpeg # optional suboptimal image
42
+ │ └── generated_1.json # optional viewpoint change annotation
43
+ ├── val
44
+ └── test
45
+ ```
46
+
47
+ ### Data Instances
48
+
49
+ A sample from the training set is provided below:
50
+
51
+ <div align="center">
52
+ <table>
53
+ <tr>
54
+ <td align="center"><strong>Suboptimal Image</strong></td>
55
+ <td align="center"><strong>Optimal Image</strong></td>
56
+ <td align="center"><strong>Viewpoint Change</strong></td>
57
+ </tr>
58
+ <tr>
59
+ <td><img src="./docs/example1.jpeg" width="360"></td>
60
+ <td><img src="./docs/example2.jpeg" width="260"></td>
61
+ <td align="left">
62
+ <pre><code>{
63
+ "change_orientation": true,
64
+ "pose": [
65
+ 0.06223759800195694,
66
+ -0.004903144668787718,
67
+ -0.06147797778248787,
68
+ -0.007686913013458252,
69
+ -0.1884094774723053,
70
+ -0.017775092273950577,
71
+ 0.981899619102478,
72
+ 0.4500928404485889,
73
+ 0.651864323785646
74
+ ]
75
+ }</code></pre>
76
+ </td>
77
+ </tr>
78
+ </table>
79
+ </div>
80
+
81
+ ### Data Fields
82
+
83
+ Each data instance contains the following fields:
84
+
85
+ - `suboptimal_image` / `optimal_image`: The input suboptimal image. It is an RGB image with a total pixel budget of `1024 × 1024`.
86
+ - `viewpoint_change`: The 3D viewpoint change annotation from the suboptimal image to the optimal image.
87
+ - `change_orientation`: A boolean value indicating whether the image orientation should be changed, i.e., switching between landscape and portrait.
88
+ - `pose`: A 9-dimensional viewpoint descriptor:
89
+ - `pose[0:3]`: translation vector.
90
+ - `pose[3:7]`: rotation quaternion.
91
+ - `pose[7:9]`: FoV scaling factor `s`, which denotes the FoV shrinking ratio, equivalent to the focal length scaling ratio.
92
+
93
+ ## Uses
94
+
95
+ Due to the redistribution restrictions of the `Unsplash Full Dataset`, the `original.jpeg` files in `ViewRecDB-100K` are not directly included in this release. Users need to apply for and download the `Unsplash Full Dataset` from the [official source](https://unsplash.typeform.com/to/HPVbjo?typeform-source=unsplash.com).
96
+
97
+ - After obtaining the Unsplash metadata files, specify their path with `--csv_root` and set `--id_root` to the split directory where the original images should be downloaded.
98
+
99
+ ```bash
100
+ python -m script.download \
101
+ --csv_root /path/to/unsplash_metadata \
102
+ --id_root /path/to/ViewRecDB-100K/train | val | test \
103
+ --csv_pattern "*.csv*"
104
+ ```
105
+
106
+ Arguments:
107
+
108
+ - `--csv_root`: Path to the directory containing the Unsplash metadata files.
109
+ - `--id_root`: Path to the dataset split directory, such as `train`, `val`, or `test`.
110
+ - `--csv_pattern`: Filename pattern used to match the metadata files, such as `*.csv*` or `*.tsv*`.