forked from DLR-RM/BlenderProc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
80 lines (80 loc) · 1.65 KB
/
config.yaml
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
# Args: <cam_file> <obj_file> <output_dir>
{
"version": 3,
"setup": {
"blender_install_path": "/home_local/<env:USER>/blender/",
"pip": [
"h5py",
"scikit-image"
]
},
"modules": [
{
"module": "main.Initializer",
"config": {
"global": {
"output_dir": "<args:2>"
}
}
},
{
"module": "loader.BlendLoader",
"config": {
"path": "<args:1>",
"load_from": "/Object" # load all objects from the scene file
}
},
{
"module": "manipulators.WorldManipulator",
"config": {
"cf_set_world_category_id": 0 # this sets the worlds background category id to 0
}
},
{
"module": "lighting.LightLoader",
"config": {
"lights": [
{
"type": "POINT",
"location": [5, -5, 5],
"energy": 1000
}
]
}
},
{
"module": "camera.CameraLoader",
"config": {
"path": "<args:0>",
"file_format": "location rotation/value",
"default_cam_param": {
"fov": 1
}
}
},
{
"module": "renderer.RgbRenderer",
"config": {
"output_key": "colors",
"render_distance": True
}
},
{
"module": "renderer.SegMapRenderer",
"config": {
"map_by": ["class", "instance", "name"]
}
},
{
"module": "writer.Hdf5Writer",
"config": {
"postprocessing_modules": {
"distance": [
{"module": "postprocessing.TrimRedundantChannels"},
{"module": "postprocessing.Dist2Depth"}
]
}
}
}
]
}