@@ -30,50 +30,23 @@ inputs:
30
30
pipeline :
31
31
_target_ : pipefunc.Pipeline
32
32
validate_type_annotations : false
33
+ cache_type : disk
34
+ cache_kwargs :
35
+ cache_dir : /tmp/rbyte-cache
33
36
functions :
34
37
- _target_ : pipefunc.PipeFunc
35
- bound :
36
- path : ${data_dir}/(@=input_id@)/metadata.log
37
- output_name : meta_data
38
+ scope : meta
39
+ output_name : data
40
+ cache : true
38
41
func :
39
- _target_ : rbyte.io.YaakMetadataDataFrameBuilder
40
- fields :
41
- rbyte.io.yaak.proto.sensor_pb2.ImageMetadata :
42
- time_stamp :
43
- _target_ : polars.Datetime
44
- time_unit : ns
45
-
46
- frame_idx :
47
- _target_ : polars.Int32
48
-
49
- camera_name :
50
- _target_ : polars.Enum
51
- categories :
52
- - cam_front_center
53
- - cam_front_left
54
- - cam_front_right
55
- - cam_left_forward
56
- - cam_right_forward
57
- - cam_left_backward
58
- - cam_right_backward
59
- - cam_rear
60
-
61
- rbyte.io.yaak.proto.can_pb2.VehicleMotion :
62
- time_stamp :
63
- _target_ : polars.Datetime
64
- time_unit : ns
65
-
66
- speed :
67
- _target_ : polars.Float32
68
-
69
- gear :
70
- _target_ : polars.Enum
71
- categories : ["0", "1", "2", "3"]
42
+ _target_ : hydra.utils.get_method
43
+ path : rbyte.io.build_yaak_metadata_dataframe
72
44
73
45
- _target_ : pipefunc.PipeFunc
46
+ scope : mcap
74
47
bound :
75
48
path : ${data_dir}/(@=input_id@)/ai.mcap
76
- output_name : mcap_data
49
+ output_name : data
77
50
func :
78
51
_target_ : rbyte.io.McapDataFrameBuilder
79
52
decoder_factories : [rbyte.utils._mcap.ProtobufDecoderFactory]
@@ -94,8 +67,8 @@ inputs:
94
67
k0 : meta
95
68
k1 : mcap
96
69
renames :
97
- v0 : meta_data
98
- v1 : mcap_data
70
+ v0 : meta.data
71
+ v1 : mcap.data
99
72
output_name : data
100
73
101
74
- _target_ : pipefunc.PipeFunc
@@ -150,7 +123,7 @@ inputs:
150
123
func :
151
124
_target_ : rbyte.io.DataFrameFilter
152
125
predicate : |
153
- `meta/VehicleMotion/gear` == '3'
126
+ `meta/VehicleMotion/speed` > 44
154
127
155
128
- _target_ : pipefunc.PipeFunc
156
129
renames :
@@ -170,4 +143,40 @@ inputs:
170
143
_target_ : rbyte.io.DataFrameFilter
171
144
predicate : |
172
145
array_length(`meta/ImageMetadata.(@=cameras[0]@)/time_stamp`) == 6
146
+
147
+ kwargs :
148
+ meta :
149
+ path : ${data_dir}/(@=input_id@)/metadata.log
150
+ fields :
151
+ rbyte.io.yaak.proto.sensor_pb2.ImageMetadata :
152
+ time_stamp :
153
+ _target_ : polars.Datetime
154
+ time_unit : ns
155
+
156
+ frame_idx :
157
+ _target_ : polars.Int32
158
+
159
+ camera_name :
160
+ _target_ : polars.Enum
161
+ categories :
162
+ - cam_front_center
163
+ - cam_front_left
164
+ - cam_front_right
165
+ - cam_left_forward
166
+ - cam_right_forward
167
+ - cam_left_backward
168
+ - cam_right_backward
169
+ - cam_rear
170
+
171
+ rbyte.io.yaak.proto.can_pb2.VehicleMotion :
172
+ time_stamp :
173
+ _target_ : polars.Datetime
174
+ time_unit : ns
175
+
176
+ speed :
177
+ _target_ : polars.Float32
178
+
179
+ gear :
180
+ _target_ : polars.Enum
181
+ categories : ["0", "1", "2", "3"]
173
182
# @ end
0 commit comments