File size: 3,214 Bytes
d8781e9
 
358ff35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a108ecc
 
358ff35
a108ecc
 
 
 
358ff35
 
 
 
 
 
 
ab27a70
 
 
 
 
 
 
 
d8781e9
467833e
35a98f0
467833e
35a98f0
 
546456e
467833e
4ac518c
 
 
 
467833e
b5a3214
 
467833e
 
 
a9541ef
 
 
 
 
 
 
 
 
 
 
 
 
 
ab27a70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
license: mit
dataset_info:
  features:
  - name: lensless
    dtype: image
  - name: lensed
    dtype: image
  - name: 5_o_Clock_Shadow
    dtype: bool
  - name: Arched_Eyebrows
    dtype: bool
  - name: Attractive
    dtype: bool
  - name: Bags_Under_Eyes
    dtype: bool
  - name: Bald
    dtype: bool
  - name: Bangs
    dtype: bool
  - name: Big_Lips
    dtype: bool
  - name: Big_Nose
    dtype: bool
  - name: Black_Hair
    dtype: bool
  - name: Blond_Hair
    dtype: bool
  - name: Blurry
    dtype: bool
  - name: Brown_Hair
    dtype: bool
  - name: Bushy_Eyebrows
    dtype: bool
  - name: Chubby
    dtype: bool
  - name: Double_Chin
    dtype: bool
  - name: Eyeglasses
    dtype: bool
  - name: Goatee
    dtype: bool
  - name: Gray_Hair
    dtype: bool
  - name: Heavy_Makeup
    dtype: bool
  - name: High_Cheekbones
    dtype: bool
  - name: Male
    dtype: bool
  - name: Mouth_Slightly_Open
    dtype: bool
  - name: Mustache
    dtype: bool
  - name: Narrow_Eyes
    dtype: bool
  - name: No_Beard
    dtype: bool
  - name: Oval_Face
    dtype: bool
  - name: Pale_Skin
    dtype: bool
  - name: Pointy_Nose
    dtype: bool
  - name: Receding_Hairline
    dtype: bool
  - name: Rosy_Cheeks
    dtype: bool
  - name: Sideburns
    dtype: bool
  - name: Smiling
    dtype: bool
  - name: Straight_Hair
    dtype: bool
  - name: Wavy_Hair
    dtype: bool
  - name: Wearing_Earrings
    dtype: bool
  - name: Wearing_Hat
    dtype: bool
  - name: Wearing_Lipstick
    dtype: bool
  - name: Wearing_Necklace
    dtype: bool
  - name: Wearing_Necktie
    dtype: bool
  - name: Young
    dtype: bool
  splits:
  - name: train
    num_bytes: 28682557089.1
    num_examples: 22100
  - name: test
    num_bytes: 5062009045.8
    num_examples: 3900
  download_size: 33915004910
  dataset_size: 33744566134.899998
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
task_categories:
- image-to-image
- image-classification
tags:
- lensless
- computational-imaging
size_categories:
- 10K<n<100K
---

Data is measured at 30 cm, as shown below.

![DigiCam setup](setup.png)

After downloading and installing [LenslessPiCam](https://github.com/LCAV/LenslessPiCam), the [simulated PSF](https://huggingface.co/datasets/bezzam/DigiCam-CelebA-26K/blob/main/psf_simulated.png) can be obtained and compared with the measured one with the following command:
```bash
python scripts/sim/digicam_psf.py \
  huggingface_repo=bezzam/DigiCam-CelebA-26K \
  sim.waveprop=False \
  sim.deadspace=True \
  digicam.gamma=2.2 \
  digicam.ap_center="[58,76]" \
  digicam.ap_shape="[19,25]" \
  digicam.rotate=0 \
  digicam.horizontal_shift=-60 \
  digicam.vertical_shift=-80
```

For a simulation that uses [wave optics](https://huggingface.co/datasets/bezzam/DigiCam-CelebA-26K/blob/main/psf_simulated_waveprop.png) (i.e. accounts for diffraction):
```
python scripts/sim/digicam_psf.py \
  huggingface_repo=bezzam/DigiCam-CelebA-26K \
  sim.waveprop=True \
  sim.deadspace=True \
  digicam.gamma=2.2 \
  digicam.ap_center="[58,76]" \
  digicam.ap_shape="[19,25]" \
  digicam.rotate=0 \
  digicam.horizontal_shift=-60 \
  digicam.vertical_shift=-80
```