-
Notifications
You must be signed in to change notification settings - Fork 20
/
data_config.py
executable file
·75 lines (71 loc) · 2.07 KB
/
data_config.py
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
# configuration file to claim the data we used
# author: ynie
# date: Jan, 2020
import os
shapenet_categlory_pair = {
'table' : '04379243',
'jar' : '03593526',
'skateboard' : '04225987',
'car' : '02958343',
'bottle' : '02876657',
'tower' : '04460130',
'chair' : '03001627',
'bookshelf' : '02871439',
'camera' : '02942699',
'airplane' : '02691156',
'laptop' : '03642806',
'basket' : '02801938',
'sofa' : '04256520',
'knife' : '03624134',
'can' : '02946921',
'rifle' : '04090263',
'train' : '04468005',
'pillow' : '03938244',
'lamp' : '03636649',
'trash bin' : '02747177',
'mailbox' : '03710193',
'watercraft' : '04530566',
'motorbike' : '03790512',
'dishwasher' : '03207941',
'bench' : '02828884',
'pistol' : '03948459',
'rocket' : '04099429',
'loudspeaker' : '03691459',
'file cabinet' : '03337140',
'bag' : '02773838',
'cabinet' : '02933112',
'bed' : '02818832',
'birdhouse' : '02843684',
'display' : '03211117',
'piano' : '03928116',
'earphone' : '03261776',
'telephone' : '04401088',
'stove' : '04330267',
'microphone' : '03759954',
'bus' : '02924116',
'mug' : '03797390',
'remote' : '04074963',
'bathtub' : '02808440',
'bowl' : '02880940',
'keyboard' : '03085013',
'guitar' : '03467517',
'washer' : '04554684',
'bicycle' : '02834778',
'faucet' : '03325088',
'printer' : '04004475',
'cap' : '02954340',
'clock' : '03046257',
'helmet' : '03513137',
'flowerpot' : '03991062',
'microwaves' : '03761084'
}
our_categories = ['chair', 'bed']
our_categories = [shapenet_categlory_pair[cat] for cat in our_categories]
shapenet_path = './datasets/ShapeNetCore.v2'
shapenet_normalized_path= './datasets/ShapeNetCore.v2_normalized'
shapenet_rendering_path = './datasets/ShapeNetRenderings'
camera_setting_path = './datasets/camera_settings'
model_view_path = './model_view_metadata/result.pkl'
watertight_mesh_path = './datasets/ShapeNetCore.v2_watertight'
shape_scale_padding = 0
total_view_nums = 20