@@ -35,17 +35,14 @@ inputs:
35
35
cache_dir : /tmp/rbyte-cache
36
36
functions :
37
37
- _target_ : pipefunc.PipeFunc
38
- scope : yaak_metadata
39
- output_name : output
40
- cache : true
41
38
func :
42
39
_target_ : hydra.utils.get_method
43
40
path : rbyte.io.build_yaak_metadata_dataframe
41
+ output_name : output
42
+ scope : metadata
43
+ cache : true
44
44
45
45
- _target_ : pipefunc.PipeFunc
46
- bound :
47
- path : ${data_dir}/(@=input_id@)/ai.mcap
48
- output_name : mcap
49
46
func :
50
47
_target_ : rbyte.io.McapDataFrameBuilder
51
48
decoder_factories : [rbyte.utils._mcap.ProtobufDecoderFactory]
@@ -58,18 +55,21 @@ inputs:
58
55
score :
59
56
_target_ : polars.Float32
60
57
58
+ output_name : output
59
+ bound :
60
+ path : ${data_dir}/(@=input_id@)/ai.mcap
61
+ scope : mcap
62
+
61
63
- _target_ : pipefunc.PipeFunc
62
64
func :
63
65
_target_ : pipefunc.helpers.collect_kwargs
64
66
parameters : [meta, mcap]
65
- renames :
66
- meta : yaak_metadata.output
67
67
output_name : data
68
+ renames :
69
+ meta : metadata.output
70
+ mcap : mcap.output
68
71
69
72
- _target_ : pipefunc.PipeFunc
70
- renames :
71
- input : data
72
- output_name : data_aligned
73
73
func :
74
74
_target_ : rbyte.io.DataFrameAligner
75
75
separator : /
@@ -111,18 +111,56 @@ inputs:
111
111
tolerance : 500ms
112
112
strategy : nearest
113
113
114
- - _target_ : pipefunc.PipeFunc
114
+ output_name : data_aligned
115
115
renames :
116
- input : data_aligned
117
- output_name : data_filtered
116
+ input : data
117
+
118
+ - _target_ : pipefunc.PipeFunc
118
119
func :
119
120
_target_ : rbyte.io.DataFrameFilter
120
121
predicate : |
121
122
`meta/VehicleMotion/speed` > 44
123
+ output_name : data_filtered
124
+ renames :
125
+ input : data_aligned
126
+
127
+ # @ for i, camera in enumerate(cameras):
128
+ - _target_ : pipefunc.PipeFunc
129
+ func :
130
+ _target_ : rbyte.io.VideoDataFrameBuilder
131
+ fields :
132
+ frame_idx :
133
+ _target_ : polars.Int32
134
+
135
+ output_name : data_(@=camera@)
136
+ bound :
137
+ path : " ${data_dir}/(@=input_id@)/(@=camera@).pii.mp4"
138
+
139
+ - _target_ : pipefunc.PipeFunc
140
+ func :
141
+ _target_ : hydra.utils.get_method
142
+ path : polars.DataFrame.join
143
+ # @ if i == len(cameras) - 1:
144
+ output_name : data_joined
145
+ # @ else:
146
+ output_name : data_joined_(@=camera@)
147
+ # @ end
148
+ renames :
149
+ # @ if i == 0:
150
+ self : data_filtered
151
+ # @ else:
152
+ self : data_joined_(@=cameras[i-1]@)
153
+ # @ end
154
+ other : data_(@=camera@)
155
+ bound :
156
+ how : semi
157
+ left_on : meta/ImageMetadata.(@=camera@)/frame_idx
158
+ right_on : frame_idx
159
+ # @ end
122
160
123
161
- _target_ : pipefunc.PipeFunc
124
162
renames :
125
- input : data_filtered
163
+ input : data_joined
126
164
output_name : samples
127
165
func :
128
166
_target_ : rbyte.FixedWindowSampleBuilder
@@ -132,7 +170,7 @@ inputs:
132
170
length : 6
133
171
134
172
kwargs :
135
- yaak_metadata :
173
+ metadata :
136
174
path : ${data_dir}/(@=input_id@)/metadata.log
137
175
fields :
138
176
rbyte.io.yaak.proto.sensor_pb2.ImageMetadata :
0 commit comments