-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsettings.py
137 lines (113 loc) · 3.63 KB
/
settings.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
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
"""settings.py contains all configuration parameters the blender needs
author baiyu
"""
g_shapenet_path = '/media/admin-bai/000CA9E800027341/DATA/RenderForCNN-master/datasets/shapenetcore'
g_blender_excutable_path = '/home/admin-bai/Downloads/blender-2.79b-linux-glibc219-x86_64/blender'
#if you have multiple viewpoint files, add to the dict
#files contains azimuth,elevation,tilt angles and distance for each row
g_view_point_file ={
'chair' : 'view_points/chair.txt',
'bottle' : 'view_points/bottle.txt',
'table' : 'view_points/diningtable.txt',
'sofa' : 'view_points/sofa.txt',
'bed' : 'view_points/bed.txt'
}
g_render_objs = ['chair', 'table', 'sofa', 'bed', 'bottle']
#change this path to your background image folder
g_background_image_path = 'background_image'
#folders to store synthetic data
g_syn_rgb_folder = 'syn_rgb'
g_syn_depth_folder = 'syn_depth'
g_syn_pose_folder = 'syn_pose'
g_temp = 'tmp_data'
g_result_dict = 'result.p'
#background image composite
#enum in [‘RELATIVE’, ‘ABSOLUTE’, ‘SCENE_SIZE’, ‘RENDER_SIZE’], default ‘RELATIVE’
g_scale_space = 'RENDER_SIZE'
g_use_film_transparent = True
#camera:
#enum in [‘QUATERNION’, ‘XYZ’, ‘XZY’, ‘YXZ’, ‘YZX’, ‘ZXY’, ‘ZYX’, ‘AXIS_ANGLE’]
g_rotation_mode = 'XYZ'
g_depth_clip_start = 0.5
g_depth_clip_end = 4
#output:
#enum in [‘BW’, ‘RGB’, ‘RGBA’], default ‘BW’
g_rgb_color_mode = 'RGB'
#enum in [‘8’, ‘10’, ‘12’, ‘16’, ‘32’], default ‘8’
g_rgb_color_depth = '16'
g_rgb_file_format = 'PNG'
g_depth_color_mode = 'BW'
g_depth_color_depth = '8'
g_depth_file_format = 'PNG'
g_depth_use_overwrite = True
g_depth_use_file_extension = True
#dimension:
#engine type [CYCLES, BLENDER_RENDER]
g_engine_type = 'CYCLES'
#output image size = (g_resolution_x * resolution_percentage%, g_resolution_y * resolution_percentage%)
g_resolution_x = 640
g_resolution_y = 480
g_resolution_percentage = 100
#performance:
g_gpu_render_enable = True
#if you are using gpu render, recommand to set hilbert spiral to 256 or 512
#default value for cpu render is fine
g_hilbert_spiral = 512
#total 55 categories
g_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'
}