forked from DLR-RM/BlenderProc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
83 lines (83 loc) · 1.86 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
81
82
83
# Args: <path_to_bop_data> <bop_datset_name> <bop_toolkit_path> <output_dir>
{
"version": 3,
"setup": {
"blender_install_path": "/home_local/<env:USER>/blender/",
"pip": [
"h5py",
"scikit-image",
"pypng==0.0.20",
"scipy==1.2.2",
"matplotlib==2.2.4"
]
},
"modules": [
{
"module": "main.Initializer",
"config": {
"global": {
"output_dir": "<args:3>",
"sys_paths": ["<args:2>"] # path to the bop toolkit
}
}
},
{
"module": "loader.BopLoader",
"config": {
"source_frame": ["X", "-Y", "-Z"],
"bop_dataset_path": "<args:0>/<args:1>",
"mm2m": True,
"split": "test", # careful, some BOP datasets only have test sets
"scene_id": 1,
"model_type": ""
}
},
{
"module": "lighting.LightSampler",
"config": {
"lights": [
{
"location": {
"provider": "sampler.Shell",
"center": [0, 0, -0.8],
"radius_min": 2,
"radius_max": 4,
"elevation_min": 40,
"elevation_max": 89
},
"type": "POINT",
"energy": 1000
}
]
}
},
{
"module": "renderer.RgbRenderer",
"config": {
"samples": 50,
"render_distance": True
}
},
{
"module": "renderer.SegMapRenderer",
"config": {
"map_by": "instance"
}
},
{
"module": "writer.BopWriter",
"config": {
"dataset": "<args:1>",
"save_world2cam": False, # world coords are arbitrary in most real BOP datasets
"postprocessing_modules": {
"distance": [
{"module": "postprocessing.Dist2Depth"}
]
}
}
},
{
"module": "writer.Hdf5Writer"
}
]
}